BIP 11g scheduler web service through pl/sql

Hi,
     I am trying to schedule a BIP 11g report through a pl/sql wrapper. I  am running the same and not getting any response. I only get the following error :
anonymous block completed
status code: 500
reason phrase: Internal Server Error.
I am attaching the code piece. It would be nice if someone can guide me as to where the code is going wrong.
set serveroutput on;
Declare
P_DATA_TYPE VARCHAR2(4000);
p_data_in varchar2(5000);
REQ UTL_HTTP.REQ;
RESP UTL_HTTP.RESP;
BEGIN
p_data_in :=
'<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v2="http://xmlns.oracle.com/oxp/service/v2">
<soapenv:Body>
<v2:scheduleReport>
<v2:scheduleRequest>
<v2:deliveryChannels>
<v2:EMailDeliveryOption>
<v2:emailFrom>******</v2:emailFrom>
<v2:emailServerName>******</v2:emailServerName>
<v2:emailSubject>Test BIP webservice</v2:emailSubject>
<v2:emailTo>******</v2:emailTo>
</v2:EMailDeliveryOption>
</v2:deliveryChannels>
<v2:reportRequest>
<v2:attributeFormat>pdf</v2:attributeFormat>
<v2:reportAbsolutePath>/General Ledger/Reports/****** YYY ZZZ.xdo</v2:reportAbsolutePath>
</v2:reportRequest>
<v2:userJobName>BIPTESTWS</v2:userJobName>
</v2:scheduleRequest>
<v2:userID>******</v2:userID>
<v2:password>******</v2:password>
</v2:scheduleReport>
</soapenv:Body>
</soapenv:Envelope>';
REQ := UTL_HTTP.BEGIN_REQUEST('http://XXXX:7001/xmlpserver/services/v2/ScheduleService?wsdl', 'POST','HTTP/1.1');
utl_http.set_header(req, 'content-type', 'text/xml');
UTL_HTTP.SET_HEADER(REQ, 'content-length', LENGTH(P_DATA_IN));
utl_http.set_header(req, 'SOAPAction', '');
utl_http.write_text(req, p_data_in);
resp := utl_http.get_response(req);
dbms_output.put_line ('status code: ' || resp.status_code);
dbms_output.put_line ('reason phrase: ' || resp.reason_phrase);
utl_http.end_response(resp);
EXCEPTION
WHEN utl_http.end_of_body THEN
UTL_HTTP.END_RESPONSE(RESP);
END;

Hi,
    IS there anyone who has previously worked on the webservices and can help me a bit.

Similar Messages

  • How to call an ODI web service through PL/SQL

    Hi All,
    Can we call an ODI web service through PL/SQL. If we can, can you please provide me info/examples/links on how to accomplish this task ?
    Any information will help me and my team.
    Am I required to use UTL_HTTP ?
    Thanks,
    Amer
    Edited by: Rooney on Nov 6, 2012 9:58 AM

    Hi,
    Take a look at this :
    http://www.business-intelligence-quotient.com/?p=1466

  • Is it possible to call BI Publisher Web Service through PL/SQL?

    hi all,
    i'm trying to find a way to run/schedule a report for my application. i'm using another platform for the client front-end form other than oracle but was wondering if i could possibly call the webservice using PL/SQL. PL/SQL meaning stored procedure in the database.
    thanks
    allen
    Edited by: A.Sandiego on Feb 16, 2009 11:34 AM

    hi,
    i'm trying to study on how to use the oracle bi publisher using another client application aside from oracle. the client application is custom and uses a .Net framework. unfortunately, i am not familiar with how .Net sends requests to oracle bi publisher so i was thinking that may be i can just create oracle pl/sql stored procedures that can send this requests over to bi publisher.
    p.s. when you said concurrent manager, i'm not sure if you are referring to oracle apps concurrent manager but if you are, unfortunately i won't be using oracle apps with bi publisher.
    thanks
    allen

  • Invoking P6 web services using PL/SQL block

    Hi Team,
    We have requirement like
    Oracle jobs will invoke PL/SQL code to authenticate and establish a session with the P6 Web services.
    Web service will export Project data from One Primavera database as an XML and copy to common location.
    Then this XML project files will be imported into archive database.
    Could anyone help me how I can establish sessio between Pl/SQL and P6 webservices?
    Please let me know if you need any more information.
    Regards,
    Santosh
    Edited by: SantoshV Singh on Apr 29, 2013 10:09 PM

    It will be no different than connecting to any web services through PL/SQL which is pretty hard to do and if you are asking how to do it then you have a steep learning curve ahead of you and not a great deal in the way of good examples out there.
    I wouldn't even attempt the approach you suggest.  Instead I would probably write a Java application to do it and use your PL/SQL to enqueue a message that routed to the Java application.  Then the java application with the Web Services support and P6 client would be easier to do what you want with web services.

  • Oracle 11g native web services

    Is there any formal explanation about how to configure and create Oracle 11g native web services and how to correctly secure these services? Since Oracle APEX now supports consumption of SOAP and REST web services, it makes sense to have more explanation about creating and securing web services. As many PL/SQL programmers know, it is always not an easy job to develop web services in jDeveloper to work with databases - with all those add-on technologies like jPublisher/Toplink to get tiny things work. It is not easy to find the "how-to" guide about creating and securing Oracle 11g native web services.
    Thanks.
    Andy

    Thanks for the link Tim...it is very useful. I was told that, in APEX 4.2, it will become able to create RESTful web services through APEX - if you run APEX through APEX Listener - by using resource templates in APEX Listener. I will wait for more information about this feature to come out.
    Thanks.
    Andy

  • Error in Calling Oracle Web Service through Eclipse-indigo

    Hi All,
    I'm getting an below error when trying to call my oracle web service through Eclipse-indigo.
    Error:-
    IWAB0135E An unexpected error has occurred.
    502
    Bad Gateway
    Steps followed to create oracle web service and invoke WS :-
    Followed link
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28369/xdb_web_services.htm
    which explans how to create oracle web service.
    1. Configure HTTP Access
    2. Configure the ORAWSV Servlet
    3. created user 'test' and wrote simple procedure getdescription which will return name for request id.
    4. granted all privilages to user.
    5. The orawsv servlet automatically generates a WSDL file.
    6. trying to call WS through Eclipse-indigo, but i get error.

    Trying to test via PL/SQL first via (see the following url for more info: Re: Using utl_dbws to call web service ) for example something like the following:
    SQL> set serveroutput on
    SQL> --
    SQL> def USERNAME=DBNWS
    SQL> --
    SQL> DECLARE
      2    V_SOAP_REQUEST      XMLTYPE := XMLTYPE(
      3  '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/
    encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      4          <SOAP-ENV:Body>
      5                  <m:SNUMBER-GET_SQRTInput xmlns:m="http://xmlns.oracle.com/orawsv/&USERNAME/GET_SQRT">
      6                          <m:INPUT_VALUE-NUMBER-IN>2</m:INPUT_VALUE-NUMBER-IN>
      7                  </m:SNUMBER-GET_SQRTInput>
      8          </SOAP-ENV:Body>
      9  </SOAP-ENV:Envelope>');
    10    V_SOAP_REQUEST_TEXT CLOB := V_SOAP_REQUEST.getClobVal();
    11    V_REQUEST           UTL_HTTP.REQ;
    12    V_RESPONSE          UTL_HTTP.RESP;
    13    V_BUFFER            VARCHAR2(1024);
    14  BEGIN
    15
    16    V_REQUEST := UTL_HTTP.BEGIN_REQUEST(URL => :URL, METHOD => 'POST');
    17    UTL_HTTP.SET_HEADER(V_REQUEST, 'User-Agent', 'Mozilla/4.0');
    18    V_REQUEST.METHOD := 'POST';
    19    UTL_HTTP.SET_HEADER (R => V_REQUEST, NAME => 'Content-Length', VALUE => DBMS_LOB.GETLENGTH(V_SOAP_REQUEST_TEXT));
    20    UTL_HTTP.WRITE_TEXT (R => V_REQUEST, DATA => V_SOAP_REQUEST_TEXT);
    21
    22    V_RESPONSE := UTL_HTTP.GET_RESPONSE(V_REQUEST);
    23    LOOP
    24      UTL_HTTP.READ_LINE(V_RESPONSE, V_BUFFER, TRUE);
    25      DBMS_OUTPUT.PUT_LINE(V_BUFFER);
    26    END LOOP;
    27    UTL_HTTP.END_RESPONSE(V_RESPONSE);
    28  EXCEPTION
    29    WHEN UTL_HTTP.END_OF_BODY THEN
    30      UTL_HTTP.END_RESPONSE(V_RESPONSE);
    31  END;
    32  /
    old   5:                <m:SNUMBER-GET_SQRTInput xmlns:m="http://xmlns.oracle.com/orawsv/&USERNAME/GET_SQRT">
    new   5:                <m:SNUMBER-GET_SQRTInput xmlns:m="http://xmlns.oracle.com/orawsv/DBNWS/GET_SQRT">
    <?xml version="1.0" ?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <GET_SQRTOutput xmlns="http://xmlns.oracle.com/orawsv/DBNWS/GET_SQRT">
    <RETURN>1.41421356237309504880168872420969807857</RETURN>
    </GET_SQRTOutput>
    </soap:Body>
    </soap:Envelope>
    PL/SQL procedure successfully completed.
    SQL> set serveroutput on
    SQL> --In the example give above the WSDL info should be seen via http://xmlns.oracle.com/orawsv/DBNWS/GET_SQRT?wsdl

  • Invoking Web Service From PL SQL package

    Below is the sample code to invoke web service from pl/sql package using UTL_HTTP:
    Declare
    http_req UTL_HTTP.req;
    http_resp UTL_HTTP.resp;
    Begin
    http_req :=
    UTL_HTTP.begin_request
    'http://'
    || lv_hosturl
    -- || '.net/soa-infra/services/finance_rt/Payments/paymentsprocess_client_ep',
    --new url
    || '.net/soa-infra/services/finance_rt/PaymentsReq/paymentsprocess_client_ep?WSDL',
    'POST',
    'HTTP/1.1'
    UTL_HTTP.set_header (http_req, 'Content-Type', 'text/xml');
    -- since we are dealing with plain text in XML documents
    UTL_HTTP.set_header (http_req,
    'Content-Length',
    LENGTH (lv_soap_request)
    UTL_HTTP.set_header (http_req, 'SOAPAction', '');
    -- required to specify this is a SOAP communication
    UTL_HTTP.write_text (http_req, lv_soap_request);
    http_resp := UTL_HTTP.get_response (http_req);
    UTL_HTTP.read_text (http_resp, lv_soap_respond);
    UTL_HTTP.end_response (http_resp);
    resp := XMLTYPE.createxml (lv_soap_respond);
    End;

    Hi,
    there are a lot of option to make plsql web services .
    First you can stay with jdev 10.1.3
    Use the xmldb servlets
    use jdev 11g tp4 to create plsql ws and upgrade to jdev 11g production
    And I think in the next release of jdev it will be back , there are more options which disappeared like the adf bc sdo ws or jmx datacontrol etc.
    thanks Edwin

  • Calling web services from PL/SQL

    Hi,
    We have a requirement where we need to call a web services from PL/SQL.
    I believe we have a PL/SQL API that allows you to consume external web services.
    I was looking for other possible options too to consume web Service from PL/SQL.
    Can any one suggest the other possible options , and which option is best to consume web service.
    Thanks
    AB

    AB,
    I didn't realize you cannot attach documents to your post. You will have to provide me with an email address that I can send the documents to. They are a little rough (ie not commented etc) but they do illustrate the point. The basic idea is to build up the payload of the soap envelope using pl/sql. Meaning as I loop through the cursor I use each record in the cursor to build an xml string. This string of xml becomes the payload of the soap message. This could also be done using xml functionality provided by the db meaning xmlelement, xmlforest etc. The issue I ran into was the size of the message. That is why I elected to build the xml message by string concatenation as I moved through the cursor.
    Ryan

  • Support for Creating Web Service from pl/sql package in JDeveloper 11

    We have been creating all of our web services from pl/sql packages in our Oracle database using JDeveloper 10.1.3.1. I understand that this capability is not supported in Jdev 11. We have been mandated to either move up to JDeveloper 11, or consider switching to eclipse, or even VS2008 and run .NET services from IIS. I have seen work-around solutions using TopLink and Jdev 11. Are there plans to revive this feature in the near future? We're now looking at switching to .NET since we could scrap our OAS instances and use IIS to publish web services. The only reason we were sticking with Oracle was the ease in converting all our existing package to web services with Jdev.
    Is anyone else in the same situation. If so, what solutions are you considering?

    Hi,
    there are a lot of option to make plsql web services .
    First you can stay with jdev 10.1.3
    Use the xmldb servlets
    use jdev 11g tp4 to create plsql ws and upgrade to jdev 11g production
    And I think in the next release of jdev it will be back , there are more options which disappeared like the adf bc sdo ws or jmx datacontrol etc.
    thanks Edwin

  • 11g Native Web Services Core Dump ( qmuwsPrintPackWSDL() )

    I know that native PL/SQL web services are newer functionality, but I have not been able to find any information on the following issue on MetaLink or here on the forums. When creating 11g native web services when attempting to retrieve the WSDL documents from the server the document is only partially served (estimated at about 2/3rds) or not at all (blank document returned).
    Banner: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    The alert log gains this entry:
    <msg time='2009-03-30T13:23:21.843-04:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='TEST_HOST1' host_addr='10.38.11.20' module=''
    pid='16144'>
    <txt>Exception [type: ACCESS_VIOLATION, UNABLE_TO_READ] [ADDR:0x98] [PC:0x37FAE2B, _qmuwsPrintPackWSDL()+1031]
    </txt>
    </msg>
    <msg time='2009-03-30T13:23:21.906-04:00' org_id='oracle' comp_id='rdbms'
    msg_id='1205222838' type='INCIDENT_ERROR' group='Access Violation'
    level='1' host_id='TEST_HOST1' host_addr='10.38.11.20'
    prob_key='ORA 7445 [qmuwsPrintPackWSDL()+1031]' upstream_comp='' downstream_comp=''
    ecid='' errid='62733' detail_path='c:\app\diag\rdbms\orcl\orcl\trace\orcl_s001_16144.trc'>
    <txt>Errors in file c:\app\diag\rdbms\orcl\orcl\trace\orcl_s001_16144.trc  (incident=62733):
    ORA-07445: exception encountered: core dump [qmuwsPrintPackWSDL()+1031] [ACCESS_VIOLATION] [ADDR:0x98] [PC:0x37FAE2B] [UNABLE_TO_READ] []
    </txt>
    </msg>
    <msg time='2009-03-30T13:23:21.953-04:00' org_id='oracle' comp_id='rdbms'
    msg_id='dbgexProcessError:1094:3370026720' type='TRACE' level='16'
    host_id='TEST_HOST1' host_addr='10.38.11.20'>
    <txt>Incident details in: c:\app\diag\rdbms\orcl\orcl\incident\incdir_62733\orcl_s001_16144_i62733.trc
    </txt>
    </msg>
    <msg time='2009-03-30T13:23:23.250-04:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='TEST_HOST1' host_addr='10.38.11.20' module=''
    pid='3120'>
    <txt>Trace dumping is performing id=[cdmp_20090330132323]
    </txt>
    </msg>
    <msg time='2009-03-30T13:23:26.093-04:00' org_id='oracle' comp_id='rdbms'
    msg_id='dbgrimswi_sweep_incident:1855:4220681759' type='ERROR' group='ami_comp'
    level='8' host_id='TEST_HOST1' host_addr='10.38.11.20'>
    <txt>Sweep Incident[62733]: completed
    </txt>
    </msg>
    <msg time='2009-03-30T13:23:44.500-04:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='TEST_HOST1' host_addr='10.38.11.20' module=''
    pid='6724'>
    <txt>found dead shared server &apos;S001&apos;, pid = (19, 3)
    </txt>
    </msg>The trace files contain the following:
    Trace file c:\app\diag\rdbms\orcl\orcl\trace\orcl_s001_16144.trc
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Windows NT Version V5.2 Service Pack 2
    CPU                 : 16 - type 586, 4 Physical Cores
    Process Affinity    : 0x00000000
    Memory (Avail/Total): Ph:10902M/24571M, Ph+PgF:8218M/26299M, VA:349M/2047M
    Instance name: orcl
    Redo thread mounted by this instance: 1
    Oracle process number: 19
    Windows thread id: 16144, image: ORACLE.EXE (S001)
    *** 2009-03-30 13:23:21.828
    *** SESSION ID:(129.4177) 2009-03-30 13:23:21.828
    *** CLIENT ID:() 2009-03-30 13:23:21.828
    *** SERVICE NAME:(SYS$USERS) 2009-03-30 13:23:21.828
    *** MODULE NAME:() 2009-03-30 13:23:21.828
    *** ACTION NAME:() 2009-03-30 13:23:21.828
    Exception [type: ACCESS_VIOLATION, UNABLE_TO_READ] [ADDR:0x98] [PC:0x37FAE2B, _qmuwsPrintPackWSDL()+1031]
    Incident 62733 created, dump file: c:\app\diag\rdbms\orcl\orcl\incident\incdir_62733\orcl_s001_16144_i62733.trc
    ORA-07445: exception encountered: core dump [qmuwsPrintPackWSDL()+1031] [ACCESS_VIOLATION] [ADDR:0x98] [PC:0x37FAE2B] [UNABLE_TO_READ] []I am at a loss on quickly resolving this issue. I will be attempting to find a solution via an SR, but I am not sure how responsive that will be. Any help is appreciated.
    SR Number: 7504349.992

    Quick test for 11.1.0.7.0 (linux_x64) does not show a problem
    SQL> connect sys/oracle as sysdba
    Connected.
    SQL> --
    SQL> def USERNAME=WEB_API
    SQL> --
    SQL> def PASSWORD=WEB_API
    SQL> --
    SQL> DROP USER &USERNAME CASCADE
      2  /
    old   1: DROP USER &USERNAME CASCADE
    new   1: DROP USER WEB_API CASCADE
    DROP USER WEB_API CASCADE
    ERROR at line 1:
    ORA-01918: user 'WEB_API' does not exist
    SQL> grant connect, resource to &USERNAME identified by &PASSWORD
      2  /
    old   1: grant connect, resource to &USERNAME identified by &PASSWORD
    new   1: grant connect, resource to WEB_API identified by WEB_API
    Grant succeeded.
    SQL> begin
      2    dbms_network_acl_admin.drop_acl('localhost.xml');
      3  end;
      4  /
    begin
    ERROR at line 1:
    ORA-31001: Invalid resource handle or path name "/sys/acls/localhost.xml"
    ORA-06512: at "XDB.DBMS_XDB", line 337
    ORA-06512: at "SYS.DBMS_NETWORK_ACL_ADMIN", line 428
    ORA-06512: at line 2
    SQL> begin
      2    dbms_network_acl_admin.create_acl('localhost.xml', 'ACL for 127.0.0.1', '&USERNAME', true, 'connect');
      3    dbms_network_acl_admin.assign_acl('localhost.xml', '127.0.0.1');
      4  end;
      5  /
    old   2:   dbms_network_acl_admin.create_acl('localhost.xml', 'ACL for 127.0.0.1', '&USERNAME', true, 'connect');
    new   2:   dbms_network_acl_admin.create_acl('localhost.xml', 'ACL for 127.0.0.1', 'WEB_API', true, 'connect');
    PL/SQL procedure successfully completed.
    SQL> COMMIT
      2  /
    Commit complete.
    SQL> GRANT XDB_WEBSERVICES TO &USERNAME
      2  /
    old   1: GRANT XDB_WEBSERVICES TO &USERNAME
    new   1: GRANT XDB_WEBSERVICES TO WEB_API
    Grant succeeded.
    SQL> GRANT XDB_WEBSERVICES_OVER_HTTP TO &USERNAME
      2  /
    old   1: GRANT XDB_WEBSERVICES_OVER_HTTP TO &USERNAME
    new   1: GRANT XDB_WEBSERVICES_OVER_HTTP TO WEB_API
    Grant succeeded.
    SQL> connect &USERNAME/&PASSWORD
    Connected.
    SQL> --
    SQL> var url varchar2(700)
    SQL> --
    SQL> set pages 0 long 10000
    SQL> --
    SQL>
    SQL> CREATE OR REPLACE TYPE ACCOUNT_O AS OBJECT
      2  (
      3     ACCOUNT_ID              NUMBER(9, 0),
      4     ACCOUNT_NUMBER          VARCHAR2(100),
      5     ACCOUNT_NAME            VARCHAR2(50),
      6     ACTIVE                  NUMBER(1, 0),
      7     DEACTIVE_DATE           DATE,
      8     START_DATE              DATE,
      9     END_DATE                DATE,
    10     ROLLOVER_ACCOUNT_NUMBER VARCHAR2(100),
    11     ROLLOVER_ACCOUNT_NAME   VARCHAR2(50),
    12     ROLLOVER_SPEED_CODE     VARCHAR2(10),
    13     LAST_UPDATE_DATE        DATE
    14  )
    15  /
    Type created.
    SQL> CREATE OR REPLACE TYPE ACCOUNT_SK AS OBJECT( ACCOUNT_ID NUMBER(38) )
      2  /
    Type created.
    SQL> CREATE OR REPLACE PACKAGE ACCOUNT_API AS
      2     FUNCTION "NEW"(ACCOUNT_ID              NUMBER,
      3                    ACCOUNT_NUMBER          VARCHAR2,
      4                    ACCOUNT_NAME            VARCHAR2 DEFAULT NULL,
      5                    ACTIVE                  NUMBER DEFAULT NULL,
      6                    DEACTIVE_DATE           DATE DEFAULT NULL,
      7                    START_DATE              DATE DEFAULT NULL,
      8                    END_DATE                DATE DEFAULT NULL,
      9                    ROLLOVER_ACCOUNT_NUMBER VARCHAR2 DEFAULT NULL,
    10                    ROLLOVER_ACCOUNT_NAME   VARCHAR2 DEFAULT NULL,
    11                    ROLLOVER_SPEED_CODE     VARCHAR2 DEFAULT NULL,
    12                    LAST_UPDATE_DATE        DATE DEFAULT NULL)
    13        RETURN ACCOUNT_SK;
    14     PROCEDURE "UPDATE"(ACCOUNT_ID              NUMBER,
    15                        ACCOUNT_NUMBER          VARCHAR2,
    16                        ACCOUNT_NAME            VARCHAR2 DEFAULT NULL,
    17                        ACTIVE                  NUMBER DEFAULT NULL,
    18                        DEACTIVE_DATE           DATE DEFAULT NULL,
    19                        START_DATE              DATE DEFAULT NULL,
    20                        END_DATE                DATE DEFAULT NULL,
    21                        ROLLOVER_ACCOUNT_NUMBER VARCHAR2 DEFAULT NULL,
    22                        ROLLOVER_ACCOUNT_NAME   VARCHAR2 DEFAULT NULL,
    23                        ROLLOVER_SPEED_CODE     VARCHAR2 DEFAULT NULL,
    24                        LAST_UPDATE_DATE        DATE DEFAULT NULL);
    25     PROCEDURE "DELETE"(ACCOUNT_ID NUMBER);
    26     FUNCTION "GET"(ACCOUNT_ID NUMBER) RETURN ACCOUNT_O;
    27  END ACCOUNT_API;
    28  /
    Package created.
    SQL> BEGIN
      2    :url :=   'http://&USERNAME:&[email protected]:' || dbms_xdb.getHttpPort() || '/orawsv/&USERNAME/ACCOUNT_API';
      3  end;
      4  /
    old   2:   :url :=   'http://&USERNAME:&[email protected]:' || dbms_xdb.getHttpPort() || '/orawsv/&USERNAME/ACCOUNT_API';
    new   2:   :url :=   'http://WEB_API:[email protected]:' || dbms_xdb.getHttpPort() || '/orawsv/WEB_API/ACCOUNT_API';
    PL/SQL procedure successfully completed.
    SQL> print url
    http://WEB_API:[email protected]:80/orawsv/WEB_API/ACCOUNT_API
    SQL> --
    SQL> select  httpuritype( :url || '?wsdl' ).getXML() from dual
      2  /
    <definitions name="ACCOUNT_API" targetNamespace="http://xmlns.oracle.com/orawsv/
    WEB_API/ACCOUNT_API" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://
    xmlns.oracle.com/orawsv/WEB_API/ACCOUNT_API" xmlns:xsd="http://www.w3.org/2001/X
    MLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
      <types>
        <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/WEB_API/ACCOUNT_
    API" elementFormDefault="qualified">
          <xsd:element name="UPDATEInput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="START_DATE-DATE-IN" minOccurs="0" maxOccurs="1" t
    ype="xsd:date"/>
                <xsd:element name="ROLLOVER_SPEED_CODE-VARCHAR2-IN" minOccurs="0" ma
    xOccurs="1" type="xsd:string"/>
                <xsd:element name="ROLLOVER_ACCOUNT_NUMBER-VARCHAR2-IN" minOccurs="0
    " maxOccurs="1" type="xsd:string"/>
                <xsd:element name="ROLLOVER_ACCOUNT_NAME-VARCHAR2-IN" minOccurs="0"
    maxOccurs="1" type="xsd:string"/>
                <xsd:element name="LAST_UPDATE_DATE-DATE-IN" minOccurs="0" maxOccurs
    ="1" type="xsd:date"/>
                <xsd:element name="END_DATE-DATE-IN" minOccurs="0" maxOccurs="1" typ
    e="xsd:date"/>
                <xsd:element name="DEACTIVE_DATE-DATE-IN" minOccurs="0" maxOccurs="1
    " type="xsd:date"/>
                <xsd:element name="ACTIVE-NUMBER-IN" minOccurs="0" maxOccurs="1" typ
    e="xsd:double"/>
                <xsd:element name="ACCOUNT_NUMBER-VARCHAR2-IN" type="xsd:string"/>
                <xsd:element name="ACCOUNT_NAME-VARCHAR2-IN" minOccurs="0" maxOccurs
    ="1" type="xsd:string"/>
                <xsd:element name="ACCOUNT_ID-NUMBER-IN" type="xsd:double"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="UPDATEOutput">
            <xsd:complexType>
              <xsd:sequence>
                </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="CACCOUNT_SK-NEWInput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="START_DATE-DATE-IN" minOccurs="0" maxOccurs="1" t
    ype="xsd:date"/>
                <xsd:element name="ROLLOVER_SPEED_CODE-VARCHAR2-IN" minOccurs="0" ma
    xOccurs="1" type="xsd:string"/>
                <xsd:element name="ROLLOVER_ACCOUNT_NUMBER-VARCHAR2-IN" minOccurs="0
    " maxOccurs="1" type="xsd:string"/>
                <xsd:element name="ROLLOVER_ACCOUNT_NAME-VARCHAR2-IN" minOccurs="0"
    maxOccurs="1" type="xsd:string"/>
                <xsd:element name="LAST_UPDATE_DATE-DATE-IN" minOccurs="0" maxOccurs
    ="1" type="xsd:date"/>
                <xsd:element name="END_DATE-DATE-IN" minOccurs="0" maxOccurs="1" typ
    e="xsd:date"/>
                <xsd:element name="DEACTIVE_DATE-DATE-IN" minOccurs="0" maxOccurs="1
    " type="xsd:date"/>
                <xsd:element name="ACTIVE-NUMBER-IN" minOccurs="0" maxOccurs="1" typ
    e="xsd:double"/>
                <xsd:element name="ACCOUNT_NUMBER-VARCHAR2-IN" type="xsd:string"/>
                <xsd:element name="ACCOUNT_NAME-VARCHAR2-IN" minOccurs="0" maxOccurs
    ="1" type="xsd:string"/>
                <xsd:element name="ACCOUNT_ID-NUMBER-IN" type="xsd:double"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="NEWOutput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="RETURN" type="tns:ACCOUNT_SKType"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="CACCOUNT_O-GETInput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="ACCOUNT_ID-NUMBER-IN" type="xsd:double"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="GETOutput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="RETURN" type="tns:ACCOUNT_OType"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="DELETEInput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="ACCOUNT_ID-NUMBER-IN" type="xsd:double"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="DELETEOutput">
            <xsd:complexType>
              <xsd:sequence>
                </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:complexType name="ACCOUNT_SKType">
            <xsd:sequence>
              <xsd:element name="ACCOUNT_SK">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="ACCOUNT_ID" type="xsd:double"/>
                  </xsd:sequence>
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
          <xsd:complexType name="ACCOUNT_OType">
            <xsd:sequence>
              <xsd:element name="ACCOUNT_O">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="ACCOUNT_ID" type="xsd:double"/>
                    <xsd:element name="ACCOUNT_NUMBER">
                      <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                          <xsd:maxLength value="100"/>
                        </xsd:restriction>
                      </xsd:simpleType>
                    </xsd:element>
                    <xsd:element name="ACCOUNT_NAME">
                      <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                          <xsd:maxLength value="50"/>
                        </xsd:restriction>
                      </xsd:simpleType>
                    </xsd:element>
                    <xsd:element name="ACTIVE" type="xsd:double"/>
                    <xsd:element name="DEACTIVE_DATE" type="xsd:date"/>
                    <xsd:element name="START_DATE" type="xsd:date"/>
                    <xsd:element name="END_DATE" type="xsd:date"/>
                    <xsd:element name="ROLLOVER_ACCOUNT_NUMBER">
                      <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                          <xsd:maxLength value="100"/>
                        </xsd:restriction>
                      </xsd:simpleType>
                    </xsd:element>
                    <xsd:element name="ROLLOVER_ACCOUNT_NAME">
                      <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                          <xsd:maxLength value="50"/>
                        </xsd:restriction>
                      </xsd:simpleType>
                    </xsd:element>
                    <xsd:element name="ROLLOVER_SPEED_CODE">
                      <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                          <xsd:maxLength value="10"/>
                        </xsd:restriction>
                      </xsd:simpleType>
                    </xsd:element>
                    <xsd:element name="LAST_UPDATE_DATE" type="xsd:date"/>
                  </xsd:sequence>
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:schema>
      </types>
      <message name="UPDATEInputMessage">
        <part name="parameters" element="tns:UPDATEInput"/>
      </message>
      <message name="UPDATEOutputMessage">
        <part name="parameters" element="tns:UPDATEOutput"/>
      </message>
      <message name="NEWInputMessage">
        <part name="parameters" element="tns:CACCOUNT_SK-NEWInput"/>
      </message>
      <message name="NEWOutputMessage">
        <part name="parameters" element="tns:NEWOutput"/>
      </message>
      <message name="GETInputMessage">
        <part name="parameters" element="tns:CACCOUNT_O-GETInput"/>
      </message>
      <message name="GETOutputMessage">
        <part name="parameters" element="tns:GETOutput"/>
      </message>
      <message name="DELETEInputMessage">
        <part name="parameters" element="tns:DELETEInput"/>
      </message>
      <message name="DELETEOutputMessage">
        <part name="parameters" element="tns:DELETEOutput"/>
      </message>
      <portType name="ACCOUNT_APIPortType">
        <operation name="UPDATE">
          <input message="tns:UPDATEInputMessage"/>
          <output message="tns:UPDATEOutputMessage"/>
        </operation>
        <operation name="NEW">
          <input message="tns:NEWInputMessage"/>
          <output message="tns:NEWOutputMessage"/>
        </operation>
        <operation name="GET">
          <input message="tns:GETInputMessage"/>
          <output message="tns:GETOutputMessage"/>
        </operation>
        <operation name="DELETE">
          <input message="tns:DELETEInputMessage"/>
          <output message="tns:DELETEOutputMessage"/>
        </operation>
      </portType>
      <binding name="ACCOUNT_APIBinding" type="tns:ACCOUNT_APIPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/ht
    tp"/>
        <operation name="UPDATE">
          <soap:operation soapAction="UPDATE"/>
          <input>
            <soap:body parts="parameters" use="literal"/>
          </input>
          <output>
            <soap:body parts="parameters" use="literal"/>
          </output>
        </operation>
        <operation name="NEW">
          <soap:operation soapAction="NEW"/>
          <input>
            <soap:body parts="parameters" use="literal"/>
          </input>
          <output>
            <soap:body parts="parameters" use="literal"/>
          </output>
        </operation>
        <operation name="GET">
          <soap:operation soapAction="GET"/>
          <input>
            <soap:body parts="parameters" use="literal"/>
          </input>
          <output>
            <soap:body parts="parameters" use="literal"/>
          </output>
        </operation>
        <operation name="DELETE">
          <soap:operation soapAction="DELETE"/>
          <input>
            <soap:body parts="parameters" use="literal"/>
          </input>
          <output>
            <soap:body parts="parameters" use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="ACCOUNT_APIService">
        <documentation>Oracle Web Service</documentation>
        <port name="ACCOUNT_APIPort" binding="tns:ACCOUNT_APIBinding">
          <soap:address location="http://127.0.0.1/orawsv/WEB_API/ACCOUNT_API"/>
        </port>
      </service>
    </definitions>But I think you said it was intermittant

  • Calling secured web service from Pl SQL

    Hi
    I am trying to call a secured web service from pl/sql using utl_http.
    Is there a sample pl/sql program that i can refer to call a secured web service.
    sample soap header that am trying to acheive.
    <soap:Header>
    <wsa:Action>http://myactaction</wsa:Action>
    <wsa:MessageID>uuid:asdfadrewrwqr</wsa:MessageID>
    <wsa:ReplyTo>
    <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
    </wsa:ReplyTo>
    <wsa:To>http://myact</wsa:To>
    <wsse:Security soap:mustUnderstand="1">
    <wsse:UsernameToken wsu:Id="SecurityToken-321321">
    <wsse:Username>mordfsafsdae</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">werwqrewrwe</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soap:Header>
    Thanks a ton in advance

    Hi,
    On way we can call a web service is to pass the Web Service URL to UTL_HTTP package:
    Sample Web Service URL
    ===================
    lv_url :=
    'http://67.97.189.151:8888/plsqlsample/dbfunc?invoke=placeOrder'
    || '&'
    || 'param0=1'
    || '&'
    || 'param1=1'
    || '&'
    || 'param2=1';
    Sample Call using UTL_HTTP
    =====================
    SELECT UTL_HTTP.request (lv_url)
    INTO lv_result
    FROM DUAL;
    Thank you.
    Regards,
    Balu

  • How to use Axis to access a web service through Authentication  proxy

    Using axis access internat web service is success,but access a web service through Authentication proxy is failure.But other java classes connect through a proxy to the internet which works very well:
    please help me ,thank you!!!
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    //this is my access webservice faliure   codes
    public class TestClient
       public static void main(String [] args) {
           try {
                System.getProperties().setProperty("http.proxySet", "true");
                System.getProperties().setProperty("http.proxyHost","proxy.com");
                System.getProperties().setProperty("http.proxyPort", "8080");
                System.getProperties().setProperty("http.proxyUser", "username");
                System.getProperties().setProperty("http.proxyPassword","password");
               String endpoint =
                        "http://nagoya.apache.org:5049/axis/services/echo";
               Service  service = new Service();
               Call     call    = (Call) service.createCall();
               call.setTargetEndpointAddress( new java.net.URL(endpoint) );
               call.setOperationName(new QName("http://soapinterop.org/", "echoString") );
               String ret = (String) call.invoke( new Object[] { "Hello!" } );
               System.out.println("Sent 'Hello!', got '" + ret + "'");
           } catch (Exception e) {
               System.err.println(e.toString());
       }I get an "(407)Proxy authorization required" error?

    I am also looking for a solution. Does any one know how to do through code instead of jvm settings?
    Thanks in advance!

  • Calling a web service through SSL via a stand alone java class

    HI,
    I am trying to call a web service through SSL via a simple stand alone java client.
    I have imported the SSL certificate in my keystore by using the keytool -import command.
    Basically I want to add a user to a group on the server. Say I add a user user 1 to group group 1 using an admin userid and password. All these values are set in an xml file which I send to the server while calling the server. I pass the web service URL, the soap action name and the xml to post as the command line arguments to the java client.
    My xml file(Add.xml) that is posted looks like :
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope
    xmlns:xsi = "http://www.w3.org/1999/XMLSchema-instance"
    xmlns:SOAP-ENC = "http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:SOAP-ENV = "http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd = "http://www.w3.org/1999/XMLSchema"
    SOAP-ENV:encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/">
    <SOAP-ENV:Body>
    <namesp1:modifyGroupOperation xmlns:namesp1 = "/services/modifyGroup/modifyGroupOp">
    <auth>
    <user>adminUser</user>
    <password>adminPassword</password>
    </auth>
    <operationType>ADD</operationType>
    <groupName>group1</groupName>
    <users>
    <userName>user1</userName>
    </users>
    </namesp1:modifyGroupOperation>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    I call the client as:
    java PostXML https://com.webservice.com/services/modifyGroup "/services/modifyGroup/modifyGroupOp" Add.xml
    I my client, I have set the following:
    System.setProperty("javax.net.ssl.keyStore", "C:\\Program Files\\Java\\jre1.5.0_12\\lib\\security\\cacerts");
    System.setProperty("javax.net.ssl.keyStorePassword", "password");
    System.setProperty("javax.net.ssl.trustStore", "C:\\Program Files\\Java\\jre1.5.0_12\\lib\\security\\cacerts");
    System.setProperty("javax.net.ssl.trustStorePassword", "password");
    But when I try to execute the java client, I get the following error:
    setting up default SSLSocketFactory
    use default SunJSSE impl class: com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl
    class com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl is loaded
    keyStore is : C:\Program Files\Java\jre1.5.0_12\lib\security\cacerts
    keyStore type is : jks
    keyStore provider is :
    init keystore
    init keymanager of type SunX509
    trustStore is: C:\Program Files\Java\jre1.5.0_12\lib\security\cacerts
    trustStore type is : jks
    trustStore provider is :
    init truststore
    adding as trusted cert:
    init context
    trigger seeding of SecureRandom
    done seeding SecureRandom
    instantiated an instance of class com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl
    main, setSoTimeout(0) called
    main, setSoTimeout(0) called
    %% No cached client session
    *** ClientHello, TLSv1
    RandomCookie: GMT: .....
    Compression Methods: { 0 }
    [write] MD5 and SHA1 hashes: len = 73
    main, WRITE: TLSv1 Handshake, length = 73
    [write] MD5 and SHA1 hashes: len = 98
    main, WRITE: SSLv2 client hello message, length = 98
    [Raw write]: length = 100
    [Raw read]: length = 5
    [Raw read]: length = 58
    main, READ: TLSv1 Handshake, length = 58
    *** ServerHello, TLSv1
    %% Created: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
    ** SSL_RSA_WITH_RC4_128_MD5
    [read] MD5 and SHA1 hashes: len = 58
    [Raw read]: length = 5
    [Raw read]: length = 5530
    main, READ: TLSv1 Handshake, length = 5530
    *** Certificate chain
    chain [0] = ...
    chain [1] = ...
    chain [2] = ...
    chain [3] = ...
    main, SEND TLSv1 ALERT: fatal, description = certificate_unknown
    main, WRITE: TLSv1 Alert, length = 2
    [Raw write]: length = 7
    0000: 15 03 01 00 02 02 2E .......
    main, called closeSocket()
    main, handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    main, called close()
    main, called closeInternal(true)
    main, called close()
    main, called closeInternal(true)
    main, called close()
    main, called closeInternal(true)
    Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.c
    ertpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.flush(Unknown Source)
    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:506)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2110)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1088)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    at PostXML.main(PostXML.java:111)
    Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find v
    alid certification path to requested target
    at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
    at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
    at sun.security.validator.Validator.validate(Unknown Source)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Unknown Source)
    ... 18 more
    Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
    at java.security.cert.CertPathBuilder.build(Unknown Source)
    ... 23 more
    I do not know where I have gone wrong. Could someone point out my mistake.
    Thanks In advance!

    Hi jazz123,
    There's an example in the [*Java Web Services Tutorial*|http://java.sun.com/webservices/docs/2.0/tutorial/doc/] : see Chapter 1: Building Web Services with JAX-WS - A Simple JAX-WS Client.

  • 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

  • Error while calling .svc web service from pl/sql using utl_dbws

    Hello Folks,
    I am calling a .svc web service from pl/sql using utl_dbws and encountering the following error
    javax.xml.rpc.soap.SOAPFaultException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).
    Can you help me find what am I doing wrong?
    Thanks
    Rk

    Hi,
    Here are the details
    1. What version?
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    2. What error message ... we need the full and complete error stack not your interpretation of it.
    ORA-29532: Java call terminated by uncaught Java exception: javax.xml.rpc.soap.SOAPFaultException: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Messag
    3. "I am calling means what?" We need the full and complete statement showing the values of all parameters.
    The input to the web-service is a xmltype containing address information and the web-service returns a string
    CREATE OR REPLACE FUNCTION get_id
    RETURN VARCHAR2
    AS
    l_service UTL_DBWS.service;
    l_call UTL_DBWS.CALL;
    l_wsdl_url VARCHAR2 (32767);
    l_namespace VARCHAR2 (32767);
    l_service_qname UTL_DBWS.qname;
    l_port_qname UTL_DBWS.qname;
    l_operation_qname UTL_DBWS.qname;
    l_xmltype_in SYS.XMLTYPE;
    l_xmltype_out SYS.XMLTYPE;
    l_return VARCHAR2 (32767);
    BEGIN
    l_wsdl_url := 'http://test.com/test.svc?wsdl';
    l_namespace := 'http://test.org/';
    l_service_qname := UTL_DBWS.to_qname (l_namespace, 'SName');
    l_port_qname := UTL_DBWS.to_qname (l_namespace, 'BasicHttpBinding_ISName');
    l_operation_qname := UTL_DBWS.to_qname (l_namespace, 'Iden');
    l_service :=
    UTL_DBWS.create_service
    (wsdl_document_location => urifactory.geturi
    (l_wsdl_url),
    service_name => l_service_qname
    l_call :=
    UTL_DBWS.create_call (service_handle => l_service,
    port_name => l_port_qname,
    operation_name => l_operation_qname
    l_xmltype_in :=
    SYS.XMLTYPE
    ('<IdenRequest xmlns:i="http://www.w3.org/XMLSchema-instance" xmlns="http://test.org/SNameIden.WCFService">
    <address />
    <zip>12345</zip>
    <state>AA</state>
    <street>W Test </street>
    </address>
    </IdenRequest>'
    l_xmltype_out :=
    UTL_DBWS.invoke (call_handle => l_call,
    request => l_xmltype_in);
    UTL_DBWS.release_call (call_handle => l_call);
    UTL_DBWS.release_service (service_handle => l_service);
    l_return := l_xmltype_out.EXTRACT ('//Iden/text()').getstringval();
    RETURN l_return;
    END;
    /

Maybe you are looking for

  • Delivery not created in Merchandise distribution - WF30

    Hi Experts, I am came accross an issue wherein delivery not created for merchandise distribution. It is automatically created at the time of goods receipt. We are using flow through process. On same day, three PO created via allocation table. Each PO

  • Jumpy Still Images After Render

    (I know, another slide show tread...) I'm making a slide show with zoom and pan key framing (like I used to do with FCE 2.0.3 which worked FINE) with my spiffy new FCE 4.0. The sequence looks fine when I play it from the timeline. If I play the key-f

  • Optimizing sql

    I'm trying to improve perfomance of a list of sql's. My sql are something like this: select /*+ PARALLEL(t,5) */ * from tabla1 where yyyymm in (200301, 200302, 200303, 200304, 200305, 200306) and field1 = '010102' and field2 = ..... fieldn = The fiel

  • Getting particle z depth for color in Particular

    I'd like to grab the z position in trapcode particular, of a particle and then use that infomation to apply a value to the color attribute. The reason is to create a zdepth pass that will all me to use anamorphic iris shapes. AE camera options has ir

  • Error 9 when updating to iOS4

    The past couple of days whenever I went to go connect my iPod to my PC, iTunes has been telling me that an update is available for my iPod Touch. Since I had the morning off, I figured I'd finally update. When the update was done, I got a screen on m