Asynchronous web service call using PL/SQL

Hi Guys,
i'm using Apex 4.1.
Is that possible to invoke a web service asynchronously within PL/SQL code block ? If so,
How can i access the return value of the service when execution of that web service completes ?

Bolev wrote:
We have (Oracle 10g) automated process (ETL) based on internal data. Now there is an offer to incorporate existing web service call (let's say for additional record verification) in this process. Service call (I do not know what type of it yet) is using data from remote database which is not ours.Web service calls from PL/SQL is not that complex. You can use the standard UTL_HTTP package as shown in {message:id=4205205}.
I never heard anybody goes this way especially for ETL processes.Well, if you push a million rows through the ETL process and the call overhead for the web service call (assuming perfect network and web server response) is 1 sec, that translates into 277+ hours of runtime alone for the validation to be done via web service.
So yeah - it would seem kind of silly to use something like a web service to validate large volumes ETL data.

Similar Messages

  • Web service call using javascript

    Hi All,
    I am working on web service call using javascript. I used below code while calling web service on click event of button.
    var e;
    try
         var oListURL = "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL";
         SOAP.wireDump = true;
         var service = SOAP.connect(oListURL);
         xfa.host.messageBox(service.toString());
         if(typeof service != "object")
              xfa.host.messageBox("Couldn't connect to " + oListURL);
         if(!service.ConversionRate(138,56))
              xfa.host.messageBox("The ConversionRate method does not exist on the service at " + oListURL);
         //call the service
         var svcResponse = service.ConversionRate(138,56);
         xfa.host.messageBox(svcResponse.toString());
         if(!svcResponse)
              xfa.host.messageBox("The service returned nothing");
    catch(e)
         xfa.host.messageBox("Exception: " + e);
    I do not get any response for it. I always get "0" as response.
    How do i passed session id to soap header while calling web service in designer??
    Is there any other adobe javascript with which i can call web service as well as i may able to provide session id to its soap header.
    Request you all to share any information regarding this.
    Thanks in advance.
    Regards
    Abhishek

    Hi Abhishek,
    This service seems to take the country codes as parameters, not the numerics 138,56, and I have always passed in the parameters as xml.
    So I have just tried;
    var svcResponse = service.ConversionRate("<FromCurrency>AUD</FromCurrency><ToCurrency>NZD</ToCurrency>");
    and got a response
    1.2557
    Which is about right.
    Hope this helps
    Bruce

  • Asynchronous web service call doesn't work

    Hi,
    I'm trying to convert a synchronous web service call into an asynchronous call. (Folder-level Javascript, Acrobat Professional 8.1, Windows XP).
    Everything works fine when I call Soap.Request as a synchronous call. It calls the web service and gets the expected result. However, when I try to convert Soap.Request into an asynchronous call by adding the OAsync property, as described on pp. 198-199 of "Developing Acrobat Applications Using JavaScript," NONE of the various OAsync functions (i.e. result, response, wait) are ever called. IOW, the Javascript code continues executing after the Soap.Request call and doesn't wait for my web service call to return. Indeed, the web service method on the server doesn't even BEGIN to execute by the time the Javascript code runs to completion. (I can confirm this by watching my ASP.Net code execute in the Visual Studio debugger. In fact, the Javascript code runs to completion even before the Global.asax Session_Start code begins to execute, much less the web service method itself.) So, the problem is not with the web service, which works fine when Soap.Request is called as a synchronous method.
    To reiterate, my Javascript code is identical to the code on pp. 198-199 of "Developing Acrobat Applications Using JavaScript." In troubleshooting this, I've tried calling the OAsync functions (mySync.wait(), mySync.result(), mySync.response()) after calling the Soap.Request, but nothing works.
    Is there something else that I must add to my Javascript code (e.g. an additional Soap.Request property, or something after calling Soap.Request) to force the Javascript to wait until the web service method returns?
    Thanks,
    Bill

    Hi Lukasz,
    you can also define namespace the later in the operation GetOpenOrders itself, e.g.:
    <tem:GetOpenOrders xmlns:tem=u201Dhttp://tempuri.org/u201D>
    It does not need to be part of the Envelope element.
    Best regards
    Bastian

  • Asynchronous web service call from Redwood

    Hi Everyone,
    Build version M33.104.
    We have a scenario where we have to call an asynchronous web service.
    From the documentation i understand that the Redwood job will be in status Running until the web service completes.
    How does the call back work from the web service to Redwood? How does Redwood know the asynchronous web service job completed?
    From the documentation, the per-requisite is:
    callback to UpdateJob1 web service at ServerAddress with JobId and FinalStatus as Out parameters
    Should i create two out parameters for the web service job definition in Redwood? one JobId and another FinalStatus?
    How do i get the URL to UpdateJob1 web-service, so that i can make my web service, call it, to update the Redwood job that called it?
    thanks
    Nanda

    Hi HP,
    I included the following snippet in job source:
    //Set completion strategy to external
    jcsJobContext.setCompletionStrategy(CompletionStrategyType.External);
    I get the following error when compiled:
    JCS-102183: Compile failed for Job Definition SOAP_GlobalWeatherSoap_GetCitiesByCountry (Latest Version): SOAP_GlobalWeatherSoap_GetCitiesByCountry.java:user code 24:40:cannot find symbol symbol : variable CompletionStrategyType location: class com.redwood.scheduler.custom.SOAP_GlobalWeatherSoap_GetCitiesByCountry jcsJobContext.setCompletionStrategy(CompletionStrategyType.External);
    I am not able to find any information from the API documentation on the method setCompletionStrategy, so I'm not able to figure what type of variable am i passing, so that i can initialize it. Please shed some light on it.
    Also there is no path called Scripting > Built-In Web Services
    I have only Scripting>Published Web Services
    Thanks
    Nanda

  • Web service call from pl/sql 10g

    I am having problems in calling a web service from pl/sql. This is what I followed
    Here is my wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://svc" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://svc" xmlns:intf="http://svc" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <schema elementFormDefault="qualified" targetNamespace="http://svc" xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="name" type="xsd:string"/>
    <element name="location" type="xsd:string"/>
    <element name="getGreetingReturn" type="xsd:string"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="getGreetingResponse">
    <wsdl:part element="impl:getGreetingReturn" name="getGreetingReturn"/>
    </wsdl:message>
    <wsdl:message name="getGreetingRequest">
    <wsdl:part element="impl:name" name="name"/>
    <wsdl:part element="impl:location" name="location"/>
    </wsdl:message>
    <wsdl:portType name="PlsqlS">
    <wsdl:operation name="getGreeting" parameterOrder="name location">
    <wsdl:input message="impl:getGreetingRequest" name="getGreetingRequest"/>
    <wsdl:output message="impl:getGreetingResponse" name="getGreetingResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="PlsqlSSoapBinding" type="impl:PlsqlS">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getGreeting">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="getGreetingRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="getGreetingResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="PlsqlSService">
    <wsdl:port binding="impl:PlsqlSSoapBinding" name="PlsqlS">
    <wsdlsoap:address location="http://myServer:7001/plsqlsvc/services/PlsqlS"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Here is my pl/sql
    package body pkg_my_webservice as
    vg_funciton_fnc VARCHAR2(256) := 'getGreeting';
    vg_ws_address VARCHAR2(255) := 'http://myServer:7001/plsqlsvc/services/PlsqlS';
    FUNCTION call_myfuntion(
    vp_parameter1 VARCHAR2,
    vp_parameter2 VARCHAR2)
    RETURN VARCHAR2 AS
    ol_req soap_api.t_request;
    ol_resp soap_api.t_response;
    BEGIN
    -- we initilize a new request
    ol_req := soap_api.new_request(vg_funciton_fnc,
    'xmlns="' || vg_ws_address || '"');
    -- we started to add parameters
    soap_api.add_parameter(ol_req,'name', 'partns:string',
    vp_parameter1);
    soap_api.add_parameter(ol_req,'location', 'partns:string',
    vp_parameter2);
    ol_resp := soap_api.invoke(ol_req, vg_ws_address, vg_funciton_fnc);
    -- we get back the results
    RETURN soap_api.get_return_value(ol_resp, 'getGreetingReturn', -- result tag name
    'xmlns:m="' || vg_ws_address || '"');
    exception WHEN others then
    dbms_output.put_line ( Utl_Http.get_detailed_sqlcode || Utl_Http.Get_Detailed_Sqlerrm);
    return 'exception happened';
    END call_myfuntion;
    end pkg_my_webservice;
    Here is the error
    SQL> /
    PKG_MY_WEBSERVICE.CALL_MYFUNTION('ABC','EFG')
    exception happened
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.or
    g/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchem
    a-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema"><SO
    AP-ENV:Body><getGreeting xmlns="http://myServer:7001/p
    lsqlsvc/services/PlsqlS" SOAP-ENV:encodingStyle="http://sche
    mas.xmlsoap.org/soap/encoding/"><name xsi:type="string">abc<
    /name><location xsi:type="string">efg</location></getGreetin
    g></SOAP-ENV:Body></SOAP-ENV:Envelope>
    -12535ORA-12535: TNS:operation timed out
    Any help appreciated
    Thanks

    It was found out that the server port was not open from the data-tier.

  • Web Service Call from PL/SQL

    Hi Gurus,
    I am calling a Web Service(RoadNet Application) from Oracle PL/SQL(11g Database). My code is working for simple xml type to get the response. But when I tried with a complex XML type, I am getting the response, but it does not have the complete output.
    Working Sample Code
    Here is the code and the calling block which I am using to call. This does not have any input parameters, just one output parameter.
    -----------------Start of the procedure----------------------------------------------------------------------
    create or replace
    PROCEDURE ORACLE_TO_ROADNET_PROC_TEST (p_input IN NUMBER,
                                      l_out_return OUT NUMBER)
    AS
      l_service          UTL_DBWS.service;--TransportationWebService.Service?? what is DB data service?
      l_call             UTL_DBWS.call;--TransportationWebService.
      l_wsdl_url         VARCHAR2(32767);
      l_namespace        VARCHAR2(32767);
      l_soap_env         VARCHAR2(32767);
      l_soap_enc         VARCHAR2(32767);
      l_instance         VARCHAR2(32767);
      l_schema           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_xsdoc     DBMS_XMLDOM.DOMDocument;
      l_dn        DBMS_XMLDOM.DOMNode;
      l_return           NUMBER;
    BEGIN
      l_wsdl_url        := 'http://10.81.8.39:80/TransportationWebService.wsdl';
      l_namespace       := 'http://www.roadnet.com/RTS/TransportationSuite/TransportationWebService';
      l_service_qname   := UTL_DBWS.to_qname(l_namespace, 'TransportationWebService');
      l_port_qname      := UTL_DBWS.to_qname(l_namespace, 'TransportationWebService');
      l_operation_qname := UTL_DBWS.to_qname(l_namespace, 'VersionInformation');
      l_service := UTL_DBWS.create_service (
        wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
        service_name           => l_service_qname);
      dbms_output.put_line('Created the Web Service');
      l_call := UTL_DBWS.create_call (
        service_handle => l_service,
        port_name      => l_port_qname,
        operation_name => l_operation_qname);
        dbms_output.put_line('Created the Web Service Operation');
    --UTL_DBWS.set_target_endpoint_address(l_call, 'http://www.roadnet.com/RTS/TransportationSuite/TransportationWebService/');
    UTL_DBWS.set_property(l_call, 'USERNAME', 'SAE');
    UTL_DBWS.set_property(l_call, 'PASSWORD', 'CxzMte22');
    --UTL_DBWS.set_property(l_call, 'DOMAIN', 'rhea');
    UTL_DBWS.set_property(l_call, 'OPERATION_STYLE', 'document');
    UTL_DBWS.set_property(l_call, 'SOAPACTION_USE', 'true');
    UTL_DBWS.set_property(l_call, 'SOAPACTION_URI', 'http://www.roadnet.com/RTS/TransportationSuite/TransportationWebService/');
    l_xmltype_in := SYS.XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
        <VersionInformation xmlns="' || l_namespace || '">
        <parameters>' || p_input || '</parameters>
        </VersionInformation>');
        dbms_output.put_line('Prepared the XML String to pass');
      l_xmltype_out := UTL_DBWS.invoke(call_Handle => l_call ,
                                       request     => l_xmltype_in);
    dbms_output.put_line('Invoked the Web Services');
      UTL_DBWS.release_call (call_handle => l_call);
      UTL_DBWS.release_service (service_handle => l_service);
    dbms_output.put_line('Before Reading the XML output data');
    l_return := l_xmltype_out.extract(''//ns1:VersionInformationResponse/ns1:version/text()','xmlns:ns1="http://www.roadnet.com/RTS/TransportationSuite/TransportationWebService">').getNumberVal();
    --dbms_output.put_line('After Reading the XML output data'||l_xmltype_out);
    --dbms_output.put_line('l_return'||l_return);
    -- l_out_return := l_return;
      --dbms_output.put_line('l_dn '||l_dn);
    END ORACLE_TO_ROADNET_PROC_TEST;
    -------------------------------End Of Procedure----------------------------------------------------
    ---Call to Web Service----------------------------------------
    declare
    x_return NUMBER;
    Begin
    Oracle_to_RoadNet_proc_test (p_input => 1,
                           l_out_return => x_return);
    dbms_output.put_line(  ' x_return'||x_return);                   
    end;         
    -----------------------------------------------------------------------------Sample Code Which is not giving output
    Here is the other one which is not returing the right output. It got 3 input parameters and multiple output parameters, looks like it is not reading the inputs and not able to get the response.
    -----------------------Start of the procedure---------------------------------------------
    create or replace
    PROCEDURE ORACLE_TO_ROADNET_PROC(p_region_id IN NUMBER,
                                     p_location_type NUMBER,
                                     p_location_id   NUMBER,
                                     l_out_return OUT varchar2)
    AS
      l_service          UTL_DBWS.service;
      l_call             UTL_DBWS.call;
      l_wsdl_url         VARCHAR2(32767);
      l_namespace        VARCHAR2(32767);
      l_soap_env         VARCHAR2(32767);
      l_soap_enc         VARCHAR2(32767);
      l_instance         VARCHAR2(32767);
      l_schema           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_xsdoc     DBMS_XMLDOM.DOMDocument;
      l_dn        DBMS_XMLDOM.DOMNode;
      l_locationinfo      varchar2(100);
    BEGIN
      l_wsdl_url        := 'http://10.81.8.39:80/TransportationWebService.wsdl';
      l_namespace       := 'http://www.roadnet.com/RTS/TransportationSuite/TransportationWebService';
      l_service_qname   := UTL_DBWS.to_qname(l_namespace, 'TransportationWebService');
      l_port_qname      := UTL_DBWS.to_qname(l_namespace, 'TransportationWebService');
      l_operation_qname := UTL_DBWS.to_qname(l_namespace, 'RetrieveLocationByIdentity');
      l_service := UTL_DBWS.create_service (
        wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
        service_name           => l_service_qname);
      dbms_output.put_line('Created the Web Service');
      l_call := UTL_DBWS.create_call (
        service_handle => l_service,
        port_name      => l_port_qname,
        operation_name => l_operation_qname);
        dbms_output.put_line('Created the Web Service Operation');
    --UTL_DBWS.set_target_endpoint_address(l_call, 'http://www.roadnet.com/RTS/TransportationSuite/TransportationWebService/');
    UTL_DBWS.set_property(l_call, 'USERNAME', 'SAE');
    UTL_DBWS.set_property(l_call, 'PASSWORD', 'CxzMte22');
    --UTL_DBWS.set_property(l_call, 'DOMAIN', 'rhea');
    UTL_DBWS.set_property(l_call, 'OPERATION_STYLE', 'document');
    UTL_DBWS.set_property(l_call, 'SOAPACTION_USE', 'true');
    UTL_DBWS.set_property(l_call, 'SOAPACTION_URI', 'http://www.roadnet.com/RTS/TransportationSuite/TransportationWebService/');
    l_xmltype_in := SYS.XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
        <RetrieveLocationByIdentity xmlns="' || l_namespace || '">
        <identity>
        <regionID>' || p_region_id || '</regionID>
        <locationType>' || p_location_type || '</locationType>
        <locationID>' || p_location_id || '</locationID>
        </identity>
        </RetrieveLocationByIdentity>');
        dbms_output.put_line('Prepared the XML String to pass');
      l_xmltype_out := UTL_DBWS.invoke(call_Handle => l_call ,
                                       request     => l_xmltype_in);
    dbms_output.put_line('Invoked the Web Services');
      UTL_DBWS.release_call (call_handle => l_call);
      UTL_DBWS.release_service (service_handle => l_service);
    dbms_output.put_line('Before Reading the XML output data');
    insert into  utldbws.EBH_XMLDATA
    values
    (l_xmltype_out, sysdate);
    commit;
    select extractvalue(l_xmltype_out,'//ns1:RetrieveLocationByIdentityResponse/ns1:location/ns1:description', 'xmlns:ns1="http://www.roadnet.com/RTS/TransportationSuite/TransportationWebService">' )
    into l_locationinfo
    from dual;
    l_out_return := l_locationinfo;
    dbms_output.put_line('l_locationinfo '||l_locationinfo);
    END ORACLE_TO_ROADNET_PROC;
    ----------------------End Of the Procedure-------------------------------------------------------
    ----------------Calling Block------------------------
    DECLARE
      p_region_id VARCHAR2(50);
      p_location_type VARCHAR2(50);
      p_location_id VARCHAR2(50);
      L_OUT_RETURN VARCHAR2(100);
    BEGIN
      ORACLE_TO_ROADNET_PROC(
        p_region_id => '310',
        p_location_type => '200',
        p_location_id => '499022',
        L_OUT_RETURN => L_OUT_RETURN
      DBMS_OUTPUT.PUT_LINE('L_OUT_RETURN = ' || L_OUT_RETURN);
    END;
    -----------------------------------------------------------------------------------------------Looks like this is not reading the input parameters and not returning the output but execution is successful. Please go throguh this and let me know, if I am missing anything. If you have worked on similar Web Services, please let me know.
    Thanks in advance!
    Ravi
    Edited by: BluShadow on 16-May-2013 15:19
    added {noformat}{noformat} tags for readability.  Please read the FAQ: {message:id=9360002} and do this yourself in future posts.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    1006367 wrote:
    I am calling a Web Service(RoadNet Application) from Oracle PL/SQL(11g Database). I would not use UTL_DBWS. I had to do another web service interface recently, had a look at UTL_DBWS, and again decided not to use it. Simply put. It lacks.
    I use SOAPUI (OpenSource/free version) to interrogate the web service (read wsdl) and format a sample SOAP envelope to use.
    I then use UTL_HTTP and code a HTML POST for that web service, using the SOAPUI generated envelope as template. Supporting WSSE is also not a problem (easily done using PL/SQL).
    I posted an example of my approach in {message:id=10448611} almost a year ago - and recent experience having looked at both UTL_DBWS and the plan vanilla PL/SQL HTTP approach, I still recommend the latter.

  • Web service invocation using pl/sql

    Hi
    Am trying to invoke a webservice using PL/SQL.
    Any ideas?
    I will be recieving the response as XML and then present the information using XSL which I have ready.
    Or any other ideas to invoke Siebel Analytics report from portal (no BPEL). I have WSDL.

    1006367 wrote:
    I am calling a Web Service(RoadNet Application) from Oracle PL/SQL(11g Database). I would not use UTL_DBWS. I had to do another web service interface recently, had a look at UTL_DBWS, and again decided not to use it. Simply put. It lacks.
    I use SOAPUI (OpenSource/free version) to interrogate the web service (read wsdl) and format a sample SOAP envelope to use.
    I then use UTL_HTTP and code a HTML POST for that web service, using the SOAPUI generated envelope as template. Supporting WSSE is also not a problem (easily done using PL/SQL).
    I posted an example of my approach in {message:id=10448611} almost a year ago - and recent experience having looked at both UTL_DBWS and the plan vanilla PL/SQL HTTP approach, I still recommend the latter.

  • External Web Service call using WebMethods in Abap

    Hi everyone,
    I have presented with writing an interface, requested by a third party, in SAP ABAP that will call external web services from a java system. What I have been told is that I will be calling these services through webMethods. What I take is that webMethods is an SAP proxy wrapper around the web service. Beyond that I do not know what any of this is. I have asked my long-time ABAP developers and they have not seen any of the web calls through webMethods. Can someone present me with a basic understanding, maybe some code examples too? Also is this a standard function module call or a method in a class modules? How will it look to ABAP?
    Thanks for any info you can provide,
    Steve

    Hello,
    to be a bit more precise, WebMethods (or Business Connector) will register in sm59, and then you can make a function call in ABAP to this remote destination.
    You will have to check what parameters the WebMethods Service needs and pass them from ABAP.
    WebMethods then will take care of the WebService call to the external system and send the result back.
    CSY

  • Does Oracle817 support Web Service call from PL/SQL Procedure?

    Dear Experts,
    Please help. Thanks.

    I am sure about C-based webservice client. But Java-based webservice client cannot run on 817.

  • Configuring SSL to make a HTTPS web Service call from XI

    Hi All,
    We are making a <b>https web service call</b> using soap adapter from XI. Looking at the various posts and SAP help links, we are configuring SSL for the same.
    The procedure given in SAP help has been followed to configure SSL but with no luck. If someone had done this could you please give a <b>step by step procedure</b> to configure SSL, we might have missed out on something.
    Also are there are <b>any other settings apart from SSL</b> to be done to make a  https web service call using soap adapter from XI.
    Cheers,
    Chandra

    user13046122 wrote:
    I have an old pl/sql "helper" package, originally written to make SOAP Web Service calls from the database - it uses UTL_HTTP to invoke the target services.
    I now need to make SOAP Web Service calls - from an 8.1.7.4 database
    But the version of UTL_HTTP inside 8.1.7.4 does not contain the functions needed in the helper package
    Can anybody suggest a means of making SOAP Web Service calls from an 8.1.7.4 database ?I think you'll be very lucky to find anyone here who still has access to a version of Oracle that is that old.... I mean... that's like what? 15 years old at least? I'm surprised you've still got hardware that can run that.
    It would probably help if you could post what code you've got and explain which function(s) it's complaining about, as I doubt people will want to guess.

  • Asynchronous Web Service Request-Reply Invocation from Service Control

    Hi all
    I need to invoke a reliable web service call using a Service Control. when trying to make that invocation for an operation that returns data. It gives the following exception. For the methods that marked with @Oneway() annotation in the service implementation, it works.
    javax.xml.rpc.JAXRPCException: Reliable messaging will only work with one way messages or asynchronous request/response messages.
    </bea_fault:stacktrace></detail>]; nested exception is:
    weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Reliable messaging will only work with one way messages or asynchronous request/response messages.
    Caused by: java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Server] FaultString [Reliable messaging will only work with one way messages or asynchronous request/response messages.
    ] FaultActor [null] Detail [<detail><bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">javax.xml.rpc.JAXRPCException: Reliable messaging will only work with one way messages or asynchronous request/response messages.
    </bea_fault:stacktrace></detail>]; nested exception is:
    weblogic.wsee.jaxrpc.soapfault.WLSOAPFaultException: Reliable messaging will only work with one way messages or asynchronous request/response messages.
    So I need to make Asynchronous Request-Reply Invocation from Service Control, which is apparently doesn't happen in this case.
    Thanks

    Hi HP,
    I included the following snippet in job source:
    //Set completion strategy to external
    jcsJobContext.setCompletionStrategy(CompletionStrategyType.External);
    I get the following error when compiled:
    JCS-102183: Compile failed for Job Definition SOAP_GlobalWeatherSoap_GetCitiesByCountry (Latest Version): SOAP_GlobalWeatherSoap_GetCitiesByCountry.java:user code 24:40:cannot find symbol symbol : variable CompletionStrategyType location: class com.redwood.scheduler.custom.SOAP_GlobalWeatherSoap_GetCitiesByCountry jcsJobContext.setCompletionStrategy(CompletionStrategyType.External);
    I am not able to find any information from the API documentation on the method setCompletionStrategy, so I'm not able to figure what type of variable am i passing, so that i can initialize it. Please shed some light on it.
    Also there is no path called Scripting > Built-In Web Services
    I have only Scripting>Published Web Services
    Thanks
    Nanda

  • Ssl web service call problem

    Hi,
    I have a form that calls a web service on start up in the docReady event.
    This has been working well in one of our development environments where the the web service is on a plain non secure connection.
    However, when we try and make the same web service call using ssl instead, the returned values are not populated in the form. If I run the call twice in a row, it works as usual but this is not an acceptable solution.
    The other web services calls on the form all work as expected. It is just this one being called during the docReady event.
    Has anybody else encountered this problem?
    Thanks,
    Luke

    Hi Luke,
    I had a similar problem and the reason was that the SSL certificate on the server was not valid (without any errors or warnings).
    You might want to first try to access the service from a browser and make sure you don't get any security warnings, if you get any security warnings, Adobe won't be able to call that service.
    Hope this helps.
    Thanks,
    Vikram

  • Is it possible to call asynchronous Web Service using Adaptive WS model?

    Hello,
    I was trying to call asynchronous web service and after execution exception has arised
    java.lang.NullPointerException
        at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.fillOutputParametersToMc(WSGenericModelClassExecutable.java:281)
        at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.execute(WSGenericModelClassExecutable.java:93)
        at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClassExecutable.execute(WSTypedModelClassExecutable.java:46)
        at at.gov.bmf.demo.comp.employee.EmployeeDemo.ok(EmployeeDemo.java:242)
        at at.gov.bmf.demo.comp.employee.wdp.InternalEmployeeDemo.ok(InternalEmployeeDemo.java:285)
    I have NWDS 7.0.
    How can I set model, to avoid binding web service response to model?
    Thanks.

    I just ran into this issue, same exact problem.
    The quick and dirty workaround I did, after trying out several other things to make sure I didn't do anything wrong to cause this problem, was to just catch the nullpointer, and then go along my merry way.
    try{
         query.execute();     
    catch(NullPointerException e){
         //we get a worthless error here from Webdynpro, so we just ignore it. Not pretty. But unavoidable
    If someone else has any other solution, I would love to hear them.
    This is on NW7.0 SP15
    /Björn

  • Error while trying to call external  web service from oracle PL/SQL 10.2 g

    Hi I am trying to call an external web service from oracle PL/SQL .I am getting following run time error when I try to set the opeartion style.
    But as per the oracle documentation this is one of the 2 valid values.
    ORA-29532: Java call terminated by uncaught Java exception: operation style: "document" not supported.Teh webservice does expect the operation style as document.
    Following is the code I am executing.
    FUNCTION email
    return varchar2
    AS
    service_ SYS.utl_dbws.SERVICE;
    call_ SYS.utl_dbws.CALL;
    service_qname SYS.utl_dbws.QNAME;
    port_qname SYS.utl_dbws.QNAME;
    operation_qname SYS.utl_dbws.QNAME;
    string_type_qname SYS.utl_dbws.QNAME;
    retx ANYDATA;
    retx_string VARCHAR2(1000);
    retx_double number;
    retx_len number;
    params SYS.utl_dbws.ANYDATA_LIST;
    l_input_params SYS.utl_dbws.anydata_list;
    l_result ANYDATA;
    l_namespace VARCHAR2(1000);
    begin
    -- open internet explorer and navigate to http://webservices.imacination.com/distance/Distance.jws?wsdl
    -- search for 'targetNamespace' in the wsdl
    l_namespace := 'http://service.xmlservices.global.freedomgroup.com/';
    -- search for 'service name' in the wsdl
    service_qname := SYS.utl_dbws.to_qname(l_namespace, 'ClientCoreWebServiceBeanService');
    -- this is just the actual wsdl url
    service_ := SYS.utl_dbws.create_service(HTTPURITYPE('http://hostname/GlobalWebServices/services/ClientCoreWebService?wsdl'), service_qname);
    -- search for 'portType name' in the wsdl
    port_qname := SYS.utl_dbws.to_qname(l_namespace, 'ClientCoreWebServiceBeanPort');
    -- search for 'operation name' in the wsdl
    -- there will be a lot, we will choose 'getCity'
    operation_qname := SYS.utl_dbws.to_qname(l_namespace, 'postalCodelookup');
    -- bind things together
    call_ := SYS.utl_dbws.create_call(service_, port_qname, operation_qname);
    -- default is 'FALSE', so we make it 'TRUE'
    SYS.utl_dbws.set_property(call_, 'SOAPACTION_USE', 'TRUE');
    -- search for 'operation soapAction' under <wsdl:operation name="getCity">
    -- it is blank, so we make it ''
    SYS.utl_dbws.set_property(call_, 'SOAPACTION_URI', '');
    -- search for 'encodingstyle' under <wsdl:operation name="getCity">
    SYS.utl_dbws.set_property(call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
    -- search for 'binding style'
    SYS.utl_dbws.set_property(call_, 'OPERATION_STYLE', 'DOCUMENT');
    -- search for 'xmlns:xs' to know the value of the first parameter
    -- under <wsdl:message name="getCityResponse"> you will see the line <wsdl:part name="getCityReturn" type="xsd:string" />
    -- thus the return type is 'string", removing 'xsd:'
    string_type_qname := SYS.utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
    -- in the line <wsdl:operation name="getCity" parameterOrder="zip">
    -- the parameterOrder is 'zip', thus we put in 'zip'
    -- the 'ParameterMode.IN' is used to specify that we will be passing an "In Parameter" to the web service
    -- the 'ParameterMode.IN' is a constant variable in the sys.utl_dbws package
    --vj this cud be either params or xml
    SYS.utl_dbws.add_parameter(call_, 'param1', string_type_qname, 'ParameterMode.IN');
    SYS.utl_dbws.add_parameter(call_, 'param2', string_type_qname, 'ParameterMode.IN');
    SYS.utl_dbws.set_return_type(call_, string_type_qname);
    -- supply the In Parameter for the web service
    params(0) := ANYDATA.convertvarchar('<TFGGlobalBasicXMLDO><systemCd>GLOBAL</systemCd><username>GlobalAdmin</username><password>GlobalAdmin</password><localID>1</localID></TFGGlobalBasicXMLDO>');
    params(1) := ANYDATA.convertvarchar('<TFGGlobalPostalCodeLookupIDDO><postalCode>02446</postalCode><countryCode>USA</countryCode><stateCode>MA</stateCode><cityDisplay>BROOKLINE</cityDisplay><countyDisplay>NORFOLK</countyDisplay><include_inactive_flag>True</include_inactive_flag></TFGGlobalPostalCodeLookupIDDO>');
    -- invoke the web service
    retx := SYS.utl_dbws.invoke(call_, params);
    dbms_output.put_line(retx.gettypename);
    -- access the returned value and output it to the screen
    retx_string := retx.accessvarchar2;
    dbms_output.put_line('done' || retx_string);
    dbms_output.put_line('PL/SQL DII client return ===> ' || retx_string);
    -- release the web service call
    SYS.utl_dbws.release_service(service_);
    return retx_string;
    end email;

    thsi is urgent anybody ????

  • How can I use web service call for edit a report with SSRS in Java Struts2 web application

    Hello im new in SSRS technologie and I would like make web service call at my SSRS server. Is sombody can help me ?
    - What API should I import in my project ? I use Maven can I found this API on Maven repository ?
    - I would like have an sample of code which initialize the ReportingService, do the call and process result.
    We use the SQL Server ReportingService 2008 R2 and currently we made HTTP call like this : http://<ssr_server>/ReportServer/Pages/ReportViewer.aspx?%2fSSRS_OMB%2fMyReport&rs:Command=Render&MyParam=<value>
    Regards

    Hi ombinte,
    SQL Server Reporting Services provides access to the full functionality of the report server through the Report Server Web service. Because the Report Server Web service is an XML Web service which uses Simple Object Access Protocol (SOAP) over Hypertext Transfer
    Protocol (HTTP), any SOAP-aware application or development tool can communicate with the SSRS web service.
    There are three primary ways to develop Reporting Services applications based on the Web service, please see:
    Develop applications using Microsoft Visual Studio and the Microsoft .NET Framework SDK.
    Develop applications using the rs utility (RS.exe), the Reporting Services script environment.
    Develop applications using any SOAP-enabled set of development tools.
    For more information about Report Server Web Service, you can refer to the following document:
    http://technet.microsoft.com/en-us/library/ms152787.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • SSL configuration for ABAP engine

    Hi Experts, Can you please tell me how to configure SSL on ABAP engine? Can you please guide me in details of the first part i.e. installation of SAPCRYPTOLIB for ABAP part? I am not getting the document properly. I am telling you what I have done. 1

  • Open pdf file on ribbon button click in mscrm 2011

    Hi, I want to open pdf file from button placed on Accont entity ribbon. Through HTML i tried below code and it worked fine <html> <body> <a href="file://C:\Users\asinha\Documents\UML.pdf">Link to a pdf</a> </body> </html> But i am not able to use the

  • How to back-grade Camera RAW to 2.1?

    Can anyone explain how to back grade to camera raw support 2.1 verses the buggy 2.2 one? Luckily, I only updated my MBP and not my main work station but I'm in need of fixing my MBP for a location project I'm doing. I've found the former 2.1 update,

  • Regarding JRE autoinstall, is this a bug?

    Hi JNLP spec says that we can put "+" and "*" in "j2se" tag, however, I found if I do <j2se version="1.4.2_02+" initial-heap-size="32m" max-heap-size="512m" href="http://java.sun.com/products/autodl/j2se"/> It works, but if I specify <j2se version="1

  • Problem with External HDD and Disk Utility

    I'm having issues with my external hdd, I keep all of my media on it, and randomly it is no longer readable, and doesn't show up on the desktop, it only gives me the options to initialize, ignore or eject, when I try to initialize it and run first ai