Any function to integrate applescript calls?  Or WebService functions?

I'm looking to build a spreadsheet to track my stocks that I'd like to have automatically update from web service lookups for the current prices of stocks

Richard,
I wrote about this here:
http://www.numberstemplates.com/2007/08/19/how-to-get-stock-quotes-into-apple-iw ork-numbers-08/
To my knowledge, this is the only way to get that kind of information into Numbers, as it exists today.
- Michael

Similar Messages

  • How to call SAP Webservice in standalone java program

    Hi,
    In our Java application, we want to use the SAP Webservices. I dont know much about authentication mechanism used by SAP. Can any one please help me with any sample code how to Call SAP webservice in Standalone Jave Program. I searched alot on the web regarding this, but helpless. Please help me.
    Thanks,
    Mohan

    Hi Mohan,
    You need an account for the ES Workplace. I'm afraid this is not free, e.g. check [SAP NetWeaver, Composition Subscription|https://www.sdn.sap.com/irj/sdn/subscriptions/composition].
    But I thought you wanted to play with a WSDL [you already had at hand|Sample code to access BAPI Web services from JAVA required;?

  • Calling a Webservice via a Function in PL/SQL

    Hi
    I am trying to call a webservice from a function, but i am getting an error, i am not sure that i am using the correct url for the end point or actions
    Below is the class i am calling..
    Please could some assist.
    FUNCTION add_new_user (xmlstruct IN VARCHAR2)
    RETURN VARCHAR2
    IS
    req xx_demo_soap.request;
    resp xx_demo_soap.response;
    BEGIN
    req :=
    xx_demo_soap.new_request
    ('processRequest',
    'xmlns="http://extServices"'
    xx_demo_soap.ADD_PARAMETER (req, 'processReq', 'xsd:string', xmlstruct);
    resp :=
    xx_demo_soap.invoke
    (req,
    'http://wbrbap92/LDAP_Self-Service/services/LdapProcWS',
    'http://wbrbap92/LDAP_Self-Service/services/LdapProcWS/'
    RETURN xx_demo_soap.get_return_value
    (resp,
    'processRequestResponse',
    'xmlns="http://extServices"'
    END;
    Also here is the WSDL file
    \<?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://extServices" xmlns:impl="http://extServices" xmlns:intf="http://extServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <schema targetNamespace="http://extServices" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <element name="firstTestResponse">
    <complexType>
    <sequence>
    <element name="firstTestReturn" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processDelete">
    <complexType>
    <sequence>
    <element name="processDel" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processDeleteResponse">
    <complexType>
    <sequence>
    <element name="processDeleteReturn" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processRequest">
    <complexType>
    <sequence>
    <element name="processReq" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processRequestResponse">
    <complexType>
    <sequence>
    <element name="processRequestReturn" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processModify">
    <complexType>
    <sequence>
    <element name="processMod" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processModifyResponse">
    <complexType>
    <sequence>
    <element name="processModifyReturn" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="firstTest">
    <complexType>
    <sequence/>
    </complexType>
    </element>
    </schema>
    </wsdl:types>
    <wsdl:message name="processRequestResponse">
    <wsdl:part element="impl:processRequestResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="processDeleteRequest">
    <wsdl:part element="impl:processDelete" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="firstTestResponse">
    <wsdl:part element="impl:firstTestResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="processRequestRequest">
    <wsdl:part element="impl:processRequest" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="processModifyRequest">
    <wsdl:part element="impl:processModify" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="processModifyResponse">
    <wsdl:part element="impl:processModifyResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="processDeleteResponse">
    <wsdl:part element="impl:processDeleteResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="firstTestRequest">
    <wsdl:part element="impl:firstTest" name="parameters"/>
    </wsdl:message>
    <wsdl:portType name="LdapProcWS">
    <wsdl:operation name="firstTest">
    <wsdl:input message="impl:firstTestRequest" name="firstTestRequest"/>
    <wsdl:output message="impl:firstTestResponse" name="firstTestResponse"/>
    </wsdl:operation>
    <wsdl:operation name="processDelete">
    <wsdl:input message="impl:processDeleteRequest" name="processDeleteRequest"/>
    <wsdl:output message="impl:processDeleteResponse" name="processDeleteResponse"/>
    </wsdl:operation>
    <wsdl:operation name="processRequest">
    <wsdl:input message="impl:processRequestRequest" name="processRequestRequest"/>
    <wsdl:output message="impl:processRequestResponse" name="processRequestResponse"/>
    </wsdl:operation>
    <wsdl:operation name="processModify">
    <wsdl:input message="impl:processModifyRequest" name="processModifyRequest"/>
    <wsdl:output message="impl:processModifyResponse" name="processModifyResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="LdapProcWSSoapBinding" type="impl:LdapProcWS">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="firstTest">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="firstTestRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="firstTestResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="processDelete">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="processDeleteRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="processDeleteResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="processRequest">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="processRequestRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="processRequestResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="processModify">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="processModifyRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="processModifyResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="LdapProcWSService">
    <wsdl:port binding="impl:LdapProcWSSoapBinding" name="LdapProcWS">
    <wsdlsoap:address location="http://wbrbap92/LDAP_Self-Service/services/LdapProcWS"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Thanks

    Try this..
    CREATE OR REPLACE PACKAGE L_WEBSERVICE_INVOKE
    AS
    **         Name:    L_WEBSERVICE_INVOKE
    PROCEDURE P_CREATE_XML(envolope IN OUT NOCOPY varchar2);
    PROCEDURE P_INVOKE_WEBSERVICE(rs_error_msg      IN OUT VARCHAR2,                                                            
                         on_result         IN OUT NUMBER);
    PROCEDURE SHOW_ENVELOPE(env IN VARCHAR2);
    END L_WEBSERVICE_INVOKE;
    show errors;
    create or replace PACKAGE BODY L_WEBSERVICE_INVOKE                                                                                                      
    AS                                                                                                                                 
    PROCEDURE P_CREATE_XML(envolope  IN OUT NOCOPY varchar2)
    AS
    BEGIN
         envolope := '<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://extServices" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><q0:processRequest><processReq><?xml version='1.0'?><users><user><uid>W0001</uid><surname>Bruce</surname><firstName>Jacob</firstName><idNumber>6611254858081</idNumber><idType>P</idType><email>[email protected]</email><employer>FNB</employer><empNumber>W3546333</empNumber><department>Collections</department><region></region><branch>Southside</branch><division>Corporate</division></user><user><uid>W0034</uid><surname>Brian</surname><firstName>Sutters</firstName><idNumber>3445554858081</idNumber><idType>V</idType><email>[email protected]</email><employer>Wesbank</employer><empNumber>W3455455</empNumber><department>Fraud</department><region>PTA West</region><branch>Southside</branch><division>Corporate</division></user></users></processReq></q0:processRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>';
    END P_CREATE_XML;
    PROCEDURE P_INVOKE_WEBSERVICE(rs_error_msg      IN OUT VARCHAR2,                                                            
                         on_result         IN OUT NUMBER)
    AS
    ls_out_resp varchar2(32767);
    http_req utl_http.req;
    http_resp utl_http.resp;
    ls_http_req_url varchar2(4000);
    ls_result VARCHAR2(2000);
    name  VARCHAR2(256);   -- Response header name
    value VARCHAR2(1024);  -- Response header value
    line  VARCHAR2(4000);  -- Response body
    ls_webservice_url varchar2(1024);
    ls_in_request     varchar2(4000);
    is_webservice_err varchar2(2000);
    BEGIN
         on_result:=0;
         ls_http_req_url := 'http://wbrbap92/LDAP_Self-Service/services/LdapProcWS';
         --Construct the Input Soap Request
         P_CREATE_XML(ls_in_request);
         --show_envelope(ls_in_request);
            -- Establish the connection
           http_req := utl_http.begin_request(ls_http_req_url, 'POST' ,'HTTP/1.1');
           -- The Content-Length header has to indicate the amount of data in the XML document
          utl_http.set_header(http_req, 'Content-Type', 'text/xml');     
          utl_http.set_header(http_req, 'Content-Length', to_char(length(ls_in_request)) );
          -- POST the XML document
          utl_http.write_text(http_req,ls_in_request);
           -- Now process the HTTP server's response
           http_resp := utl_http.get_response(http_req);
           dbms_output.put_line('HTTP response status code: ' || http_resp.status_code);
           dbms_output.put_line('HTTP response reason phrase: ' || http_resp.reason_phrase);
           utl_http.read_text(http_resp, ls_out_resp);
           show_envelope(ls_out_resp);
           utl_http.end_response(http_resp);
    EXCEPTION
    WHEN Utl_Http.request_failed   THEN
               on_result:=-1;
               rs_error_msg:='L_WEBSERVICE_INVOKE.p_invoke_webservice-request_failed: ' ||UTL_HTTP.GET_DETAILED_SQLERRM;
               Utl_Http.end_request (http_req);
    WHEN Utl_Http.http_server_error  THEN
              on_result:=-1;
              rs_error_msg:='L_WEBSERVICE_INVOKE.p_invoke_webservice-Http_Server_Error: ' ||UTL_HTTP.GET_DETAILED_SQLERRM;
              Utl_Http.end_request (http_req);
    WHEN Utl_Http.http_client_error THEN
               on_result:=-1;
               rs_error_msg:='L_WEBSERVICE_INVOKE.p_invoke_webservice-Http_Client_Error: ' ||UTL_HTTP.GET_DETAILED_SQLERRM;
               Utl_Http.end_request (http_req); 
    when others then
         on_result:=-1;
         rs_error_msg := 'L_WEBSERVICE_INVOKE.P_INVOKE_WEBSERVICE: ' || SQLERRM; 
         Utl_Http.end_request (http_req); 
    END P_INVOKE_WEBSERVICE;
    PROCEDURE SHOW_ENVELOPE(env IN VARCHAR2)
    AS
    i pls_integer;
    len pls_integer;
    BEGIN
         i := 1;
         len := length(env);
         WHILE (i <= len)
         LOOP
         dbms_output.put_line(substr(env, i, 100));
         i:=i+100;
         END LOOP;
    END SHOW_ENVELOPE;
    END L_WEBSERVICE_INVOKE;
    Now execute the anonymous block
    set serverout on size 1000000;
    DECLARE
    RS_ERROR_MSG VARCHAR2(2000);
    ON_RESULT NUMBER;
    BEGIN
    L_WEBSERVICE_INVOKE.P_INVOKE_WEBSERVICE(RS_ERROR_MSG,ON_RESULT);
    END;
    Good luck!!!
    Bhagat
    Message was edited by:
            Bugs
    Message was edited by:
            Bugs                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • CALL A WEBSERVICE FROM FUNCTION

    HI to all,
    sorry for my question, but never used webservice since now:
    however would like to know if it's possible to call a web service from a PL/SQL function.
    thanx a lot

    I solved it myself by using utl_dbws package. utl_dbws package is compatible with 10g release2(10.2.0.2) and next higher versions. By using utl_dbws package, it is easy to call a webservice.
    Before i was using utl_http package and a my function was using xml tags heavily. In this case we have to careful in entering xml tags, so that we will return the exact output message.
    Thanks and Regards,
    Mahesh

  • Any function module for calling a text editor in subscreen?

    Hi,
    I would like to know if there is any function module that can be used to call a text/note editor and can be displayed in a subscreen of a main screen (dialog programming)? This text/note editor should not be able to edit, but for display only.
    Please help. Thanks...

    >
    Pablo Casamayor wrote:
    > Hi,
    >
    > maybe this can help:
    >
    > check program SAPTEXTEDIT_TEST_1
    > in this program pay attention to:
    >
    >
    > MODULE pai INPUT.
    >
    >   CASE ok_code.
    > ....
    >     WHEN 'FIND'.
    >       PERFORM find_text.
    > ....
    >     WHEN 'HIGHLIGHT'.
    >       highlight = 1.
    >       PERFORM highlight_lines USING highlight.
    >
    >
    >
    > *&---------------------------------------------------------------------*
    > *&      Form  FIND_TEXT
    > *&---------------------------------------------------------------------*
    > FORM find_text.
    >   found = 0.
    >   IF case_sensitive = 'X'.             " button on Dynpro
    >     case_sensitive_mode = editor->true.
    >   ELSE.
    >     case_sensitive_mode = editor->false.
    >   ENDIF.
    >   IF whole_word = 'X'.                 " button on Dynpro
    >     whole_word_mode = editor->true.
    >   ELSE.
    >     whole_word_mode = editor->false.
    >   ENDIF.
    >
    >   CALL METHOD editor->find_and_select_text
    >                EXPORTING search_string = search_string
    >                          case_sensitive_mode = case_sensitive_mode
    >                          whole_word_mode = whole_word_mode
    >                CHANGING string_found = found.
    > * Flush for proper work of the following if statement
    >   CALL METHOD cl_gui_cfw=>flush.
    >   IF NOT search_string IS INITIAL.
    >     IF found NE 0.
    >       MESSAGE s000 WITH text-013.
    >     ELSE.
    >       MESSAGE s000 WITH text-014.
    >     ENDIF.
    >   ENDIF.
    > ENDFORM.                               " FIND_TEXT
    >
    > *&---------------------------------------------------------------------*
    > *&      Form  HIGHLIGHT_LINES
    > *&---------------------------------------------------------------------*
    > *      -->P_HIGHLIGHT  text                                            *
    > *----------------------------------------------------------------------*
    > FORM highlight_lines USING    p_highlight.
    >   IF selection EQ 'X'.
    >     CALL METHOD editor->highlight_selection
    >          EXPORTING highlight_mode = p_highlight
    >          EXCEPTIONS has_no_effect = 1.
    >     IF sy-subrc NE 0.
    > *      add your handling
    >     ENDIF.
    >   ELSE.
    >     CALL METHOD editor->highlight_lines
    >          EXPORTING
    >                  from_line = from_line
    >                  to_line = to_line
    >                  highlight_mode = p_highlight
    >          EXCEPTIONS has_no_effect = 1.
    >     IF sy-subrc NE 0.
    > *      add your handling
    >     ENDIF.
    >   ENDIF.
    >
    > ENDFORM.                               " HIGHLIGHT_LINES
    >
    > and this link:
    > http://help.sap.com/saphelp_45b/helpdata/EN/0e/514035634d761fe10000009b38f889/frameset.htm
    >
    > Best regards.
    >
    > Edited by: Pablo Casamayor on Apr 17, 2009 9:19 AM
    Hi Pablo,
    I have look through the program SAPTEXTEDIT_TEST_1. This program does the Text Selection and Highlighting the Text only after the buttons of each of the function is clicked.
    My requirements will be, having all the selected text (with a string pattern) to be highlighted when this text editor is displayed. Is this possible?
    Really thanks for your replies...
    Regards,
    Chuak Fen

  • Calling a webservices from Oracle 10G ( 10.2.0.2)

    Hi:
    I am in the process of putting a database Java stored procedure that can call an external webservices.
    PL/SQL Wrapper -> Java Stored Procedure-> External Web services
    I loaded the following jars in the dataase.
    dbwsa.jar
    dbwsclient.jar
    1. I am having issues consuming this external webservice from SQL*PLUS. Do you know whether I need to load any other JARS ?
    2. How can I debug this issue ? I enabled TCP Monitor in JDeveloper and don't see anything when I call the PL/SQL wrapper in SQL*PLUS.
    3. I can use a Java client and tested the Web services OK.
    error message:
    SQL> l
    1 declare
    2 x varchar2(100);
    3 begin
    4
    5 x := tester.test_db1();
    6* end;
    SQL> /
    calling
    http://XX.XX.YY.121:8988/Application9-ViewController-context-root/MyWebService1S
    oapHttpPort
    java.rmi.RemoteException: Error parsing envelope; nested exception is:
    javax.xml.soap.SOAPException: Error parsing envelope
    at
    view.proxy.runtime.MyWebService1SoapHttp_Stub.sayhello2(MyWebService1SoapHttp_St
    ub.java:99)
    at
    prpd.MyWebService1SoapHttpPortClient.sayhello2(MyWebService1SoapHttpPortClient.j
    ava:41)
    at prpd.TEST_DB.TEST_DB1(TEST_DB.java:21)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope
    at
    oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplemen
    tation11.java:103)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:75)
    at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:934)
    at
    oracle.j2ee.ws.client.StreamingSender._preHandlingHook(StreamingSender.java:692)
    at oracle.j2ee.ws.client.StubBase._preHandlingHook(StubBase.java:688)
    at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:207)
    at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
    at
    view.proxy.runtime.MyWebService1SoapHttp_Stub.sayhello2(MyWebService1SoapHttp_St
    ub.java:76)
    ... 2 more
    Caused by: java.lang.IllegalArgumentException
    at oracle.xml.parser.v2.XMLParser.setAttribute(XMLParser.java:794)
    at
    oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplemen
    tation11.java:54)
    ... 9 more
    PL/SQL procedure successfully completed.
    SQL> /
    thx
    Raj

    thanks Tugduall for the comments. here are the instructions I followed to create a java stored procedure that can call a webservices. Unfortunately, this seems like a very complex task. Do you have any ideas how I could debug or troubleshoot this issue ?
    Please note that I used JDeveloper to generate the client code.
    ========================================================
    1. download the dbws-callout-utility-10R2.zip from OTN at:
    http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html
    2. create an application/project with 1.4 JDK.
    3. create a web service by ‘Business Tier’->Web Service->Web Service Proxy->UDDI
    4. next… to ‘Search for’, type ‘quote’.
    5. from the list select one. For me ‘Quote of day’ was picked.
    6. click Next all the way to Finish.
    7. from the ‘Application Sources’ select ‘QuotoProxy’ then find its main method.
    8. at the section
    // Add your own code here, add the line like:
    System.out.println("quote "+myPort.getQuote());
    9. run it to see its return.
    10. cteate a class that has a method to call client method to be invoked (static)
    like the following:
    package dbws;
    import dbws.QotdPortClient;
    public class MainClientStub {
    public MainClientStub() {
    public static String getMyQoute(){
    QotdPortClient myClient = null;
    try {
    myClient = new QotdPortClient();
    return myClient.getQuote();
    } catch (Exception e) {
    e.printStackTrace();
    return null;
    note that the package name in your project.
    11. create a deployment profile as ‘JAR File’. Uncheck the box ‘Project Dependencies’
    12. deploy it to the local box. ‘Deploy to JAR File’.
    13. unzip the dbws-callout-utility-10R2.zip to get dbwsa.jar.
    14. execute the following from command line:
    loadjava –user test/[email protected] -resolve –verbose –synonym –grant public to dbwsa.jar myarchive1.jar
    loadjava -user test/test@orcl1020 -resolve -verbose -synonym -genmissing -grant public myarchive1.j
    ar dbwsa.jar
    loadjava -user sys/<sys_pass> -resolve -verbose -synonym -genmissing -grant public myarchive1.jar dbwsa.jar
    15. create a function like the following:
    CREATE OR REPLACE FUNCTION teststub RETURN VARCHAR2 AS
    LANGUAGE JAVA NAME ‘dbws.MainClientStub.getMyQoute() return java.lang.String’;
    16. Run at sqlplus: Select teststub from dual;
    ======================================================

  • Calling a webservice from within Bex Web Application Designer

    Hi
    I have a web-template built with BEx web application designer which also contains textboxes. This text should be stored by calling a webservice (standard BI-documents are not an option).
    Can anyone tell me how I could call a webservice from within the BEx web template to store the text contained in the textbox? The webservice-call should include some of the filter-varialbes of the web application.
    Is this only possible by the use of a JavaScript WebItem? If so - does anyone have an example of such a JavaScript.
    Thanks a lot in advance.
    Kind regards.
    Christoph

    Thanks for your response. The BSP page would work out fine if I only needed to save the data.
    But the next time I call the webtemplate, the textarea should be filled by another webservice call with the stored text (so the text can be modified und saved again). This will not be possible by calling a BSP page.
    Do yoiu have any suggestions how to integrate the text (return value from the webservice call) into the textbox in the webtemplate?
    Kind regards.
    Christoph

  • SAP PI calling the webservice generated through BRF+

    Hi All,
    The scenario is
    SAP ECC(IDoc) --> PI --> SAP MII
    . The data coming from ECC in the IDoc will be in a third party format, but we want MII to receive data in SAP format.
    For this we have decided to use BRF. I want to know that how can I use the webservice which we generate from BRF in SAP PI. Which adapter supports calling of webservice or if there is any other section of SAP PI where this transformation can be done using BRF+ webservice? Please help
    Thanks,
    NehaSingh

    Hi,
    The message coming from ECC has values in ISO format and MII needs values in SAP format.  For this conversion to happen I need to use the BRF+ and when I raised the same request on "Business Rule Management/BRF+" forum. I got the following reply.
    ht[Re: Calling web service generated through BRF+ in SAP PI|Re: Calling web service generated through BRF+ in SAP PI]
    Now, Can anyone please help me with answers to following question:
    Since my Source Message is an IDoc, I cannot directly use the RFC that will call the Function Module that I require for format conversion,
    Can I use RFC Lookup to satisfy the requirement. If yes how to go about it. Actually I am using RFC LookUp for the first time, so the basic steps that we need to follow for RFC Lookup are needed. I went through some Blogs but did not understand how it will be applicable in my case. Please Help
    Thanks and Regards,
    NehaSingh

  • Re-coding calls to webservices from 6.1 to 7.0

    I have several web services that were coded in WL 6.1 that leverage the weblogic.soap.*
    classes.
    WL 7.0 does not have these classes and I have only been able to find two new classes:
    weblogic.webservice.client and weblogic.webservice.encoding that do not appear
    to offer the same functionality.
    Does anyone have any experience calling external webservices with 7.0?

    [att1.html]

  • How can we get the image which is stored in clipboard by labview, is there any functions available like text from clip board

    How can we get the image which is stored in clipboard by labview, i can get the text in clipboard by using invoke node directly.but i cannot get the image, is there any functions or vi available.(image is in Png format)

    The Read from Clipboard method is, unfortunately, limited to text. If the clipboard contains an image then you need to use OS-specific functions calls. This is an example program for Windows. It's old, but it should still work.

  • Is there any function to automatically adjust the voice volume in the multitrack

    I'm trying to mix voice sounds and music files into one track. Sounds easy! But almost every music has its loud parts(for example the climax) and quiet parts. Therefore when i listen to the voice and the music at the same time, the voice files are sometimes relatively too quiet and sometimes to loud. I don want to adjust the volume pan one part after another because I have a lot of files to mix. Could you tell me is there any function I can use to automatically adjust the voice volume to make it always 'just a bit higher than the music'? Or can I read some documents about this problem?
    Thank you very much!

    Sounds like you want to do what is called "ducking" & "side chaining".
    First try using a compressor and or limiter on the voice tracks to get a more even volume.
    Google: Audio Ducking tons of stuff on how to.
    I myself have never tried this with Audition, or the compressors that come with it. I have done it in other multitrack software and older versions of Dave Browns Compressor.
    Duff

  • Error getting while calling a webService from XI

    Hi
    We are getting the follwoing error while calling a webservice from XI. We Could call the same webservice from XML spy. Have checked the SOAP adapter it was running fine and the communication channel parameters too.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code area="MESSAGE">GENERAL</SAP:Code><SAP:P1/><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.MessagingException: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault</SAP:AdditionalText><SAP:ApplicationFaultMessage namespace=""/><SAP:Stack/><SAP:Retry>M</SAP:Retry></SAP:Error>
    Please try to help.
    Thanks
    Ramesh

    Hi
    Thanks a lot for your kind support.
    Hi Moorthy
    We have created one Asyn MI and wrapped the external definition into that, Haven't done any mapping for responce. Please find the trace below.
    Hi Bhavesh
    It was great helpful link but the payload days is not visible for this message it was containing details about sending. For some other message i could see payload.
    I Could see one differnce in the XML Spy and "XI payload before entering SOAP Adapter"
    The following line doesn’t appear in the XI payload.
    <m:StatusUpdate xmlns:m="http://localhost/StatusUpdate" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    </m:StatusUpdate>
    Is this line would be embeded in the SOAP Adapter??? Please find the trace below. Please help me if you have any additional info.
    The message was successfully received by the messaging system. Profile: XI URL: Using connection AFW. Trying to put the message into the receive queue.
    Message successfully put into the queue.
    The message was successfully retrieved from the receive queue.
    The message status set to DLNG.
    Delivering to channel: CC_SOAP_Rcvr_D_Pick_ZALEAUD
    SOAP: request message entering the adapter
    SOAP: completed the processing
    SOAP: response message received 4cb3fab0-7fc5-11db-8c5a-000f203c93e0
    SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault
    SOAP: sending a delivery error ack ...
    SOAP: sent a delivery error ack
    Exception caught by adapter framework: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault
    Delivery of the message to the application using connection AFW failed, due to: SOAP: response message contains an error Application/UNKNOWN/APPLICATION_ERROR - application fault.
    The asynchronous message was successfully scheduled to be delivered at Wed Nov 29 16:23:51 GMT 2006.
    The message status set to WAIT.
    Retrying to deliver message to the application. Retry: 1
    Kind Regards
    Ramesh
    Message was edited by:
            Ramesh Reddy Pothireddy

  • Calling a webservice MessageBroker from PL/SQL

    Hi gurus,
    I'm a newby at this topic and I have a simple question about calling a webservice from pl/sql.
    There is a SMS Service providing information by webservices. I want to acces them by PL/SQL.
    Parameter:
    user:password (after RFC 2617) = not required for simple respons
    method = mbInfo
    project = test
    smsbalance = total
    url with parameter:
    http://rp.yoc.de/http/&lt;project>/&lt;method>/1.0/?smsbalance=&lt;smsbalance>
    url with parameter values:
    http://rp.yoc.de/http/test/mbInfo/1.0/?smsbalance=total
    &lt;?xml version="1.0" encoding="utf-8" ?>
    &lt;result>
        &lt;processor>
          &lt;code>E07010001&lt;/code>
          &lt;message>Transaction not found (project_id=159 step_id=1002)&lt;/message>
          &lt;rid>-1&lt;/rid>
          &lt;testmode>0&lt;/testmode>
        &lt;/processor>
      &lt;handler />
    &lt;/result>I don't know how to start getting this simple result into a variable!
    I tried a simple example from here: http://akdora.wordpress.com/2007/08/03/calling-a-web-service-by-plsql-utl_http/
    But I do not understand how to use xmlns for my script or the function soap_api.get_return_value
    CREATE OR REPLACE PACKAGE pkg_my_webservice IS
    -- test parameter: 'http/test/mbInfo/1.0/?smsbalance=total'
         FUNCTION call_myfuntion
         (vp_parameter1 VARCHAR2) RETURN VARCHAR2;
    END pkg_my_webservice;
    /CREATE OR REPLACE PACKAGE BODY pkg_my_webservice IS   
    vg_funciton_fnc VARCHAR2(256) := 'myFunction';
    vg_ws_address   VARCHAR2(255) := 'http://rp.yoc.de/';   
         FUNCTION call_myfuntion(vp_parameter1 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 || vp_parameter1  || '"');
              -- we started to add parameters
              --soap_api.add_parameter(ol_req,
              --                       'string1',
              --                       'partns:string',
              --                       vp_parameter1);
              --soap_api.add_parameter(ol_req,
              --                       'string2',
              --                       'partns:string',
              --                       vp_parameter1);
              -- we call the web service
              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,
                                               'result', -- result tag name
                                               'xmlns:m="' || --can be change as "xmlns:n1"
                                               vg_ws_address || '"');
    END call_myfuntion;
    END pkg_my_webservice;Thanks ahead!
    Best regards,
    Tobias

    Hi !
    declare
      req  utl_http.req;
      resp utl_http.resp;
      v_txt clob;
    begin
      req  := UTL_HTTP.begin_request ('http://rp.yoc.de/http/test/mbInfo/1.0/?smsbalance=total','GET','HTTP/1.1');
      resp := UTL_HTTP.get_response  (req);
      dbms_output.put_line(resp.status_code);
      dbms_output.put_line(resp.reason_phrase);
       utl_http.read_text(resp,v_txt);
       dbms_output.put_line(v_txt);
       UTL_HTTP.end_response(resp);
    end;I'm not exactly sure what are you looking for .. but that response from your post you can get with my code ( it's tested ).
    T
    Edited by: ttt on 12.3.2010 5:10
    My code is very "poor" , there is no error checks no header setup's no basic authentication no proxy settings .....

  • Calling a webservice from Pl/SQL

    Hi,
    I have created a function to call a webservice but I am getting the following error
    ORA-20000: soap:Client - System.Web.Services.Protocols.SoapException: Server
    did not recognize the value of HTTP Header SOAPAction: ConversionRate.
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at
    System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage
    message)
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
    HttpContext context, HttpRequest request, HttpResponse response, Boolean&amp;
    abortProcessing)
    ORA-06512: at "APPS.SOAP_API", line 54
    ORA-06512: at "APPS.SOAP_API", line 81
    ORA-06512: at "APPS.PKG_MY_WEBSERVICE", line 12
    The Packages code are as follow:
    CREATE OR REPLACE PACKAGE soap_api AS
    TYPE t_request IS RECORD (
    method VARCHAR2(256),
    namespace VARCHAR2(256),
    body VARCHAR2(32767),
    envelope_tag VARCHAR2(30)
    TYPE t_response IS RECORD
    doc XMLTYPE,
    envelope_tag VARCHAR2(30)
    FUNCTION new_request(p_method IN VARCHAR2,
    p_namespace IN VARCHAR2,
    p_envelope_tag IN VARCHAR2 DEFAULT 'SOAP-ENV')
    RETURN t_request;
    PROCEDURE add_parameter(p_request IN OUT NOCOPY t_request,
    p_name IN VARCHAR2,
    p_type IN VARCHAR2,
    p_value IN VARCHAR2);
    FUNCTION invoke(p_request IN OUT NOCOPY t_request,
    p_url IN VARCHAR2,
    p_action IN VARCHAR2)
    RETURN t_response;
    FUNCTION get_return_value(p_response IN OUT NOCOPY t_response,
    p_name IN VARCHAR2,
    p_namespace IN VARCHAR2)
    RETURN VARCHAR2;
    END soap_api;
    CREATE OR REPLACE PACKAGE BODY soap_api AS
    FUNCTION new_request(p_method IN VARCHAR2,
    p_namespace IN VARCHAR2,
    p_envelope_tag IN VARCHAR2 DEFAULT 'SOAP-ENV')
    RETURN t_request AS
    l_request t_request;
    BEGIN
    l_request.method := p_method;
    l_request.namespace := p_namespace;
    l_request.envelope_tag := p_envelope_tag;
    RETURN l_request;
    END;
    PROCEDURE add_parameter(p_request IN OUT NOCOPY t_request,
    p_name IN VARCHAR2,
    p_type IN VARCHAR2,
    p_value IN VARCHAR2) AS
    BEGIN
    p_request.body := p_request.body||'<'||p_name||' xsi:type="'||p_type||'">'||p_value||'</'||p_name||'>';
    END;
    PROCEDURE generate_envelope(p_request IN OUT NOCOPY t_request,
              p_env IN OUT NOCOPY VARCHAR2) AS
    BEGIN
    p_env := '<'||p_request.envelope_tag||':Envelope xmlns:'||p_request.envelope_tag||'="http://schemas.xmlsoap.org/soap/envelope/" ' ||
    'xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">' ||
    '<'||p_request.envelope_tag||':Body>' ||
    '<'||p_request.method||' '||p_request.namespace||' '||p_request.envelope_tag||':encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">' ||
    p_request.body ||
    '</'||p_request.method||'>' ||
    '</'||p_request.envelope_tag||':Body>' ||
    '</'||p_request.envelope_tag||':Envelope>';
    END;
    PROCEDURE show_envelope(p_env IN VARCHAR2) AS
    i PLS_INTEGER;
    l_len PLS_INTEGER;
    BEGIN
    i := 1; l_len := LENGTH(p_env);
    WHILE (i <= l_len) LOOP
    DBMS_OUTPUT.put_line(SUBSTR(p_env, i, 60));
    i := i + 60;
    END LOOP;
    END;
    PROCEDURE check_fault(p_response IN OUT NOCOPY t_response) AS
    l_fault_node XMLTYPE;
    l_fault_code VARCHAR2(256);
    l_fault_string VARCHAR2(32767);
    BEGIN
    l_fault_node := p_response.doc.extract('/'||p_response.envelope_tag||':Fault',
    'xmlns:'||p_response.envelope_tag||'="http://schemas.xmlsoap.org/soap/envelope/');
    IF (l_fault_node IS NOT NULL) THEN
    l_fault_code := l_fault_node.extract('/'||p_response.envelope_tag||':Fault/faultcode/child::text()',
    'xmlns:'||p_response.envelope_tag||'="http://schemas.xmlsoap.org/soap/envelope/').getstringval();
    l_fault_string := l_fault_node.extract('/'||p_response.envelope_tag||':Fault/faultstring/child::text()',
    'xmlns:'||p_response.envelope_tag||'="http://schemas.xmlsoap.org/soap/envelope/').getstringval();
    RAISE_APPLICATION_ERROR(-20000, l_fault_code || ' - ' || l_fault_string);
    END IF;
    END;
    FUNCTION invoke(p_request IN OUT NOCOPY t_request,
    p_url IN VARCHAR2,
    p_action IN VARCHAR2)
    RETURN t_response AS
    l_envelope VARCHAR2(32767);
    l_http_request UTL_HTTP.req;
    l_http_response UTL_HTTP.resp;
    l_response t_response;
    BEGIN
    generate_envelope(p_request, l_envelope);
    show_envelope(l_envelope);
    l_http_request := UTL_HTTP.begin_request(p_url, 'POST','HTTP/1.1');
    UTL_HTTP.set_header(l_http_request, 'Content-Type', 'text/xml');
    UTL_HTTP.set_header(l_http_request, 'Content-Length', LENGTH(l_envelope));
    UTL_HTTP.set_header(l_http_request, 'SOAPAction', p_action);
    UTL_HTTP.write_text(l_http_request, l_envelope);
    l_http_response := UTL_HTTP.get_response(l_http_request);
    UTL_HTTP.read_text(l_http_response, l_envelope);
    UTL_HTTP.end_response(l_http_response);
    l_response.doc := XMLTYPE.createxml(l_envelope);
    l_response.envelope_tag := p_request.envelope_tag;
    l_response.doc := l_response.doc.extract('/'||l_response.envelope_tag||':Envelope/'||l_response.envelope_tag||':Body/child::node()',
    'xmlns:'||l_response.envelope_tag||'="http://schemas.xmlsoap.org/soap/envelope/"');
    -- show_envelope(l_response.doc.getstringval());
    check_fault(l_response);
    RETURN l_response;
    END;
    FUNCTION get_return_value(p_response IN OUT NOCOPY t_response,
    p_name IN VARCHAR2,
    p_namespace IN VARCHAR2)
    RETURN VARCHAR2 AS
    BEGIN
    RETURN p_response.doc.extract('//'||p_name||'/child::text()',p_namespace).getstringval();
    END;
    END soap_api;
    SHOW ERRORS
    CREATE OR REPLACE PACKAGE pkg_my_webservice IS
    FUNCTION call_myfunction(vp_parameter1 VARCHAR2,vp_parameter2 VARCHAR2) RETURN VARCHAR2;
    END pkg_my_webservice;
    CREATE OR REPLACE PACKAGE BODY pkg_my_webservice IS
    vg_funciton_fnc VARCHAR2(256):='ConversionRate';
    vg_ws_address VARCHAR2(255):='http://www.webservicex.net/CurrencyConvertor.asmx';
    FUNCTION call_myfunction(vp_parameter1 VARCHAR2,vp_parameter2 VARCHAR2)
    RETURN VARCHAR2 AS
    ol_req soap_api.t_request;
    ol_resp soap_api.t_response;
    BEGIN
    ol_req:=soap_api.new_request(vg_funciton_fnc,'xmlns="'||vg_ws_address||'"');
    soap_api.add_parameter(ol_req,'string1','partns:string',vp_parameter1);
    soap_api.add_parameter(ol_req,'string2','partns:string',vp_parameter1);
    ol_resp:=soap_api.invoke(ol_req,vg_ws_address,vg_funciton_fnc);
    RETURN soap_api.get_return_value(ol_resp,'result','xmlns:m="'||vg_ws_address||'"');
    END call_myfunction;
    END pkg_my_webservice;
    -----------------------------------------------------------------------------------------------------------------------------------

    Hi,
    The soap_api package internally uses the utl_http api. I used the utl_http package directly and it works for me. Below is the code for the call, you will have to substitute the variables to suit your setup..
    Hope this Helps
    Thanks
    CREATE OR REPLACE FUNCTION get_webservice_dets(p_emp_number IN VARCHAR2
    ,p_eff_date IN DATE)
    RETURN VARCHAR2
    IS
    lc_proc VARCHAR2(50) := 'get_webservice_dets';
    ln_error_stg NUMBER := 0;
    lc_eff_date VARCHAR2(50) := NULL;
    soap_request VARCHAR2(32767);
    soap_respond VARCHAR2(32767);
    -- HTTP variables
    req utl_http.req;
    resp utl_http.resp;
    -- Store the Webservice URL in a Profile Option and change for each environment
    lc_wsdl_url VARCHAR2(32767) := FND_PROFILE.VALUE('XXERP_WEBSRVC_URL');
    -- return Values
    lc_retval VARCHAR2(32767);
    lc_response VARCHAR2(32767);
    lc_xml_ext_str VARCHAR2(100) := '/env:Envelope/env:Body/OutputParameters/';
    lc_xml_ext_unit VARCHAR2(50) := '/text()';
    lc_xmlns_ns1_url VARCHAR2(240) := 'xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XXERP_SOA_HCM_PKG/GET_SUPERVISOR_NO/"';
    lc_xmlns_env_url VARCHAR2(240) := 'xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"';
    lc_xmlns_xsi_url VARCHAR2(240) := 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"';
    lc_xmlns_url VARCHAR2(240) := 'xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/XXERP_SOA_HCM_PKG/GET_SUPERVISOR_NO/"';
    lc_xml_namespace VARCHAR2(5000) := lc_xmlns_env_url||' '||lc_xmlns_xsi_url||' '||lc_xmlns_url;
    lc_xmlns_soap_url VARCHAR2(240) := 'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"';
    lx_Response XMLTYPE;
    BEGIN
    ln_error_stg := 10;
    IF NVL(lc_wsdl_url,'X') <> 'X' THEN
    -- Format the date received as required by the Webservice i.e. - 'YYYY-MM-DDTHH:MI:SS+01:00'
    lc_eff_date := REPLACE(TRIM(TO_CHAR(TRUNC(p_eff_date),'YYYY-MM-DD HH:MI:SS')),' ','T')||'+01:00';
    -- Form a SOAP Envelope - Exact envelope can be obtained by invoking the above EndPoint URL in a browser session with required
    -- parameters and then clicking on the XML Source
    soap_request:= '<soap:Envelope '||lc_xmlns_soap_url||'>
    <soap:Body '||lc_xmlns_ns1_url||'>
    <ns1:InputParameters>
    <ns1:P_EMPLOYEE_NUMBER>'||p_emp_number||'</ns1:P_EMPLOYEE_NUMBER>
    <ns1:P_DATE>'||lc_eff_date||'</ns1:P_DATE>
    </ns1:InputParameters>
    </soap:Body>
    </soap:Envelope>';
    -- Initiate the HTTP request, don't forget to pass in the POST and HTTP/1.1
    req := UTL_HTTP.BEGIN_REQUEST(lc_wsdl_url, 'POST','HTTP/1.1');
    ln_error_stg := 20;
    -- Set the HTTP Request Headers
    UTL_HTTP.SET_HEADER(req, 'Content-Type', 'text/xml'); -- since we are dealing with plain text in XML documents
    ln_error_stg := 40;
    UTL_HTTP.SET_HEADER(req, 'Content-Length', LENGTH(soap_request));
    ln_error_stg := 50;
    -- Set the SOAP Action to the Operation Name
    -- The function Name <getSupervisorID> should match the Webservice Operation Name in SOA
    UTL_HTTP.SET_HEADER(req, 'SOAPAction','getSupervisorID'); -- required to specify this is a SOAP communication
    ln_error_stg := 60;
    -- Append the SOAP Envelope to the HTTP request Header
    UTL_HTTP.WRITE_TEXT(req, soap_request);
    ln_error_stg := 70;
    -- Fetch the HTTP response from the Webservice - This will contain the SOAP Envelope response
    -- that needs to be processed downstream
    resp := UTL_HTTP.GET_RESPONSE(req);
    ln_error_stg := 80;
    -- Extract the HTTP response and store in a String Variable
    -- READ_TEXT is a specific method exposed to read the SOAP envelope returned from Webservice
    -- READ_LINE will read the entire HTML response back from the Server..
    UTL_HTTP.READ_TEXT(resp, lc_retval);
    ln_error_stg := 90;
    -- Create an XML Document from the String returned by the HTTP response..
    lx_Response := SYS.XMLTYPE.CREATEXML(lc_retval);
    ln_error_stg := 110;
    -- If the response is not null then extract the string value of the required output parameter
    -- the env: tag needs to be qualified with a corresponding namespace.
    IF lx_Response IS NOT NULL THEN
    lc_response := lx_Response.extract(lc_xml_ext_str||'PERSON_ID'||lc_xml_ext_unit,lc_xml_namespace).getstringval();
    ELSE
    DBMS_OUTPUT.PUT_LINE('XMLTYPE Doc returns NULL !!');
    lc_response := NULL;
    END IF;
    ln_error_stg := 120;
    -- End the response, otherwise you get
    -- UTL_HTTP.TOO_MANY_REQUESTS exception after 5 tries
    UTL_HTTP.END_RESPONSE(resp);
    ELSE
    DBMS_OUTPUT.PUT_LINE('Web Service URL not populated, please provide a value for the Profile Option XXERP: Web Service URL');
    lc_response := NULL;
    END IF;
    RETURN lc_response;
    EXCEPTION
    WHEN UTL_HTTP.TOO_MANY_REQUESTS THEN
    UTL_HTTP.END_RESPONSE(resp);
    RETURN NULL;
    WHEN UTL_HTTP.END_OF_BODY THEN
    UTL_HTTP.END_RESPONSE(resp);
    RETURN NULL;
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('ERROR @'||ln_error_stg||': '||SQLERRM);
    UTL_HTTP.END_RESPONSE(resp);
    RETURN NULL;
    END get_webservice_dets;

  • Problem while calling a Webservice from a Stand alone java program

    Hello Everyone,
    I am using a java program to call a webservice as follows. For this I have generated the client proxy definition for Stand alone proxy using NWDS.
    Now when I call the method of the webservice I am getting the correct result but along with the result I am getting one error and one warning message in the output.
    The java code to call the webservice is as follows.
    public class ZMATRDESCProxyClient {
         public static void main(String[] args) throws Exception {
              Z_MATRDESC_WSDService ws = new Z_MATRDESC_WSDServiceImpl();
              Z_MATRDESC_WSD port = (Z_MATRDESC_WSD)ws.getLogicalPort("Z_MATRDESC_WSDSoapBinding",Z_MATRDESC_WSD.class);
              String res = port.zXiTestGetMatrDesc("ABCD134");
              System.out.print(res);
    The result I am getting is :
    Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
    Error Message is :com/sap/guid/GUIDGeneratorFactory
    <b>Material Not Found</b> -
    > This is the output of webservice method and it is right.
    Can any one please let me know why I am getting the warning and error message and how can I fix this.
    Thanks
    Abinash

    Hi Abinash,
    I have the same problem. Have you solve that problem?
    I am using a java program to call a webservice too. And I have generated the client proxy definition for Stand alone proxy using NWDS. When I call the method of the webservice I am getting the correct result but along with the result I am getting one error and one warning message in the output.
    The java code to call the webservice is as follows.
    MIDadosPessoaisSyncService service = new MIDadosPessoaisSyncServiceImpl();
    MIDadosPessoaisSync port = service.getLogicalPort("MIDadosPessoaisSyncPort");
    port._setProperty("javax.xml.rpc.security.auth.username","xpto");
    port._setProperty("javax.xml.rpc.security.auth.password","xpto");
    String out = port.MIDadosPessoaisSync("xpto", "xpto");
    System.out.println(out);
    The result I am getting is :
    Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
    Error Message is :com/sap/guid/GUIDGeneratorFactory
    <b>The result of the WS is correct!!!</b>
    The Java project does not have any warning. But the stand alone proxy project has following warnings associated with it.
    This method has a constructor name     MIDadosPessoaisSync.java     
    The import javax.xml.rpc.holders is never used     MIDadosPessoaisSyncBindingStub.java     
    The import javax.xml.rpc.encoding is never used     MIDadosPessoaisSyncBindingStub.java     
    The constructor BaseRuntimeException(ResourceAccessor, String, Throwable) is deprecated     MIDadosPessoaisSyncBindingStub.java
    It is very similar with your problem, could you help me?
    Thanks
    Gustavo Freitas

Maybe you are looking for