Pl/sql webservice

Hello,
I would like to publish a pl/sql package as webservice. Let's say using Jdeveloper 10.1.3.3. Generation is fine, I can compile my project and it runs perfectly with OC4J. I deploy the project into a war and try to deploy it to a Sun Application server 9. That is when all hell breaks loose.
- I have to change the urlpattern in the web.xml, it needs a slash
- the server said namingconflict. I found that the <service-interface> and the <service-endpoint-interface> tags point to the same name in the java-wsdl-mapping file so I changed the service-interface tag by removing the package name
Still I cannot deploy the war and I find the following in the server log:
[#|2008-11-07T09:45:23.249+0100|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=32;_ThreadName=Thread-107993;|
C:\Sun\SDK\domains\domain1\generated\ejb\j2ee-modules\Application2-Project1-context-root\f10\MyWebService1_Tie.java:34: cannot find symbol
symbol : class MyWebService1_SerializerRegistry
location: class f10.MyWebService1_Tie
super(new MyWebService1_SerializerRegistry().getRegistry());
^
|#]
I guess the server is looking for something which should be there according to the jax-rpc spec, but maybe JDeveloper does not generate it. I am totally out of ideas. Anyone? BTW, I have downloaded 11g but actually it is worse than the old one. It cannot compile the code it generates from the same pl/sql package.
Regards,
Krisztian

Finally figured it out. If you generate pl/sql webservices and you want to deploy them to a Sun Application server, you have to change 2 things:
- in web.xml change the urlpattern to start with a slash
- in the java-wsdl-mapping file change the <service-interface> tag contents, add Service to the end of the interface name (package.interface -> package.interfaceService
K

Similar Messages

  • Creating PL/SQL webservices in Workshop

    Hi,
    I am very new to workshop. In jdeveloper we can able to create a PL/SQL webservice.
    Is it possible to create a PL/SQL webservice Workshop?
    If so, Please let me know the steps & documentation.
    Please help me.
    Regards,
    Latha

    Hallo again,
    Asking the question the other way round.
    Is it possible to use the "PL/SQL WebService Assistance" of JDeveloper as some kind of command line tool (like JPublisher)?
    Some background information:
    We work a lot with PL/SQL and Generation of PL/SQL code. The final product should be some WebServices that will be driven by the PL/SQL packages. To facilitate the creation of WebServices we search for some solution to generate such PL/SQL WebServices. JDeveloper in the Version 11 offers here a very cool and uptodate tool the "PL/SQL WebService Assistance" - but is it possible to use this assistent for "Generation" of WebServices? Could we use some JDeveloper APIs to "remote" controll this feature.
    Thx a lot for every hint,
    Willi

  • PL/SQL Webservice in jdeveloper 10.1.3.2.0

    Hi
    I am very new to Creating Web Services. As I got a requirement to develop a Web Service using PL/SQL.
    I have gone the posting but could not able to find a document which will give me step by step instructions to create and deploy and test the PL/SQL Webservice.
    Could any body help me out in this regard.
    Hightly appreciate your help
    Regards
    Kiran Akkiraju

    http://www.oracle.com/technology/obe/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm
    It's pretty well documented within Jdev also.
    Thanks, Rob

  • Error  in PL/SQL Webservice Creation

    Error in PL/SQL WebService Creation
    We are using Jdeveloper Oracle IDE 9.0.3.9.93.
    I am trying to convert a simple function inside a package whose specification is as follows:
    package opera_util as
    Function get_codes_in_string
    (in_select_statement in varchar2,
    in_separator in varchar2 default ',' ) return varchar2;
    end opera_util;
    This gives me following error
    java.lang.NullPointerException
    void oracle.jdevimpl.webservices.generator.WrapperClassGenerator.wrapTimestamps(oracle.jdeveloper.model.JProject, java.lang.String, java.util.List)
    WrapperClassGenerator.java:417
    java.util.List oracle.jdevimpl.webservices.generator.WrapperClassGenerator.generate(oracle.jdeveloper.model.JProject, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.List, oracle.ide.dialogs.ProgressBar)
    WrapperClassGenerator.java:340
    void oracle.jdevimpl.webservices.generator.SPWebServiceGenerator.generateImpl(oracle.jdevimpl.webservices.wizard.publish.SPPublishModel, oracle.jdevimpl.webservices.util.JavaXSDTypeMap)
    SPWebServiceGenerator.java:234
    void oracle.jdevimpl.webservices.generator.SPWebServiceGenerator.access$1000071(oracle.jdevimpl.webservices.generator.SPWebServiceGenerator, oracle.jdevimpl.webservices.wizard.publish.SPPublishModel, oracle.jdevimpl.webservices.util.JavaXSDTypeMap)
    SPWebServiceGenerator.java:68
    void oracle.jdevimpl.webservices.generator.SPWebServiceGenerator$1.run()
    SPWebServiceGenerator.java:155
    void oracle.ide.dialogs.ProgressBar.run()
    ProgressBar.java:522
    void java.lang.Thread.run()
    Thread.java:484
    Any Ideas?

    Hi,
    Could you re-try publication, running jdevw.exe instead of jdev.exe, please? This will send some extra information to a console.
    I have a feeling something may be going wrong when JPublisher and SQLJ is invoked by the generator, and they both print out errors and warnings to the console. Post the information from the console here and we'll be able to figure out what's going wrong.
    Thanks,
    Alan.

  • Jdeveloper pl/sql webservices with Nested Tables

    Hello
    I am using JDeveloper 10.1.3.1.0,I have created pl/sql webservice using the nested tables. This will insert the object data into database tables.after deplying the webservice into external oc4j, when I test the webservice locally with url: http://localmachine:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
    The above web-services working and I am able to insert into the database tables.
    Same when I want to access through the application server, I have changed the wsdl file soap address as
    <soap:address location="http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort"/>
    When I access this url, I am able to give the input data
    http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
    but the out from the web-service is:
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>env:Server</faultcode>
    <faultstring>Error creating target: DBConnImpMftest.ObjWebserviceUser</faultstring>
    <faultactor/>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Could any one help to solve the above issue?
    Kind regards
    Malathi

    try that !
    select a.*, case
    when a.item_type = 1 then b.inv_date
    when a.item_type = 3 then c.deb_date
    end as item_date
    from receipt_item a
    left join invoice b on a.item_id = b.invvi_id and a.item_type = 1
    left join Debit c on a.item_id = c.deb_id and a.item_type = 3

  • 11g preview version 3: JNDI Lookup problem when calling PL/SQL webservice

    Hi,
    I am experiencing a problem when calling a PL/SQL Webservice from a BPEL flow.
    When I am trying to test my BPEL flow from the SOA Console I get a "Error doing JNDI lookup on target jdbc/MyDBDS"
    The composite application including the BPEL flow is deployed in one application. "CompositeApp" and the web service in another Application called
    "WebServiceApp".
    Both applications are deployed on the same built in OC4J Application Server
    If I test the webservice in isolation from the SOA console it works. It also seems to be working if the webservice and the and the BPEL flow is in the same project.
    If anyone has any ideas on this one I would be very greatful.
    Thanks in advance

    try creating the MyDBDS connection as an application resource in both applications.

  • Calling oracle API having parameter as record type throughPL/SQL WebService

    Hi All,
    I dont know whether this is the right forum to put this query, but as i am using a pl/sql web service , putting the query on this forum.
    My requirement is to call oracle API which in turh creates a single Invoice(using Ar_Invoice_Api_Pub.create_single_invoice )
    But the issue is this API in turn has some of the input parameters as Record type and table type, my concern is how to pass this data(record type or table type) as parameter thorugh java code .. If i use Collection or Hashmap will it work , I dont think so , some intermediate conversion will require.
    Subsequently the other requirement is fetch this record/table type data and return it to the java code
    Please correct me if i am wrong and suggest a proper solution if anybody is aware off or tried such things before.
    Thanks in advance.
    Regards,
    Anant.

    Hi,I'm new comer of this world,
    I've a pl/sql like this:
    package MY_WS_API is
    type record_set is ref cursor;
    PROCEDURE Get_User_Info(p_user_id VARCHAR2,
    p_rep_id VARCHAR2,
    p_flag out number,
    p_msg out varchar2,
    p_recordset out record_set);
    end MY_WS_API;
    when I using jdeveloper trying to publish it as a webservice, in the step 4 of the wizzard poping me choose the program unit to expose, the PROCEDURE Get_User_Info is not available and told me "Ref cursor Type is not supported due to a jdbc limitation and Ref Cursor Types are only supported for use of return type".
    THE QUESTION is:
    1.the cursor I used is of return type,I'm not very understanding the "why not" message upon.
    2.in such case , need I trans the return cursor into Object[] if have to?
    3.any other limitation for generating WS from PL/SQL using jdeveloper?
    Thanks!

  • How can I customize the auto-generated WSDL when using a PL/SQL webservice?

    My webservice returns a refcursor as an ArrayOfString. (I followed the sample code.) Instead of everything being returned in one large array, I need to create a correct record hierarchy, like <rec1><fld1></fld1></rec1>, etc.
    As far as I know, this grouping has to be done in a WSDL file. However, following this sample, the WSDL is auto-generated and overwritten with each launch of the webservice.
    Am I missing something, or are there other secrets/tips?
    thanks

    Very Nice:) Thanks!
    1. I added this to my HTM HEADER:
    <script language="JavaScript" type="text/javascript">
    function test_javaprompt () {
    var Hours = prompt("How Many Hours?");
    $x('P142_HOURS').value = Hours;
    doSubmit()
    </script>
    2. I Created an Item:
    P142_HOURS
    3. I Created a Button:
    TEST_JAVA
    a. In the Button area for, Optional URL Redirect, I selected- Target is a URL
    b. URL Target- javascript:test_javaprompt();
    When I press the Button then it does Exactly what I want it to do.
    Except....
    Ultimately, I do not want this javascript assigned to the button.
    I would like to run this javascript when the value of a DatePicker Item, (P142_DROPS_SUBMITTED) is changed.
    If you can help me with that then I'll be forever grateful:)
    -Gary

  • Creating PL/SQL web services from object types

    Hello
    Jdeveloper, pl/sql web-services working successfully with object types.If we want to send the web-services to the client, do we need to send the entire folder that is created in the web-services folder of the external oc4j..?
    Creating the client process:
    we are using the wsdl file that is generated in the web-services and adding to the partner link to Invoke the operations of web-services. Is there any other way to invoke the webservices?Could any one please suggest me?
    Thanking you
    Malathi

    Hello
    Accessing the pl/sql webservices from the application server:
    I have created pl/sql webservice using the nested tables. This will insert the object data into database tables.after deplying the webservice into external oc4j, when I test the webservice locally with url: http://localmachine:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
    The above web-services working and I am able to insert into the database tables.
    Same when I want to access through the application server, I have changed the wsdl file soap address as
    <soap:address location="http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort"/>
    When I access this url, I am able to give the input data
    http://10.91.20.7:8888/PL_SQL_WS-Nest_Obj_Webservice-context-root/ObjWebserviceSoapHttpPort
    but the out from the web-service is:
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>env:Server</faultcode>
    <faultstring>Error creating target: DBConnImpMftest.ObjWebserviceUser</faultstring>
    <faultactor/>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Err from the OC4j log:<PAYLOAD>
    <MSG_TEXT>An error occurred for port: {http://dbconnimpmftest/Nested_Webserv.wsdl}Nested_WebservSoapHttpPort: javax.xml.rpc.JAXRPCException: Error creating target: dbconnimpmftest.Nested_WebservUser.</MSG_TEXT>
    </PAYLOAD>
    Could any one help me to solve the above issue?
    Kind regards
    Malathi

  • Error while running PL/SQL Web Service in JDeveloper

    Hi,
    I am trying to run a PL/SQL Webservice example available on OTN site. Below mentioned error is occurring when running the program:
    *************** Error Stack Begin **********************
    D:\DevSuiteHome_1\jdk\bin\javaw.exe -ojvm -classpath D:\DevSuiteHome_1\jdev\mywork\WebServiceOBE\PLSQLWebService\classes;D:\DevSuiteHome_1\sqlj\lib\runtime12ee.jar;D:\DevSuiteHome_1\jdbc\lib\classes12.jar;D:\DevSuiteHome_1\jdbc\lib\nls_charset12.jar;D:\DevSuiteHome_1\jdev\lib\jdev-rt.jar;D:\DevSuiteHome_1\soap\lib\soap.jar;D:\DevSuiteHome_1\lib\xmlparserv2.jar;D:\DevSuiteHome_1\jlib\javax-ssl-1_2.jar;D:\DevSuiteHome_1\jlib\jssl-1_2.jar;D:\DevSuiteHome_1\j2ee\home\lib\activation.jar;D:\DevSuiteHome_1\j2ee\home\lib\mail.jar;D:\DevSuiteHome_1\j2ee\home\lib\http_client.jar -Dhttp.proxyHost=instpisa -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=*.sierraopt.com|nshore|localhost|127.0.0.1 mypackage2.MyWebService1Stub
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type &quot;text/html&quot;, must be: &quot;text/xml&quot;. Response was:
    &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;404 Not Found&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;404 Not Found&lt;/H1&gt;Resource /WebServiceOBE-PLSQLWebService-context-root/MyWebService1 not found on this server&lt;/BODY&gt;&lt;/HTML&gt;
         at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)
         at org.apache.soap.rpc.Call.invoke(Call.java:268)
         at mypackage2.MyWebService1Stub.getEmp(MyWebService1Stub.java:86)
         at mypackage2.MyWebService1Stub.main(MyWebService1Stub.java:40)
    Process exited with exit code 0.
    *************** Error Stack End **********************
    Please would anyone help me by providing clues to resolve this issue.
    Thank you.
    Regards,
    Balu

    Thanks Frank.
    In my function package i create xml use dbms_xmldom. I save created xml into clob and return this clob in function.
    Now I want create web service that return my clob(xml).
    I try use JDevelper with PL/SQL Web Service Wizard.
    But I get wrong result (see in my first post).
    My Example xml in clob
    <test>"testvalue"</test>
    I want get responce
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    X-Powered-By: Servlet/2.5 JSP/2.1
    SOAPAction: "http://localhost/MyWebService1.wsdl/udoFDicnomnsXmlWs"
    Date: Thu, 28 Oct 2010 08:23:31 GMT
    X-ORACLE-DMS-ECID: 0000IjlvoFZB_6yb05nZ6F1CmJAZ000006
    Content-Length: 279812
    X-HTTPAnalyzer-RuleName: Pass through :
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <env:Header/>
    <env:Body>
    <m:udoFDicnomnsXmlWsResponse xmlns:m="http://localhost/MyWebService1.wsdl">
    <result><test>"testvalue"</test>
    </result>
    </m:udoFDicnomnsXmlWsResponse>
    </env:Body>
    </env:Envelope>
    But I get
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    X-Powered-By: Servlet/2.5 JSP/2.1
    SOAPAction: "http://localhost/MyWebService1.wsdl/udoFDicnomnsXmlWs"
    Date: Thu, 28 Oct 2010 08:23:31 GMT
    X-ORACLE-DMS-ECID: 0000IjlvoFZB_6yb05nZ6F1CmJAZ000006
    Content-Length: 279812
    X-HTTPAnalyzer-RuleName: Pass through :
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <env:Header/>
    <env:Body>
    <m:udoFDicnomnsXmlWsResponse xmlns:m="http://localhost/MyWebService1.wsdl">
    <result>& lt;test>&amp;quot;testvalue&amp;quot;& lt;/test>
    </result>
    </m:udoFDicnomnsXmlWsResponse>
    </env:Body>
    </env:Envelope>
    Can you advice something?
    Edited by: user10707438 on 28.10.2010 1:14
    Edited by: user10707438 on 28.10.2010 1:27

  • PL/SQL Web service error

    Hi
    I am trying to create a PL/SQL Webservice based on an Oracle package. It fails with "An expected error was encounted. Generation aborted."
    The exception stack trace is pasted below. Any help is appreciated.
    java.io.FileNotFoundException: D:\OraBPELPM_1\integration\jdev\jdev\mywork\BPEL_Synch_Asynch\BPEL_Asynch_hlqk\src\__temp_java_wrappers\dbconnection_mesd\MyWebService1Base.java (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at oracle.ide.net.FileURLFileSystemHelper.openInputStream(FileURLFileSystemHelper.java:481)
         at oracle.ide.net.URLFileSystemHelperDecorator.openInputStream(URLFileSystemHelperDecorator.java:242)
         at oracle.ide.net.URLFileSystem.openInputStream(URLFileSystem.java:1028)
         at oracle.jdevimpl.webservices.generator.WrapperClassGenerator$1.run(WrapperClassGenerator.java:304)
         at oracle.jdevimpl.webservices.util.ThreadUtil$NonThrowingRunnable.run(ThreadUtil.java:106)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:171)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
         at java.awt.Dialog$1.run(Dialog.java:540)
         at java.awt.Dialog.show(Dialog.java:561)
         at java.awt.Component.show(Component.java:1133)
         at java.awt.Component.setVisible(Component.java:1088)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:288)
         at oracle.jdevimpl.webservices.generator.SPWebServiceGenerator.generateImpl(SPWebServiceGenerator.java:296)
         at oracle.jdevimpl.webservices.generator.SPWebServiceGenerator.generate(SPWebServiceGenerator.java:170)
         at oracle.jdevimpl.webservices.generator.JAXRPCGenerator.generateNonJAXPlsqlService(JAXRPCGenerator.java:1920)
         at oracle.jdevimpl.webservices.generator.JAXRPCGenerator.generateNonJAXService(JAXRPCGenerator.java:1548)
         at oracle.jdevimpl.webservices.generator.JAXRPCGenerator.generateService(JAXRPCGenerator.java:223)
         at oracle.jdeveloper.webservices.JAXRPCSvcModel.saveEdit(JAXRPCSvcModel.java:1613)
         at oracle.jdevimpl.webservices.wizard.SPWebServicePublishWizard.runWizard(SPWebServicePublishWizard.java:362)
         at oracle.jdevimpl.webservices.wizard.SPWebServicePublish.invoke(SPWebServicePublish.java:99)
         at oracle.ide.WizardManager.invokeWizard(WizardManager.java:484)
         at oracle.ide.WizardManager$1.run(WizardManager.java:538)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    I was trying to create a webservice based on a function in the package and that's when I got this error. I tried the same with a procedure in the same package and it works.
    Am I not supposed to used functions for creating webservices then?

  • PL/sql web service error !!!!!!! Help

    I was trying out the PL/SQL webservice example on OTN [http://otn.oracle.com/pub/articles/price_10gws.html]
    My environment is Oracle10G database, which comes with standalone version of oc4j, and I followed all the steps per the article but I still get the following error on invoking the Pl/SQL webservice: [What is the needed to make it work]...Please let me know...Thanks
    500 Internal Server Error
    java.lang.NoClassDefFoundError: oracle/aurora/ncomp/java/ClassNotFound
         at oracle.j2ee.ws.StatelessStoredProcRpcWebService.getGenerator(StatelessStoredProcRpcWebService.java:17)
         at oracle.j2ee.ws.RpcWebService.generateWrapperClass(RpcWebService.java:443)
         at oracle.j2ee.ws.RpcWebService.generate(RpcWebService.java:396)
         at oracle.j2ee.ws.RpcWebService.getWrapper(RpcWebService.java:514)
         at oracle.j2ee.ws.RpcWebService.doGetRequest(RpcWebService.java:613)
         at oracle.j2ee.ws.BaseWebService.doGet(BaseWebService.java:1117)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:733)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:484)
    My web.xml is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
    <web-app>
    <servlet>
    <servlet-name>stateless Database web service - /plsqlsample/dbfunc</servlet-name>
    <servlet-class>oracle.j2ee.ws.StatelessStoredProcRpcWebService</servlet-class>
    <init-param>
    <param-name>class-name</param-name>
    <param-value>db.func.place.order.dbfuncUser</param-value>
    </init-param>
    <init-param>
    <param-name>interface-name</param-name>
    <param-value>db.func.place.order.dbfunc</param-value>
    </init-param>
    <init-param>
    <param-name>datasource-JNDI-name</param-name>
    <param-value>jdbc/OracleDSS</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>stateless Database web service - /plsqlsample/dbfunc</servlet-name>
    <url-pattern>/dbfunc</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <resource-ref>
    <res-ref-name>jdbc/OracleDSS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    And under Directory C:\oracle\product\10.1.0\db01\oc4j\j2ee\home\applications\dbfunc\dbfunc_web\WEB-INF\classes\db\func\place\order
    I have
    08/01/2004 01:03 AM 264 dbfunc.class
    08/01/2004 01:06 AM 2,000 dbfunc.wsdl
    08/01/2004 01:03 AM 3,240 dbfuncBase.class
    08/01/2004 01:03 AM 694 dbfuncUser.class
    4 File(s) 6,198 bytes

    Hello!
    I have a question. You seem to be getting somewhere. In the reference (in your post) there is no mention of web.xml Is it a generated file or a file created by you? I am getting IOException error when generating EAR file. What could be wrong? Please help
    TAI
    habeeb

  • PL/SQL Web Services

    Hello Dear Learners
    I am a very much new to SOA grounds, thats why I seek help to perform my task. My requirement is:
    I have two instances of oracle apps release 12.1.2, lets say Vis1 and Vis2. I have a custom transaction form which comprises on two tables of master & detail. Both the tables are deployed at both instances. Since I have good knowledge and working experience of pl/sql. Kindly guide me how can I insert date of Vis1 to Vis2 by using pl/sql web
    services or is there any better way instead of using pl/sql web service.
    dsReg

    What is the error?
    Did you test the PL/SQL webservice seperately?
    Regards,
    Lonneke

  • Handling exceptions in a PL/SQL Web Service

    Hi,
    I am building a JSF page which invokes some functions on a Pl/SQL web service. I am accessing this web service via a data control.
    Now, if my pl/sql procedure throws an exception, how can I propogate that exception to the UI, say display an alarm message telling the exception.
    I am not very aware of how I can propogate my exceptions from the pl/sql code to the web service itself, so could you please explain this in more detail.
    Awaiting your replies..
    Thanks
    Arvind

    Currently, PL/SQL webservice does not map SQL exceptions into webservice faults. You may be able to see the SQL error in the server fault message though.

  • Urgent!! PL/SQL web service can not get output param in BPEL

    OC4J 10.1.2 generate PL/SQL web service can not get output param can not get output param in BPEL when call a pl/sql webservice.
    wsdl as follow:
    <types>
    <schema targetNamespace="http://db.func.getqf/COMMON.xsd" xmlns:tns="http://db.func.getqf/COMMON.xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <complexType name="db_func_getqf_COMMONUser_getqf_Out">
    <all>
    <element name="pnqfysOut" type="xsd:decimal"/>
    <element name="pnzqfOut" type="xsd:decimal"/>
    </all>
    </complexType>
    </schema>
    </types>
    <message name="getqfOutput">
    <part name="return" type="xsd1:db_func_getqf_COMMONUser_getqf_Out"/>
    </message>

    the wsdl which generate by OC4J is as follows:
    <?xml version="1.0" ?>
    - <definitions name="COMMON" targetNamespace="http://db.func.getqf/COMMON.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://db.func.getqf/COMMON.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd1="http://db.func.getqf/COMMON.xsd">
    <documentation>WSDL for Service: COMMON, generated by Oracle WSDL toolkit (version: 1.1)</documentation>
    - <types>
    - <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://db.func.getqf/COMMON.xsd" xmlns:tns="http://db.func.getqf/COMMON.xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <complexType name="db_func_getqf_COMMONUser_getqf_Out">
    - <all>
    <element name="pnqfysOut" type="xsd:decimal" />
    <element name="pnzqfOut" type="xsd:decimal" />
    </all>
    </complexType>
    </schema>
    </types>
    - <message name="getqfOutput">
    <part name="return" type="xsd1:db_func_getqf_COMMONUser_getqf_Out" />
    </message>
    - <message name="getqfInput">
    <part name="param0" type="xsd:string" />
    </message>
    - <portType name="COMMONPortType">
    - <operation name="getqf">
    <input message="tns:getqfInput" />
    <output message="tns:getqfOutput" />
    </operation>
    </portType>
    - <binding name="COMMONBinding" type="tns:COMMONPortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
    - <operation name="getqf">
    <soap:operation soapAction="urn:db-func-getqf-COMMON/getqf" />
    - <input>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:db-func-getqf-COMMON" />
    </input>
    - <output>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:db-func-getqf-COMMON" />
    </output>
    </operation>
    </binding>
    - <service name="COMMON">
    - <port name="COMMONPort" binding="tns:COMMONBinding">
    <soap:address location="http://localhost:9700/plsqlgetqf/getqf" />
    </port>
    </service>
    </definitions>

Maybe you are looking for

  • STDMES field in EDI _DC40  value is not getting reflected in SAP R/3

    Hi All, We have a EDI to IDOC scenario. In message mapping we are hardcoding EDI_DC40\STDMES = 812 in message mapping and in sxmb_moni in PI we can see this value getting populated in xml message but at SAP end in we02 it is blank. Value is not getti

  • Add,Get,Remove in linked lists

    I need to be able to add, get and remove items from the linked list and I can't seem to be able to get any of it to work. Ignore the coments, that's just where I was experimenting with other ways of doing it. I keep getting an error from inside case1

  • My bookmarks toolbar reverted this morning to an old set of bookmarks. My firefox was also upgraded today.

    Today when I started firefox, I was greeted to a version update screen. I also noticed that my bookmarks toolbar was reset to an old set of bookmarks that I previously used with the foxmarks add on. After I had removed foxmarks, I changed my bookmark

  • Scratch disc full in Photoshop CS2

    This may be a dumb question, but I'm new to Macs. I'm working in Photoshop and went to crop an image and a box popped up telling me that the action could not be completed because the scratch disc is full. I have searched Mac help, and photoshop help

  • White screen with flashing question mark

    AAll I get is white screen with flashing question mark.  I've inserted OS disc but it won't run.  Can anyone help plz?