Scalability Issues for Creating Pl/sql Web Services

While Creating Pl/Sql Web Services , jdeveloper automatically creates wrappers files for the same, When using complex types for pl/sql Procedures, the wrappers contain huge no of attributes , Will there be a scalability issue for such kind of complex PL/SQL API Web services, will there be a round trips to database in order to map the attributes of java wrapper files with the Pl/SQL API files
Also there is something called as Public View Object VO, how different it is from the normal View Object,is there a specific way to create Public View Object and XSD file for that, or its just a normal VO exposed publicly?

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

Similar Messages

  • 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

  • Creating PL/SQL web services from PL/SQL records

    Hello
    Jdeveloper does not allow to create web services from pl/sql packages that use PL/SQL records.to do this,we have to use the jpublisher ?without using the jpublisher,if we create a webservice then the following error is displayed in the web service xml output file.
    <faultstring>Internal Server Error (Caught exception while handling request: java.rmi.RemoteException: java.sql.SQLException: ORA-06550: line 1, column 49: PLS-00181: unsupported preprocessor directive '$WS_SP_EVEN' )</faultstring>
    </env:Fault>
    Could any one suggest me, how to solve the above issue..?
    Regards
    Malathi

    Thank you, with db adapter it was working and also
    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

  • Incorrect wrapper package created for a PL/SQL web service

    Hi there,
    JDeveloper 11.1.1.3.0
    Oracle DB Enterprise Edition Release 11.1.0.7.0
    I created a web service based on a PL/SQL package. For some functions in that package (the ones with IN OUT parameters it seems) JDev created a wrapper package. However that wrapper package is wrong and it fails to compile and consequently the web service calls fail.
    The generated wrapper package looks like this:
    CREATE OR REPLACE PACKAGE BODY CustFeedbackWS_plsql_wrapper IS
    FUNCTION "CFB_PKG"$FN_SET_CATEGORISATI (P_TAB IN OUT CFB_CATEGORISATION_TAB
    ) RETURN INTEGER IS
    RETURN_ INTEGER;
    BEGIN
    RETURN_ := SYS.SQLJUTL.BOOL2INT("CFB_PKG".FN_SET_CATEGORISATIONS_IW(P_TAB
    ...As you can guess, CFB_PKG is the original package name. However, because of the double quotes added around it, this code fails to compile with the error:
    PLS-00181: unsupported preprocessor directive '$FN_SET_CATEGORISATI'I have two questions regarding this:
    1 - Why wrapper functions were created for some functions (8 out of more than 30) and not for others, is it because they have IN OUT parameters?
    2 - Any suggestions on how to fix this problem?
    Thanks!
    Luis

    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 : Error while creating PL/SQL web service in JDeveloper 11R2

    Hi,
    I am new to web services and I have a requirement to create web services in PL/SQL. I installed JDeveloper 11R2 in my machine and connected it to my local schema.
    My database is Oracle 10g.
    I am able to see my package in JDeveloper. But when I try to "Publish as JAX-RPC web service..."I am getting the following error:
    oracle.jdeveloper.webservices.tools.WsdlValidationException: oracle.j2ee.ws.common.tools.api.ValidationException: Error in database webservices assembly
    Error in database webservices assembly
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.newWsdlValidationException(WsaAdaptor.java:1126)
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.processDbEndpoint(WsaAdaptor.java:609)
         at oracle.jdeveloper.webservices.tools.WebServiceTools.processDbEndpoint(WebServiceTools.java:689)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.jdeveloper.webservices.tools.WebServiceTools$1.invoke(WebServiceTools.java:132)
         at $Proxy28.processDbEndpoint(Unknown Source)
         at oracle.jdeveloper.webservices.model.plsql.generator.PlsqlConfigureGenerator.createPortTypes(PlsqlConfigureGenerator.java:293)
         at oracle.jdeveloper.webservices.model.generator.ConfigureServiceGenerator.action(ConfigureServiceGenerator.java:66)
         at oracle.jdeveloper.webservices.model.plsql.generator.PlsqlConfigureGenerator.action(PlsqlConfigureGenerator.java:105)
         at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:142)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error in database webservices assembly
         at oracle.j2ee.ws.tools.wsa.db.WSADBPlugin.processDBEndpoint(WSADBPlugin.java:207)
         at oracle.j2ee.ws.tools.wsa.Util.processDBEndpoint(Util.java:1221)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.jdevimpl.webservices.util.Debug.invoke(Debug.java:343)
         at oracle.jdevimpl.webservices.tools.wsa.Assembler$2$1.invoke(Assembler.java:217)
         at $Proxy29.processDBEndpoint(Unknown Source)
         at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.processDbEndpoint(WsaAdaptor.java:598)
         ... 14 more.
    When I searched in google I came across solutions like "The error is caused by missing SYS.SQLJUTL definition in XE. " But my database is not XE and one more thing I noticed is there is no start_oc4j.bat file in the JDeveloper home.
    I would appreciate if anybody can throw some light on the issue.
    Regards,
    BJ

    OK, This is the PL/SQL package:
    Function:
    FUNCTION Obtener_paises RETURN res_webservice AS
    v_respuesta res_webservice;
    i PLS_INTEGER:=1;
    CURSOR C_paises IS
    SELECT cpais, tpais
    FROM paises
    ORDER BY tpais;
    BEGIN
    v_respuesta := res_webservice(null,null);
    v_respuesta.error := res_error(null,null,null);
    v_respuesta.error.cerror := 0;
    v_respuesta.error.cerror_ora := 0;
    v_respuesta.error.terror := null;
    v_respuesta.datos := res_datos ();
    FOR v_pais IN C_paises LOOP
    v_respuesta.datos.extend;
    v_respuesta.datos(i) := reg_datos(null,null);
    v_respuesta.datos(i).codigo := v_pais.cpais;
    v_respuesta.datos(i).descripcion := v_pais.tpais;
    i := i + 1;
    END LOOP;
    Insertar_log(NULL,SYSDATE,'C','Obtener_paises',NULL,'ERROR:0');
    RETURN v_respuesta;
    EXCEPTION
    WHEN OTHERS THEN
    v_respuesta.error.cerror := 1;
    v_respuesta.error.cerror_ora := SQLCODE;
    v_respuesta.error.terror := substr(SQLERRM,1,80);
    Insertar_log(NULL,SYSDATE,'C','Obtener_paises',NULL,'ERROR:1 '||substr(SQLERRM,1,120));
    RETURN v_respuesta;
    END Obtener_paises;
    TYPES USED:
    CREATE OR REPLACE
    TYPE res_webservice AS OBJECT (error res_error, datos res_datos);
    CREATE OR REPLACE
    TYPE res_error AS OBJECT (cerror NUMBER(1), cerror_ora VARCHAR2(12), terror VARCHAR2(80));
    CREATE OR REPLACE
    TYPE res_datos AS TABLE OF reg_datos;
    CREATE OR REPLACE
    TYPE reg_datos AS OBJECT(codigo VARCHAR2(12), descripcion VARCHAR2(150));
    Thanks in advanced...
    Could happen this bacause of these defined types???

  • Issues in creating Java based web services with JAXB 1.0 in Jdeveloper 10 g

    Hi All,
    I am trying out a simple java based web service creation exercise using Jdeveloper 10.1.3.3.0.3 and JAXB 1.0. Here is what I am trying to do.
    1. I have a XSD file called Status.xsd, which has three complex types in it.
    2. Using Jdeveloper Tools --> JAXB Compilation, I have created Jaxb classes for the above XSD files. For each of the complex type the jaxb class generator generated on IMPL clas and one abstract class.
    3. Now I have created one simple java class called Class1.java and created one method that takes the StatusImpl as input and as output for that method. Here is the code for Class1.java
    public class Class1 {
    public Class1() {
    public StatusImpl getstatus (StatusImpl in) {
    StatusImpl out;
    out = in;
    return out;
    4. Now, I trying to create a web service for this java class from jedeveloper. I have right clicked this class and went thru the wizard Create J2EE web services.
    5. At the end, the web service project got created successfully and I am trying to run this project from jdeveloper. When I run this project, I am getting the following kind of error message in the browser
    It looks like when the runtime deployment classes are trying to instantiate the abstract classes instead of the impl class. and for all the complex types they trow that error and the web service could not be even invoked.
    What could be the issue? Is the jaxb based web services supported with jdeveloper 10g?
    Thanks,
    Renga

    Hi All,
    I am trying out a simple java based web service creation exercise using Jdeveloper 10.1.3.3.0.3 and JAXB 1.0. Here is what I am trying to do.
    1. I have a XSD file called Status.xsd, which has three complex types in it.
    2. Using Jdeveloper Tools --> JAXB Compilation, I have created Jaxb classes for the above XSD files. For each of the complex type the jaxb class generator generated on IMPL clas and one abstract class.
    3. Now I have created one simple java class called Class1.java and created one method that takes the StatusImpl as input and as output for that method. Here is the code for Class1.java
    public class Class1 {
    public Class1() {
    public StatusImpl getstatus (StatusImpl in) {
    StatusImpl out;
    out = in;
    return out;
    4. Now, I trying to create a web service for this java class from jedeveloper. I have right clicked this class and went thru the wizard Create J2EE web services.
    5. At the end, the web service project got created successfully and I am trying to run this project from jdeveloper. When I run this project, I am getting the following kind of error message in the browser
    It looks like when the runtime deployment classes are trying to instantiate the abstract classes instead of the impl class. and for all the complex types they trow that error and the web service could not be even invoked.
    What could be the issue? Is the jaxb based web services supported with jdeveloper 10g?
    Thanks,
    Renga

  • Jdeveloper 11g R2 problem when publishing PL\SQL Web Service

    Hi Guys,
    I have been banging my head against the wall for the past few days trying to publish pl\sql package as a web service on a weblogic 10.3 but I keep running into the same problem.
    PL\SQL Package Source below
    create type dept_type as object
    (deptno NUMBER,
    dname VARCHAR2(50),
    loc varchar2(13),
    cr_date date)
    create type dept_list_table is table of dept_type
    purge recyclebin;
    create or replace package ws_package as
    procedure test_dept_table (pout out dept_list_table);
    end ws_package;
    show errors;
    create or replace package body ws_package as
    procedure test_dept_table (pout out dept_list_table) is
    all_depts dept_list_table := dept_list_table();
    dRecType dept_type;
    i number := 0;
    begin
    -- iterate through all depts
    for r_list in (select * from dept) loop
    i := i + 1;
    dRecType := dept_type(null, null, null, null);
    dRecType.deptno := r_list.deptno;
    dRecType.dname := r_list.dname;
    dRecType.loc := r_list.loc_id;
    dRecType.cr_date := sysdate;
    pout.extend;
    pout(i) := dRecType;
    end loop;
    end test_dept_table;
    end ws_package;
    show errors;
    I go and create PL\SQL Web Service using default settings in Jdeveloper 11g R2 but when I try and test this page I get the following response:
    Failed to invoke end component servqa.MyWebService1User (POJO), operation=testDeptTable -> Failed to invoke method -> java.sql.SQLException: ORA-06550: line 1, column 13: PLS-00306: wrong number or types of arguments in call to 'TEST_DEPT_TABLE' ORA-06550: line 1, column 7: PL/SQL: Statement ignored
    Anyone have any idea what the problem may be? Your help would be much appreceated!
    Bojan

    Hi Frank,
    I think the problem is in any procedure that has a COMPLEX TYPE as OUT parameter. So even if you strip down the procedure to just do nothing I still get the error as described in my top post. Passing complex parameters as IN parameter work fine its only when I have procedure with complex out when it errors. I also tried function that returns object parameter and that works fine too so not sure why this doesnt?
    create or replace package body ws_package as
    procedure test_dept_table (pout out dept_list_table) is
    begin
    -- iterate through all depts
    for r_list in (select * from dept) loop
    i := i + 1;
    end loop;
    end test_dept_table;
    end ws_package;
    Not sure if I am meant to do anything extra before I generate Web Service using JDeveloper if my procedure has got PL\SQL types as OUT parameters but as far as I know JDeveloper should do all the type conversions for you??
    Thanks
    Bojan

  • 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

  • PL SQL Web Service with XML output - Remove the declaration from the proces

    Using JDeveloper to create PL/SQL web services it inserts the generic declaration
    <?xml version="1.0" encoding="UTF-8" ?>. I want to remove this line from the payload.
    Here is the entire payload. Why is this inserted and how do I get rid of it.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.sql.SQLException: java.sql.SQLException: ORA-04068: existing state of packages has been discarded ORA-04063: package body "FDC_API.PVR_IPS_TICKET" has errors ORA-06508: PL/SQL: could not find program unit being called ORA-06512: at line 1</faultstring>
    <faultactor>/pvr_ora-pvr_tickets-context-root/Pvr2ips</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>rvice, my payload has the

    We can generate jaxws from 11.1.2.0 onwards using This is now provided by the TopLink web service provider builder, which can be via the TopLink DBWS provider wizard from JDeveloper since the 11.1.2.0.0 release
    1.4.4 Database Web Services (DBWS)
    http://docs.oracle.com/cd/E23943_01/doc.1111/e26045/general.htm#CHDIEEHG
    Hope that heps
    Regards,
    Sunil P

  • PL/SQL Web Service Error: IllegalArgumentException : No Deserializer found

    I deployed a pl/sql web service on a stand-alone OC4J, when I test this I am getting error "IllegalArgumentException : No Deserializer found to deserialize". Find below the detailed response:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.lang.IllegalArgumentException: No Deserializer found to deserialize a 'http://cmem.oracle.apps.cs.ws/ICmem_cs_ws_pkg.xsd:cmem_oracle_apps_cs_ws_CmemServiceRequestParamObj' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
    <faultactor>/cmemws/CmemServiceRequests</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I was using a complex parameter as well as response. Below is the WSDL. If anyone has any idea what could be the issue, let me know.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <!-- Generated by the Oracle JDeveloper Web Services WSDL Generator
    -->
    - <!-- Date Created: Tue Oct 27 12:30:19 CST 2009
    -->
    - <definitions name="CmemServiceRequests" targetNamespace="http://cmem/oracle/apps/cs/ws/CmemServiceRequests.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://cmem/oracle/apps/cs/ws/CmemServiceRequests.wsdl" xmlns:ns1="http://cmem.oracle.apps.cs.ws/CmemServiceRequests.xsd">
    - <types>
    - <schema targetNamespace="http://cmem.oracle.apps.cs.ws/CmemServiceRequests.xsd" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://www.w3.org/2001/XMLSchema">
    - <complexType name="cmem_oracle_apps_cs_ws_CmemServiceRequestParamObjUser" jdev:packageName="cmem.oracle.apps.cs.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    - <all>
    <element name="srId" type="decimal" nillable="true" minOccurs="0" />
    <element name="srNumber" type="string" nillable="true" minOccurs="0" />
    <element name="srGroupOwner" type="string" nillable="true" minOccurs="0" />
    <element name="srOwner" type="string" nillable="true" minOccurs="0" />
    <element name="srDateFrom" type="dateTime" nillable="true" minOccurs="0" />
    <element name="srDateTo" type="dateTime" nillable="true" minOccurs="0" />
    <element name="caller" type="string" nillable="true" minOccurs="0" />
    <element name="inspector" type="string" nillable="true" minOccurs="0" />
    <element name="problemCode" type="string" nillable="true" minOccurs="0" />
    </all>
    </complexType>
    - <complexType name="cmem_oracle_apps_cs_ws_CmemServiceRequestObjUser" jdev:packageName="cmem.oracle.apps.cs.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    - <all>
    <element name="srId" type="decimal" />
    <element name="srNumber" type="string" />
    <element name="srGroupOwner" type="string" />
    <element name="srOwner" type="string" />
    <element name="srType" type="string" />
    <element name="srDate" type="dateTime" />
    <element name="statusCode" type="string" />
    <element name="srParty" type="string" />
    <element name="caller" type="string" />
    <element name="srSummary" type="string" />
    <element name="problemCode" type="string" />
    <element name="problemDescription" type="string" />
    <element name="resolutionCode" type="string" />
    <element name="resolutionDesc" type="string" />
    <element name="resolutionSummary" type="string" />
    <element name="srAddress" type="string" />
    <element name="srCity" type="string" />
    <element name="srZipCode" type="string" />
    <element name="srState" type="string" />
    </all>
    </complexType>
    </schema>
    </types>
    - <message name="getSrDetails0Request">
    <part name="pSeletionConditions" type="ns1:cmem_oracle_apps_cs_ws_CmemServiceRequestParamObjUser" />
    </message>
    - <message name="getSrDetails0Response">
    <part name="return" type="ns1:cmem_oracle_apps_cs_ws_CmemServiceRequestObjUser" />
    </message>
    - <portType name="CmemServiceRequestsPortType">
    - <operation name="getSrDetails">
    <input name="getSrDetails0Request" message="tns:getSrDetails0Request" />
    <output name="getSrDetails0Response" message="tns:getSrDetails0Response" />
    </operation>
    </portType>
    - <binding name="CmemServiceRequestsBinding" type="tns:CmemServiceRequestsPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="getSrDetails">
    <soap:operation soapAction="" style="rpc" />
    - <input name="getSrDetails0Request">
    <soap:body use="encoded" namespace="CmemServiceRequests" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    - <output name="getSrDetails0Response">
    <soap:body use="encoded" namespace="CmemServiceRequests" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    </binding>
    - <service name="CmemServiceRequests">
    - <port name="CmemServiceRequestsPort" binding="tns:CmemServiceRequestsBinding">
    <soap:address location="http://isd104364:8888/cmemws/CmemServiceRequests" />
    </port>
    </service>
    </definitions>
    Appreciate any help. Thanks.
    Binish

    Ok, this sounds like a known bug ( Bug 5908689 ) in 10.1.3.1, but this was specific to non-Windows platforms. Are you on Linux/Solaris or any other platform? It might or might not be the same problem you are hitting but it does seem quite close (can't say for sure without a close investigation, I am afraid!)
    In any case, this bug is fixed in the 10.1.3.4 patchset (besides quite a few other fixes and enhancements) - so would recommend you to first apply the 10.1.3.4 patchset and retest. The patchset is available on My Oracle Support (formerly Metalink) under Patch 7272722. Or you could go a step ahead, and apply the 10.1.3.5 patchset (Patch 8626084) instead which is the latest patchset for OracleAS 10.1.3.x.
    HTH,
    Yogesh

  • PL/Sql Web Services - Deploy to OAS 10.1.2.3.0 - Help?

    Morning All,
    I hope that someone out there can give me some advice on how I can successfully create and deploy Web Services wrapping PL/Sql packaged functions / procedures onto our test application servers.
    I've seen that the PL/Sql Web Services creation didn't make it into the current release of 11g, so I've downloaded 10g (10.1.3.4). Our Oracle AS's are version 10.1.2.3.0 running Java 1.4.2.
    I've successfully deployed a pl/sql web service to the OC4J container that comes with Jdev 10g, but from what I've seen so far there seems to be some incompatibility with jdev 10g deploying into our OAS servers OC4J instance running 1.4.2. I've followed a few guides to get round this, but none of them seem to fully cover all the issues.
    The current state of play is that I have been able to get it to deploy, but it returns a null point exception when it defo shouldn't be, and so I'm now here asking for your help and advice to start from scratch again to make sure that i cover every single step in order to get this working - if at all possible ;-)
    So, please, can anyone either give me a link to a doc which takes me through this issue to a resolution, or give me any hints and tips to get this working?
    Thanks in Advance,
    -Roamer.
    Edited by: Roamer on Feb 19, 2009 10:31 AM (Version mistake in the title - it is 10.1.2.3.0 and not 10.1.2.2.0 :-)

    Trying a J2EE 1.4 sample for a J2EE 1.3 environment is quite difficult, J2EE 1.3 doesn't support WebServices out of the box.
    On the other hand it is not quite easy to find the 10.1.2.x samples... Either upgrade your OC4J to 10.1.3 or try these samples: http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/index.html
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • PL/SQL Web Services - JAX-RPC returning in JSON format

    Hello all,
    I have been searching on the web, inclusively on this forum, for a way of returning data in a JSON format from a PL/SQL web service.
    The threads that I have found about this issue are still unanswered.
    Does anyone know if it is possible to create a JAX-RPC web service which returns in JSON format ?
    Regards,
    Pedro

    Hi,
    JAX-RPX services are SOAP services and thus return XML. You want to use REST instead
    Frank

  • Error when invoking pl/sql web service from bpel

    Hi!
    I have a simple 'Hello World' pl/sql web service. When i invoke it in asynchronous BPEL process, a local WSDL file is automatically generated for the parterlink used. The process even gets successfully deployed without any warning or error. But in the BPEL console when I create an instance, its alwaya being faulted and the audit give the following error at invoke:
    "{http://schemas.oracle.com/bpel/extension}remoteFault" has been thrown. less
    <remoteFault>
    <part name="code" >
    <code>Server.userException</code>
    </part>
    <part name="summary" >
    <summary>when invoking endpointAddress 'null', java.net.UnknownHostException: www.proxy.us.oracle.com</summary>
    </part>
    <part name="detail" >
    <detail>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.net.UnknownHostException: www.proxy.us.oracle.com faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.net.UnknownHostException: www.proxy.us.oracle.com at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153) at java.net.Socket.connect(Socket.java:452) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.collaxa.thirdparty.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:155) at org.collaxa.thirdparty.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:117) at org.collaxa.thirdparty.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:158) at org.collaxa.thirdparty.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:450) at org.collaxa.thirdparty.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94) at org.collaxa.thirdparty.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.collaxa.thirdparty.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.collaxa.thirdparty.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.collaxa.thirdparty.apache.axis.client.AxisClient.invoke(AxisClient.java:147) at org.collaxa.thirdparty.apache.axis.client.Call.invokeEngine(Call.java:2732) at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:2715) at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:1737) at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeAXISMessaging(WSIFOperation_ApacheAxis.java:2113) at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1611) at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1083) at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452) at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327) at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189) at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601) at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317) at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188) at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408) at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836) at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75) at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166) at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252) at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438) at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217) at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511) at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335) at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796) at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37) at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125) at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70) at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86) at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123) at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755) at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534) {http://xml.apache.org/axis/}hostname:NewUser-lap </detail>
    </part>
    </remoteFault>
    Can anybody please tell what could be the problem,
    Thanking in advance,
    Deepika.

    www.proxy.us.oracle.com -> www-proxy.us.oracle.com - looks like set in the obsetenv.bat file

  • How can I return multiple values with PL/SQL Web Services

    Hi,
    I'm new to developping Web Services. I'm doing some tests with JDeveloper and OC4J on my local machine with a Web Services based on a PL/SQL function within a package. Right now that function only returns one value. So the xml response only has one output.
    I'd like to know how can I return multiple values with my PL/SQL Web Service. For example, if I want to return an employee's name and id? And that the xml contains two output : <employee>, <empid>?
    Reginald
    ps : I have searched the forum and I couldn't find an answer to this question, if that has been discussed AND answered before, can you please post the link? Thanks

    Alright, I actually found my answer. Since this was asked I think as a followup somewhere else I'll give my answer.
    It is very simple, all you have to do is create an Object Type and then Return that object type. After that, JDeveloper will take care of everything and you will have an xml response with multiple values. Here
    {color:#ff0000}
    create or replace TYPE person AS OBJECT
    ( id_interv number,
    first_name VARCHAR2(50),
    last_name VARCHAR2(50),
    date_birth date
    );{color}
    Then your function used in your Web Service should look something like this :
    {color:#ff0000}
    function info_emp (p_empno IN VARCHAR2) RETURN person AS
    l_emp person := person(-1,'','','');
    BEGIN
    SELECT first_name
    ,last_name
    ,emp_no
    INTO l_emp.first_name
    ,l_emp.last_name
    ,l_emp.emp_no
    FROM emp
    WHERE upper(emp_no) = upper (emp_no);
    {color}
    {color:#ff0000}
    RETURN l_emp;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    l_emp := person (-1,'n/a','n/a','n/a');
    RETURN l_emp ;
    END info_emp;{color}
    {color:#ff0000}{color:#000000}After that, this is what the xml response looks like :{color}{color}
    &lt;first_name xsi:type="xsd:string"&gt;John&lt;/first_name&gt;
    &lt;last_name xsi:type="xsd:string"&gt;Doe&lt;/last_name&gt;
    &lt;emp_no xsi:type="xsd:string"&gt;0250193&lt;/emp_no&gt;

  • 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

Maybe you are looking for