How to access PL/SQL Web Services using java

New to Webservices. Created PL/SQL Web Service using JDeveloper. Vendor is not sure how to access it using java. Can anyone please help to point in the right direction or provide some sample ?

So if I'm correct you have already exposed a PL/SQL procedure or function as web service?
In that case you can generate a proxy (client) for the generated web service using JDeveloper. It will generate Java code which invokes the web service.
See the wizard in JDeveloper, it should be in the same category as the create PL/SQL web service wizard.
Regards, Ronald

Similar Messages

  • How to Create and Deploy Web Services Using Oracle 9i JDeveloper

    Hi,
    My Question is how to create and deploy Web Services using Oracle 9i JDeveloper.Anybody please give me a detailed Reply.Please Reply to [email protected]
    Hopr to Hear From you,
    Regards,
    G Sreekumar

    You could use datasources. You should do this in your BC4J Configuration. Then when deploying your applicaiton use the command -installDataSource (from admin.jar) to create the right datasource.
    You could probably use the name of your connection + "DS" so you can also use it locally in JDeveloper as JDev seesm to create this automaticly for your Connections.

  • Creating Web Services using Java Implementation

    Hi,
    This is quite a general question on how to create a Web Service using Java Implementation that needs to conform to a client XML schema.
    Here are my Version specs,
    I am using Jdeveloper 10.1.3.4.0 and deploying onto OAS 10.1.3.
    I will be creating a J2ee 1.4 (JAX-RPC) Web Service using Document/Wrapped style.
    I have been provided an XML schema from the client which is quite complex.
    Using a top-down approach, I can create my WSDL file and import the XML Schema for my type definitions.
    The Web service aim is to accept some parameters and return some data from the Oracle Database. The
    XML response from the web service must conform to the element, attribute definitions in the provided XML schema.
    From a Java implementation approach, what is the best (simplest or quickest) way to retrieve data from the Oracle
    tables and map each fields/column to the required XML output (defined in the XML schema).
    I'm not too concerned with using Java to retrieve data from the Database, more with how I can map the data returned
    to the required output. Can this mapping task be controlled within the Java program?
    Thanks in advance.

    Hi,
    This is quite a general question on how to create a Web Service using Java Implementation that needs to conform to a client XML schema.
    Here are my Version specs,
    I am using Jdeveloper 10.1.3.4.0 and deploying onto OAS 10.1.3.
    I will be creating a J2ee 1.4 (JAX-RPC) Web Service using Document/Wrapped style.
    I have been provided an XML schema from the client which is quite complex.
    Using a top-down approach, I can create my WSDL file and import the XML Schema for my type definitions.
    The Web service aim is to accept some parameters and return some data from the Oracle Database. The
    XML response from the web service must conform to the element, attribute definitions in the provided XML schema.
    From a Java implementation approach, what is the best (simplest or quickest) way to retrieve data from the Oracle
    tables and map each fields/column to the required XML output (defined in the XML schema).
    I'm not too concerned with using Java to retrieve data from the Database, more with how I can map the data returned
    to the required output. Can this mapping task be controlled within the Java program?
    Thanks in advance.

  • Create web service using java class

    Hi,
    I created the web service using java class then i deployed this web service in to the weblogic admin server.when i tested this process it is working fine.
    when I tested The generated WSDL to this process in browser(IE). it is not working.
    I need to to invoke this webservice from another BPEL but this WSDL is not working.

    Hi,
    when i created the webservice in jdeveloper by default it is connected to integrated weblogic server and generates this wsdl.
    http://localhost:7101/helloApplication-javaexcel-context-root/MyWebService1Soap12HttpPort?WSDL
    then I deployed this webservice in to the Adminserver.it gives the following URL.
    http://192.168.56.1:7001/extracExcelToCSV-extractExcelToCSV-context-root/ExtractExcelToCSVSoap12HttpPort?wsdl
    This URL is not working but when i tested this process it is working fine.
    It is giving below error when i try to invoke from jdeveloper
    Error while reading wsdl file
    caused by:java.net.connectExcepption :Connection timed out:connect

  • How to access .asmx Web Service using JAVA? Newbie

    Hello Experts,
    Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is.
    Java Project + C#.Net Web Service = Integration
    1. Do i need to create a Web Service too for the Java Project? If yes, What are the necessary tools needed for the creation of this Java Web Service?
    2. The .NET Web Service is available online. (It is made by other people).
    3. Based on the equation, what is the equivalent technology for the + sign?
    4. Can you site a concrete example for accessing a web service?
    5. I'm new here. Totally I have no idea where to start.
    6. Thank you experts.
    Edited by: Benedict.Aluan on 05 30, 08 1:38 PM
    Edited by: Benedict.Aluan on 05 30, 08 1:39 PM

    Hello
    Thanks a lot for your help ...
    I am developing simple J2EE based web service client using IBM WSAD 5.1. I have used the following code to call .asmx web service in Java
    String url = "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl";
         String namespace = "http://tempuri.org/";
         name = request.getParameter("txtName");
         try
              System.out.println("In Internet Service");
              ServiceFactory factory = ServiceFactory.newInstance();
              Service serv = factory.createService(new URL(url),new QName(namespace,"TempConvert"));
              System.out.println("Got Service......");
              Call obj = (Call)serv.createCall();
              System.out.println("Got Call......");
              obj.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
              obj.setProperty(Call.OPERATION_STYLE_PROPERTY,"wrapped");
              obj.setTargetEndpointAddress(url);
              obj.setPortTypeName(new QName(namespace,"TempConvertSoap"));
              obj.setOperationName(new QName(namespace,"FahrenheitToCelsius"));
              obj.addParameter("param1",XMLType.XSD_STRING,String.class,ParameterMode.IN);
              obj.setReturnType(XMLType.XSD_STRING);
              System.out.println("Parameters Set.....");
              Object[] params = new Object[]{name};
              k = (String)obj.invoke(params);
              System.out.println("Result: "+k);
         catch(Exception e)
            System.out.println("Exception is : "+e);
        }But this code is throwing exception that
    Invalid Address "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl"I have also tried this URL with Java Proxy. But it showing the same error.
    Plz can u tell me how to access .asmx web service ?
    Waiting 4 reply.

  • How can I call a web service using JAVAscript in LCD

    hi guys,
         I know it can call a WSDL in LCD, but I have not any WSDL web service , and I have a REST web service ,how can I call this REST web service in LCD? I checked some documents and found nothing...if it's possible that it can call a REST web service using JAVAScript code, I mean I can program some code to call this web service ?
    thanks,
    Jesse

    Hi Jesse,
    You can do GET, PUT and POST using FormCalc, so you should be able to access a REST web service. 
    There is a example of accessing a RSS feed in this thread, http://forums.adobe.com/message/5695433#5695433
    Regards
    Bruce

  • How to compress pl/sql web services

    Hi, I'm using pl/sql web services in oc4j, but sometimes the response is too large, i need to compress the SOAP XML response , how can i do that? Thanks.

    What data types are you dealing with? Does the client use all the data returned? If not, you might get around with large messages by instead invoking a PL/SQL function that extracts and returns only useful data from the original PL/SQL funtion.

  • How to create JAX-WS web services using providers?

    I am looking at WebLogic web services, because we are investigating the possibility of migrating our web services from Apache CXF to WegLogic web services. Our web services are implemented using JAX-WS providers. However, I browsed through the Oracle Fusion Middleware document library, but I couldn't find any documents for implementing JAX-WS web services using providers.
    Is there any document, tutorial, or examples of that?
    Thanks in advance!
    Tao

    Ok just as I expected. So I guess I am left with the following two options
    1) either I switched to using JAXB in my apps instaed of xmlbeans....
    2) or if I still wanna use the old JAX-RPC web services to deploy on the Weblogic 10gR3 server i will have to create my own ant task jwsc directly......as shown below in your docs
    Programming Web Services for WebLogic Server (ant tasks)
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/webserv/anttasks.html
    Getting Started With WebLogic Web Services Using JAX-RPC
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv_rpc/index.html
    Will OEPE be supporting the old JAX-RPC anytime in the near future release? or have to create own build ant task to call jwsc ant task directly to compile JAX-RPC web services??

  • How to consume the Abap web service in Java web-dynpro

    Hi Everyone,
    I want to consume ABAP web service in java web dynpro.
    so when i tried to create model in java web-dynpro, it gave me an error message saying "Invalid WSDL or WSDL not found".
    i think this error message is because, to access the WSDL of abap web-service, we need username and password, but the dialog box in java web-dynpro is not programmed to take username and password from us and send it to the server to get the WSDL.
    i came to this conclusion because i was able to successfully test my abap web-service in java portal. the java portal asked me the username and password to open the WSDL.
    So, please help me to consume the abap web service in java web-dynpro.
    Thanks in advance
    Regards
    Vikas

    Hi Vikas ,
       while creating a model in web-dynpro try to use the "import web service model" option and if you are using local server choose the local server option so that you can get the available web services which are in server, select one among them and continue you process.I think this is the some what easy way .
    If you want use the URL for wsdl better to once test the available service in server and copy that WSDL URL and paste over  WSDL textbox.
    I think this is pretty help ful to you
    Best Regards
    Srikatnh

  • Call web service using Java code

    Hi all,
    Sorry if this question sounds stupid. I am new to web services.
    I am having a web service written in oracle, using soap-api. I want to call this web service in Java application, parse the result and save it in the database.
    Can anyone please guide me on this or give me some related link. I tried searching on google, tried to implement some of the solutions I got in search results, but it was not that helpful.
    Waiting for your help. Please guide me through this.
    Waiting for your replies. Thanks in advance.
    Regards,
    Kinnaree

    Hi all,
    From my java code, I tried giving
    String testStr = service.search("and formatted_address like '%Test House%'");
    This service method is defined on my SearchPortType.java file. This and the searchClient.java, as I mentioned earlier are auto generated files by myeclipse IDE. I gave WSDL URL, which generated these two files.
    This helped me invoking the service, but it gives me an exception as below:
    Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message.
    org.codehaus.xfire.fault.XFireFault: Couldn't send message.
         at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
         at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:30)
         at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
         at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
         at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
         at org.codehaus.xfire.client.Client.invoke(Client.java:336)
         at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
         at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
         at $Proxy8.search(Unknown Source)
         at com.imriel.client.cbre.chelsea.util.test.searchClient.main(searchClient.java:104)
    Caused by: org.codehaus.xfire.XFireException: Couldn't send message.
         at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:145)
         at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
         at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
         ... 8 more
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
         at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)
         at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
         at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
         at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
         at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:369)
         at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
         ... 10 more
    Any ideas, where I am wrong????
    Regards,
    Kinnaree

  • How to call an ebs  web service using the soa gateway

    Hi All,
    I installed Oracle E-Business Suite Release 12.1.1 Media Pack v4 (32bit) and now I wanna use the soa gateway to develop and integration and consume web services. I found the soa gateway/irep and I can browse through the existing services. But how can I call one e. g. using .NET?
    For .NET, I need an valid address (URL) to the services. How can I get such an URL.
    Example:
    I opened the integration repository, browsed to:
    Order Management Suite - Order Management - Sales Order - INBOUND: Change Purchase Order XML Transaction.
    I cannot find an address at this page which can be used in MS Dev Studio to call the service.
    If I click on "Generate WSDL" or try to open the WSDL under the "Web Service - Web Service Provider" section, I get an error message:
    Error
    SOA Provider Access resulted in exception 'oracle.apps.fnd.soa.util.SOAException: SystemError: Error while sending message to server. Server returned HTTP response code: 500 for URL: http://ebs1.tesis.de:8000/webservices/SOAProvider/EbizAuth?Generate=4283&soa_ticket=HKGsq9YYnoswMKFsHijTPQ..' when attempting to perform 'GENERATE'. Please contact your System Administrator
    What exactly does this error mean?
    Many thanks,
    Konrad

    You have to make sure every step in MOS Document ID 726414.1 that is applicable to your E-Business Suite 12.1.x release is performed. Enabling ASADMIN is just one of the steps. In spite of following all the steps in this Document you continue to get the error when clicking "Generate WSDL", please log a Service Request with Oracle Support.I will check all steps again. Maybe I missed one... Thanks!

  • How to access password protected web service endpoint?

    Hello,
    I annotated an EJB as a web service end point with @WebService and @WebMethod, and put this end point into a security realm from sun-ejb-jar.xml.
    Then I use wsimport to generate the client source code and compiled them with my program. But when I call the web service, an exception was thrown with message body "The server sent HTTP status code 401: Unauthorized". It seems that username and password for the realm will be set somewhere.
    Could someone tell me where can I put the username and the password?
    Thank you very much.

    Also I don't understand how security works in cases where I do not have the password. Imagine that my client is inside a web application, and is authenticated by the application server (by some unknown mechanism, even could be sso). I have access to my Subject and all, but I don't know the password.
    How would I do to call another web application (or web service) in name of the callee. (that is, the user who called my web application)

  • How do i contact a web service using forms 6.0?

    I need my application (using Forms [32 Bit] Version 6.0.8.13.0 (Production) and oracle 8) to get some informations from a web service. Does anybody have a suggestion?
    I thought I could make a java bean to contact the web service and then put a java bean in a bean area but it doesn't seem to work for a client service application (either that or i did something wrong trying, but the result of a google search claims that "Javabean integration in Oracle Forms is a Forms on the Web feature only. It won't work in client server mode.")
    Please, I would appreciate any suggestion to allow the form to colloquiate with the web service.

    That's not the answer I was hoping for (1) but I have to admit that's pretty much what I expected. I did some google search and every hint was in that direction.
    I'll see if I can put put together a activex or ole2 to get the same result, even if i have next to no experience on building such components. If everything else fails I'll just have my form call a separate executable via "host" command and wait for the answer either on the db or on a file.
    Thanks
    (1) the answer I was hoping for was something among the lines of "Who cares? I've got this truckload of money I don't know what to do of, so I'll just give it to you. Quit that boring job and retire in luxury on some private island with a harem of perfect looking women". Quite unlikely,I know, but since I'm hoping, why shouldn't I hope for the best possible outcome?

  • How to send request to web service using .pem certificate.

    Dear All,
    I have a .pem, WSDL file and (Request and Response format), this files are provided by the customer, now I have generated the ServiceClass using WSDL file using wsdl.exe.
    Now when I send the request I am getting error as "The underlying connection was closed: An unexpected error
    occurred on a send" when I told my customer to remove the certificate validation from their web service the "Request
    and Response both are working fine".
    When I opened the .pem file in notepad the content was 
    -----BEGIN CERTIFICATE-----
    dfkhdfhsdfghgfjhAklajdaJHZKkjjHAKJhjkhkjhkjhkjhkjJKJHKJ......................................
    /R-----END CERTIFICATE-----
    and nothing else was there as per my client my code is proper for sending request to web service but the using of file i.e .pem file is not proper.
    I want to know what else I have to do my customer have given me only .pem file with -----BEGIN CERTIFICATE-----  and -----END CERTIFICATE----- nothing else in the file.
    Can anybody please help me in this, below is my code snapshot.
    try
    var pem = System.IO.File.ReadAllText(Application.StartupPath + "\\server_selfsigned.pem");
    byte[] certBuffer = GetBytesFromPEM(pem, "CERTIFICATE");
    SMSService sms = new SMSService(txtURL.Text.Trim());
    sms.ClientCertificates.Add(new System.Security.Cryptography.X509Certificates.X509Certificate2
    (certBuffer));
    SMSRequest smsReq = new SMSRequest();
    smsReq.UID = "2000";
    smsReq.SMSDetails = new SMSRequestSMSDetails { MessageText = txtMessage.Text.Trim(), MobileNumber = txtMobile.Text.Trim() };
    SMSReponse smsRes = sms.sendSMSOperation(smsReq);
    MessageBox.Show(smsRes.Code + " = " + smsRes.Message + " = " + smsRes.Status);
    catch (Exception ex)
    MessageBox.Show(ex.Message);
    Thanks in advance.
    Best Regards,
    Manoj Gupta.

    Hi,
    This issue might be due to the invalid .pem certificate file.
    Make sure to include the beginning and end tags on each certificate.                   
    The result should look like this:                
    -----BEGIN CERTIFICATE-----
    (Your Primary SSL certificate: your_domain_name.crt)
    -----END CERTIFICATE-----
    -----BEGIN CERTIFICATE-----
    (Your Intermediate certificate: DigiCertCA.crt)
    -----END CERTIFICATE-----
    For more detailed information, you could refer to:
    https://www.digicert.com/ssl-support/pem-ssl-creation.htm
    Regards

  • Web Services using Java 6

    Hi,
    Well, I've been very enthusiastic in implementing a new application that's taking advantage of the newly introduced technology that Java 6 has to offer, instant web services that is. I've implemented the web services and was also able to launch the internal server that comes with the JDK. I must admit that life became really easy due to those introduced technologies, it saved me a lot of time. Furthermore, now I've reached a point where an application I'm integrating with needs to call my server by invoking a simple http request, however, since my server only provides web services I'm kind of stuck and can't think of an easy (fast) solution... I wouldn't like returning to the frustrating old days where I had to use Tomcat and also Axis in order to support both of these functionalities... the question is whether there is a simple way to also expose a simple servlet by using the internal Java 6 server or maybe there is a way to expose a webservice that is actually a servlet...
    your answers are very appreciated :)
    thanks,
    Gil.
    Edited by: GilBa on Apr 15, 2009 2:05 PM

    Hi,
    well, I've taken your advice seriously and immediately turned into embedding Jetty into my application...
    However, due to the fact that I'm a newbie to both Jetty and Web Services I have gotten to a point where I no longer manage to continue :-(
    In order to enable web services I've followed this guideline ([http://gorik.wordpress.com/2008/03/15/jax-ws-and-jetty/]), however, it seems to mislead in some points or at least lacks some vital information I suppose...
    I could not successfully access my webservice even after doing the following actions:
    1 - Writing web service source code and using webservice annotations.
    2 - Successfully generating wsdl and xsd files
    3 - Successfully running Jetty server
    4 - created folders under jetty\webapps\ : myApplication\WEB-INF, myApplication\wsdl
    5 - copied jar file holding the webservice into WEB-INF lib, copied the wsdl under the wsdl lib
    6 - created a web.xml file under myApplication with the following content:
    <web-app version="2.4? mlns="http://java.sun.com/xml/ns/j2ee" xsi:schemalocation="http://java.sun.com/xml/ns/j2ee [http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd]">
    <description>fromwsdl</description>
    <display-name>fromwsdl</display-name></web-app>
    <listener>
    <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class></listener> <servlet>
    <description>JAX-WS endpoint - fromwsdl</description>
    <display-name>fromwsdl</display-name>
    <servlet-name>WebServices</servlet-name>
    <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>WebServices</servlet-name>
    <url-pattern>/NadlanWebServices</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>60</session-timeout>
    </session-config>
    {code}
    and what happens when I launch Jetty server is that it claims that it cannot find index.jsp file which is the file that's configured in jetty/etc/webdefault.xml,
    though clearly, it should have not looked for this file due to the servlet mapping I've configured in the web.xml that appears above...
    please help ....
    thanks,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • How do you change default search engine?

    Want to use something other that Google. Is this not possible? Anyone know a terminal hack or command that might enable me to substitute bing or acid search or something else?

  • Iweb and frames,want to create a link to open outside the frame set

    Iweb is using Frames and I need to create a link that opens outside the frame set. Can this be done? IMAC   Mac OS X (10.3.9)  

  • Calendar Dates move ahead one day.

    We have an exec that is having issues when he schedules meetings. They create the meeting in outlook and send out to all the other exec's, when the exec's get them (iphone/ipad users) the dates are always ahead by one day. Should mention that the exe

  • Intel 875p can you help guys?

    I wonder if some of you guys could help me out, Ive downloaded a program from Maxtor called powermax to check out my drives, its a quick download and it builds a bootable disk for you. When I boot up from this floppy I get the error message "cannot c

  • Getting error in TNS connection from Oracle hosted on LINUX machine

    Hello, We moved our databases from Solaris to Linux servers. I am running one multithreaded process which creates a pool of db connection which are shared by threads. On moving to Linx db I am getting below error message [SERVERERROR] ORA-12520: TNS: