Calling Web Service using utl_http; Parameters not being recognized by ws

Hi All,
I have set-up appropriate function & packages based on this article:
Calling Web Services from PL/SQL in the Oracle9i Database -
http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html
I am able to consume my sample web service using the above, but my web service doesn't see any parameters that I'm passing.
Any ideas? I'm using Oracle 10g calling a .Net 1.1 web service
Thanks,
Robert

Hello,
I am not able to access the link you posted about calling a web service. Could please share your code again ?
Thanks in advance for your help...
Lionel

Similar Messages

  • How to call web-service using only java code

    Hello, how to call web-service using only java code. I can call it from BPM process or Web Dynpro Java Application, but if I need to call it from ejb component?

    I'm found answer:
    Java and SAP Portal blog: How to call web service from java code example

  • Calling Web services using SOAP

    Hi,
    I am trying to execute a function through a webservice using a SOAP
    package and am getting the following error:ORA-30625: method dispatch
    on NULL SELF argument is disallowed. I think this is to do with one of
    the parameters being null but dont know how to fix this. Following is
    the function:
    CREATE OR REPLACE FUNCTION ILACPMSPRC.GET_GREETING_fnc (p_name IN
    VARCHAR2
    --, p_date VARCHAR2
    , p_age VARCHAR2 )
    RETURN NUMBER
    AS
    l_request soap_api_pkg.t_request;
    l_response soap_api_pkg.t_response;
    l_price NUMBER;
    -- DBMS_OUTPUT.ENABLE(20000);
    BEGIN
    DBMS_OUTPUT.ENABLE(20000);
    DBMS_OUTPUT.PUT_LINE('BEGIN');
    -- Set proxy details if no direct net connection.
    --UTL_HTTP.set_proxy('myproxy:4480', NULL);
    --UTL_HTTP.set_persistent_conn_support(TRUE);
    -- Set proxy authentication if necessary.
    --soap_api.set_proxy_authentication(p_username => 'myusername',
    -- p_password => 'mypassword');
    l_request := soap_api_pkg.new_request(p_method => 'ns1:validate',
    p_namespace => 'xmlns:ns1="http://
    impl.webservice.validation.workmgt.cb.irishlife.ie/xsd"');
    -- parameter 1 is name
    soap_api_pkg.add_parameter(p_request => l_request,
    p_name => 'workType',
    p_type => 'xsd:string',
    p_value => p_name);
    -- parameter 2 is date
    soap_api_pkg.add_parameter(p_request => l_request,
    p_name => 'workItemNo',
    p_type => 'xsd:string',
    p_value => 'ABC');
    --p_value   => '2007-01-01T00:00:00Z');
    -- parameter 3 is age
    soap_api_pkg.add_parameter(p_request => l_request,
    p_name => 'indexName',
    p_type => 'xsd:string',
    p_value => p_age);
    l_response := soap_api_pkg.invoke(p_request => l_request,
    p_url => 'http://
    10.253.55.139:7400/axis2/services/ValidationService',
    p_action => 'http://
    10.253.55.139:7400/axis2/services/ValidationService/validate');
    if l_response.doc is not null then
    dbms_output.put_line('the doc is not null');
    end if;
    DBMS_OUTPUT.PUT_LINE ( 'p_name = ' || p_name );
    HERE l_price := soap_api_pkg.get_return_value(p_response =>
    l_response,
    p_name =>
    'validateResponse',
    p_namespace =>
    'xmlns:ns1="http://impl.webservice.validation.workmgt.cb.irishlife.ie/
    xsd"');
    if l_price is null then
    dbms_output.put_line('opps, the price is null');
    end if;
    DBMS_OUTPUT.PUT_LINE('PRICE:'||l_price);
    RETURN l_price;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line(SQLCODE || ', ' || SQLERRM);
    RETURN NULL;
    END GET_GREETING_fnc;
    Where HERE is marked is where the problem lies...the package body is
    here:
    CREATE OR REPLACE PACKAGE BODY SOAP_API_PKG AS
    -- Name : http://www.oracle-base.com/dba/miscellaneous/soap_api
    -- Author : DR Timothy S Hall
    -- Description : SOAP related functions for consuming web services.
    -- Ammedments :
    -- When Who What
    -- =========== ========
    =================================================
    -- 04-OCT-2003 Tim Hall Initial Creation
    -- 23-FEB-2006 Tim Hall Parameterized the "soap" envelope tags.
    -- 08-JUN-2006 Tim Hall Add proxy authentication functionality.
    g_proxy_username VARCHAR2(50) := NULL;
    g_proxy_password VARCHAR2(50) := NULL;
    PROCEDURE set_proxy_authentication(p_username IN VARCHAR2,
    p_password IN VARCHAR2) AS
    BEGIN
    g_proxy_username := p_username;
    g_proxy_password := p_password;
    END;
    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||'>';
    DBMS_OUTPUT.PUT_LINE ( 'p_request.body = ' || p_request.body );
    END;
    --PROCEDURE add_parameter(p_request    IN OUT NOCOPY  t_request,
    -- p_name IN VARCHAR2,
    -- p_type IN DATE,
    -- p_value IN VARCHAR2) AS
    --BEGIN
    -- p_request.body := p_request.body||'<'||p_name||' xsi:type="'||
    p_type||'">'||p_value||'</'||p_name||'>';
    --END;
    --PROCEDURE add_parameter(p_request    IN OUT NOCOPY  t_request,
    -- p_name IN VARCHAR2,
    -- p_type IN INTEGER,
    -- 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
    dbms_output.put_line('midas8-1');
    l_fault_node := p_response.doc.extract('/'||
    p_response.envelope_tag||':Fault',
    'xmlns:'||
    p_response.envelope_tag||'="http://schemas.xmlsoap.org/soap/
    envelope/');
    dbms_output.put_line('midas8-2');
    IF (l_fault_node IS NOT NULL) THEN
    dbms_output.put_line('midas8-3');
    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();
    dbms_output.put_line('midas8-4');
    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();
    dbms_output.put_line('midas8-5');
    --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
    dbms_output.put_line('Invoking request');
    dbms_output.put_line('url :'||p_url);
    dbms_output.put_line('action :'|| p_action);
    generate_envelope(p_request, l_envelope);
    show_envelope(l_envelope);
    l_http_request := UTL_HTTP.begin_request(p_url, 'POST','HTTP/1.0');
    dbms_output.put_line('midas1');
    IF g_proxy_username IS NOT NULL THEN
    DBMS_OUTPUT.PUT_LINE('PROXY USERNAME IS NOT NULL');
    UTL_HTTP.set_authentication(r => l_http_request,
    username => g_proxy_username,
    password => g_proxy_password,
    scheme => 'Basic',
    for_proxy => TRUE);
    END IF;
    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);
    dbms_output.put_line('midas2');
    l_http_response := UTL_HTTP.get_response(l_http_request);
    dbms_output.put_line('midas3');
    UTL_HTTP.read_text(l_http_response, l_envelope);
    dbms_output.put_line('midas4');
    UTL_HTTP.end_response(l_http_response);
    dbms_output.put_line('midas5');
    l_response.doc := XMLTYPE.createxml(l_envelope);
    dbms_output.put_line('midas6');
    l_response.envelope_tag := p_request.envelope_tag;
    dbms_output.put_line('midas7');
    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());
    dbms_output.put_line('midas8');
    check_fault(l_response);
    dbms_output.put_line('midas9');
    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();
    dbms_output.put_line('function');
    dbms_output.put_line(p_name);
    DBMS_OUTPUT.PUT_LINE (p_response.doc.extract('//'||p_name||'/
    child::text()', p_namespace).getstringval());
    RETURN p_response.doc.extract('//'||p_name||'/child::text()',
    p_namespace).getstringval();
    END;
    END SOAP_API_PKG;
    Any help greatly appreciated!!

    Hello,
    I have not looked in detail to you code but I would like to point out that Oracle provides utilities to call Web Services from the database, using a DB package and/or Java in the DB.
    Have you looked to the documentation about:
    - Developing a Web Service Client in the Database
    regards
    Tugdual Grall

  • Error 504 DNS look up failed while calling web services using XML

    Hi, I am trying to call web service from Oracle using XML.
    Everything seems to be in place but im getting an error "The webserver for <My End URL> reported that an error occurred while trying to access the website. Please click here to return to the previous page."
    If I directly access the end url from my browser its accessible and seems to work fine.
    The http response receiveed is mentioned below:
    Status code: 403
    Reason phrase: Forbidden
    <html>
    <head>
    <title>504 DNS look up failed</title>
    </head>
    <body>
    <font size=2><table width="100%"><tr><td bgcolor=#3300cc align="center" colspan=2>504 DNS look up failed</td></tr></table><br><br>The webserver for 'My End URL' reported that an error occurred while trying to access the website. Please click <u>here</u> to return to the previous page.<br><br><hr></font></body>
    </html>
    Im using Oracle 9i
    Please help
    Edited by: 927814 on Apr 15, 2012 11:41 PM
    Edited by: 927814 on Apr 15, 2012 11:46 PM

    Without far greater details as to what you are doing, what you have installed, and what you have tried, not much can be offered. All that I can gather from the information you provided is that the server name you are trying to contact either is not responding or is invalid. If you have Forms installed on your local machine (for example using Developer Suite), try using localhost rather than the hostname. For example, http://localhost:port/forms/frmservlet?form=yourform
    http://www.checkupdown.com/status/E504.html

  • Call web service using code.

    we want to call a web service from ADF JSP form.
    We used web service data control. But deployment failed.
    we applied Patch 5878326 to JDeveloper 10.1.3.3.0 and OAS.
    But problem is not solved.
    So we need a new way to call web services.
    is there any other way to call web services from Jdev.
    any code sample will be appreciated.
    Thanks.

    Workaround for the Connection Failure
    In JDeveloper, locate the .deploy file in the Resources folder of your web application project.
    Double-click the file to open the WAR Deployment Profile Properties dialog.
    Expand File Groups - WEB-INF/classes - Contributors.
    In the Contributors panel, click Add and use the Browse dialog to locate the .adf folder in the root for your application (for example, /jdev/mywork//.adf path.)
    Select the .adf folder and add it as a contributor to the deployment profile.
    Note that the .adf folder does not become part of the deployable archive. This merely ensures that the contents of the META-INF get placed in an appropriate location in the archive that will permit the web container to find it when the application loads.
    The failure to get the connection to Webservice is beacuse the "connections.xml" is not available in the deployed archive.
    This has been release note'd as in
    http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.0.3/10.1.3_addendum.html under "Deployment issues"

  • Service Instance remains active when calling Web Service using WCF-BasicHttp binding

    I am trying to call a web service using ESB ToolKit using a dynamic send port. The message went through all the pipeline components successfully. However, after the message is picked up by the WCF adapter, the service instance remains in "Active"
    status, and then eventually it dehydrates itself. There's no error in the event log at all. Have anyone seen this problem before? If so, what is the solution?
    I tried using a static send port with exactly the same configuration and the message reaches the web service successfully and got the response back.
    Please note the web service is RPC-Style web service, not sure if it makes a difference.
    Here is the configuration for the static send port
    <Address>http://myserver:8088/mockLoadDataBinding</Address><TransportType Name="WCF-BasicHttp" Capabilities="899" ConfigurationClsid="467c1a52-373f-4f09-9008-27af6b985f14" />
    <TransportTypeData>
    <CustomProps>
    <InboundNodeEncoding vt="8">String</InboundNodeEncoding>
    <MessageEncoding vt="8">Text</MessageEncoding>
    <ServiceCertificate vt="8" />
    <InboundBodyPathExpression vt="8">//*[local-name()='return']/node() | //*[local-name()='SecurityException']</InboundBodyPathExpression>
    <OutboundBodyLocation vt="8">UseTemplate</OutboundBodyLocation>
    <StaticAction vt="8" />
    <InboundBodyLocation vt="8">UseBodyPath</InboundBodyLocation>
    <ProxyAddress vt="8" />
    <MaxReceivedMessageSize vt="3">65536</MaxReceivedMessageSize>
    <ClientCertificate vt="8" />
    <AlgorithmSuite vt="8">Basic256</AlgorithmSuite>
    <ProxyUserName vt="8" />
    <OutboundXmlTemplate vt="8">&lt;web:loadData soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:web="http://www.company.com/webservices" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;input xsi:type="xsd:string"&gt;&lt;bts-msg-body xmlns="http://www.microsoft.com/schemas/bts2007" encoding="string"/&gt;&lt;/input&gt;&lt;/web:loadData&gt;</OutboundXmlTemplate>
    <TextEncoding vt="8">utf-8</TextEncoding>
    <PropagateFaultMessage vt="11">-1</PropagateFaultMessage>
    <SecurityMode vt="8">None</SecurityMode>
    <ProxyToUse vt="8">Default</ProxyToUse>
    <TransportClientCredentialType vt="8">None</TransportClientCredentialType>
    <OpenTimeout vt="8">00:01:00</OpenTimeout>
    <UseAcsAuthentication vt="11">0</UseAcsAuthentication>
    <MessageClientCredentialType vt="8">UserName</MessageClientCredentialType>
    <UseSSO vt="11">0</UseSSO>
    <CloseTimeout vt="8">00:01:00</CloseTimeout>
    <SendTimeout vt="8">00:01:00</SendTimeout>
    </CustomProps>
    </TransportTypeData>
    here is the configuration for the dynamic send port (using BRE Resolver)
    Set Endpoint Outbound TransportType to WCF-BasicHttp
    Set Endpoint Outbound TransportLocation to http://myserver:8088/mockLoadDataBinding
    Set Endpoint Message Exchange Pattern to Solicit-Response
    Set EndPoint WCF Action to <empty string>
    Set Endpoint Config to InboundNodeEncoding=String&amp;MessageEncoding=Text&amp;InboundBodyPathExpression=//*[local-name()='return']/node() | //*[local-name()='SecurityException']&amp;OutboundBodyLocation=UseTemplate&amp;StaticAction=&amp;InboundBodyLocation=UseBodyPath&amp;MaxReceivedMessageSize=65536&amp;AlgorithmSuite=Basic256&amp;OutboundXmlTemplate=&lt;web:loadData 
    soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  xmlns:web="http://www.company.com/webservices" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;input xsi:type="xsd:string"&gt;&lt;bts-msg-body xmlns="http://www.microsoft.com/schemas/bts2007"
    encoding="string"/&gt;&lt;/input&gt;&lt;/web:loadData&gt;&amp;TextEncoding=utf-8&amp;PropagateFaultMessage vt="11">-1&amp;SecurityMode=None&amp;ProxyToUse=Default&amp;TransportClientCredentialType=None&amp;OpenTimeout=00:01:00&amp;UseAcsAuthentication=False&amp;MessageClientCredentialType=UserName&amp;UseSSO=False&amp;CloseTimeout=00:01:00&amp;SendTimeout=00:01:00
    Set Endpoint Target Namespace to
    http://www.company.com/webservices

    Thanks Birdsven,
    I updated the Resolver policy to as follows, and still I am getting the same result.
    <then>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="4ad331d0-820c-41cb-a98e-7e1f5a9d5360" />
    <classmember member="set_TransportType" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>WCF-BasicHttp</string>
    </constant>
    </argument>
    </classmember>
    </function>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="20652bdd-c1f2-4b75-9e6b-7e20af98e66d" />
    <classmember member="set_MessageExchangePattern" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>Solicit-Response</string>
    </constant>
    </argument>
    </classmember>
    </function>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="9357b8ea-3663-4625-9681-a2fc2f423911" />
    <classmember member="set_TransportLocation" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>http://myservice.com:8089/loadDataService</string>
    </constant>
    </argument>
    </classmember>
    </function>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="9c97e7a0-d119-4b0d-8e39-2b281ae6ef8d" />
    <classmember member="set_Action" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>{loadData}</string>
    </constant>
    </argument>
    </classmember>
    </function>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="2829f1b7-09c0-4396-b82e-23fd65d8439c" />
    <classmember member="set_EndpointConfig" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>InboundNodeEncoding=String&amp;MessageEncoding=Text&amp;ServiceCertificate=&amp;InboundBodyPathExpression=//*[local-name()='return']/node() | //*[local-name()='SecurityException']&amp;OutboundBodyLocation=UseTemplate&amp;StaticAction=&amp;InboundBodyLocation=UseBodyPath&amp;ProxyAddress=&amp;MaxReceivedMessageSize=65536&amp;ClientCertificate=&amp;AlgorithmSuite=Basic256&amp;ProxyUserName=&amp;OutboundXmlTemplate=&lt;web:loadData soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:web="http://www.mycompany.com/webservices" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;input xsi:type="xsd:string"&gt;&lt;bts-msg-body xmlns="http://www.microsoft.com/schemas/bts2007" encoding="string"/&gt;&lt;/input&gt;&lt;/web:loadData&gt;&amp;TextEncoding=utf-8&amp;PropagateFaultMessage=True&amp;SecurityMode=None&amp;ProxyToUse=Default&amp;TransportClientCredentialType=None&amp;OpenTimeout=00:01:00&amp;UseAcsAuthentication=False&amp;MessageClientCredentialType=UserName&amp;UseSSO=False&amp;CloseTimeout=00:01:00&amp;SendTimeout=00:01:00</string>
    </constant>
    </argument>
    </classmember>
    </function>
    <function>
    <vocabularylink uri="95dced57-5e9b-4dbe-9cd8-4b166853dd8a" element="54624479-caea-4228-86b9-fbe188a8c64d" />
    <classmember member="set_TargetNamespace" sideeffects="true">
    <classref ref="Resolution" />
    <argument>
    <constant>
    <string>http://www.mycompany.com/webservices</string>
    </constant>
    </argument>
    </classmember>
    </function>
    </then>

  • How to call web service using J2SE 1.3?

    Dear All,
    i have developed a web service by jdev 10.1.3 (JAX-RPC with web service security
    enabled).
    i generate the ws proxy (jdev 10.1.3) and run it with wsclient_extended.jar (required JDK 1.4.1 or above??).
    but one of my client say he has to use J2SE 1.3.x (as OS=AIX 4.3 that without J2SE
    1.4.x ), could anyone tell me how can generate ws proxy (with supporting
    library) for jdk 1.3.x?
    if oracle don't have such library / tools, any third party tools / library available?
    thank you.
    lsp

    I'm found answer:
    Java and SAP Portal blog: How to call web service from java code example

  • Calling web service using ksoap2

    Hello Friends,
    I am writing a Java client which uses ksoap2. I am new to web services and ksoap2. The WSDL is like this
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://leaguematch.com/matchwatch/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://leaguematch.com/matchwatch/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://leaguematch.com/matchwatch/">
    <s:element name="WebServiceInfo">
    <s:complexType />
    </s:element>
    <s:element name="WebServiceInfoResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="WebServiceInfoResult" type="tns:Information" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="Information">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="ServiceName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="SupportPhone" type="s:string" />
    </s:sequence>
    </s:complexType>
    <s:complexType name="Credential">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
    </s:sequence>
    </s:complexType>
    <s:element name="GetScore">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="credValidate" type="tns:Credential" />
    <s:element minOccurs="1" maxOccurs="1" name="MyScript" type="tns:ScriptData" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:complexType name="ScriptData">
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="sScriptCode" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="sScriptName" type="s:string" />
    </s:sequence>
    </s:complexType>
    <s:element name="GetScoreResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="GetScoreResult" type="s:boolean" />
    <s:element minOccurs="1" maxOccurs="1" name="MyScript" type="tns:ScriptData" />
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:schema>
    </wsdl:types>
    <wsdl:message name="WebServiceInfoSoapIn">
    <wsdl:part name="parameters" element="tns:WebServiceInfo" />
    </wsdl:message>
    <wsdl:message name="WebServiceInfoSoapOut">
    <wsdl:part name="parameters" element="tns:WebServiceInfoResponse" />
    </wsdl:message>
    <wsdl:message name="GetScoreSoapIn">
    <wsdl:part name="parameters" element="tns:GetScore" />
    </wsdl:message>
    <wsdl:message name="GetScoreSoapOut">
    <wsdl:part name="parameters" element="tns:GetScoreResponse" />
    </wsdl:message>
    <wsdl:portType name="matchwatchSoap">
    <wsdl:operation name="WebServiceInfo">
    <wsdl:input message="tns:WebServiceInfoSoapIn" />
    <wsdl:output message="tns:WebServiceInfoSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetScore">
    <wsdl:input message="tns:GetScoreSoapIn" />
    <wsdl:output message="tns:GetScoreSoapOut" />
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="matchwatchSoap12" type="tns:matchwatchSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="WebServiceInfo">
    <soap12:operation soapAction="http://leaguematch.com/matchwatch/WebServiceInfo" style="document" />
    <wsdl:input>
    <soap12:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap12:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetScore">
    <soap12:operation soapAction="http://leaguematch.com/matfchwatch/GetScore" style="document" />
    <wsdl:input>
    <soap12:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap12:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="matchwatch">
    <wsdl:port name="matchwatchSoap" binding="tns:matchwatchSoap">
    <soap:address location="http://www.leaguematch.com.au/matchwatch/matchwatch.asmx" />
    </wsdl:port>
    <wsdl:port name="matchwatchSoap12" binding="tns:matchwatchSoap12">
    <soap12:address location="http://www.leaguematch.com.au/matchwatch/matchwatch.asmx" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    This is how I get the data from the web service with J2SE platform
    javax.xml.ws.Holder<com.leaguematch.matchwatch.ScriptData> myScript = new
    javax.xml.ws.Holder<com.leaguematch.matchwatch.ScriptData>();
    com.leaguematch.matchwatch.ScriptData scData = new com.leaguematch.matchwatch.ScriptData();
    scData.setSScriptCode(jTextField1.getText());
    myScript.value = scData;
    javax.xml.ws.Holder<Boolean> getScoreResult = new javax.xml.ws.Holder<Boolean>();
    port.getScore(credValidate, myScript, getScoreResult);
    What is the equivalent for JavaME platform? This is what I tried.
    SoapObject credential = new SoapObject(nameSpace, "Credential");
    credential.addProperty("Email", new String("[email protected]"));
    credential.addProperty("Password", new String("[email protected]"));
    SoapObject scriptData = new SoapObject(nameSpace, "ScriptData");
    scriptData.addProperty("sScriptCode", new String("GROUND1"));
    request.addProperty("credValidate", credential );
    request.addProperty("MyScript", scriptData);
    request.addProperty("getScoreResult", getScoreResult);
    // serialize the envelope
    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
    envelope.bodyOut = request;
    envelope.setOutputSoapObject(request);
    //make the call
    // set up the transport
    HttpTransport ht = new HttpTransport(endPointURL);
    ht.debug = true;
    ht.call("http://leaguematch.com/matchwatch/GetScore", envelope);
         The server responded
         SoapFault - faultcode: 'soap:Server' faultstring: 'System.Web.Services.Protocols.SoapException:
         Server was unable to process request. ---> System.Exception: You must pass Script Code in
         MyScript.sScriptCode:=ScriptData.sScriptCode to execute GetScore successfully
    I am able to get data using "WebServiceInfoResponse" method.
    But to getScore, I don't know how to pass the credential and scriptData to the web services and get its result ?
    Please help
    Sudheer Palaprambil

    Hello,
    I am not able to access the link you posted about calling a web service. Could please share your code again ?
    Thanks in advance for your help...
    Lionel

  • Can any one show me how to call web service using soap lite mod perl client

    Hi,  Experts
    SAP is new for me and now I need to develop a perl client using soap lite, I have read "HOWTO: SCRIPTING LANGUAGE SUPPORT FOR SAP SERVICES - PERL" but not quit understand that. Can some one show me a real perl client example?
    I enclosed the wsdl file generated from SAP web service.
    <?xml version="1.0" encoding="utf-8" ?>
    - <wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:sap-com:document:sap:rfc:functions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <wsdl:types>
    - <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions" elementFormDefault="unqualified" attributeFormDefault="qualified">
    - <xsd:element name="Z_RFC_WEBSERVICE">
    - <xsd:complexType>
      <xsd:sequence />
      </xsd:complexType>
      </xsd:element>
    - <xsd:element name="Z_RFC_WEBSERVICEResponse">
    - <xsd:complexType>
    - <xsd:sequence>
      <xsd:element name="EV_STRING" type="xsd:string" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:schema>
      </wsdl:types>
    - <wsdl:message name="Z_RFC_WEBSERVICE">
      <wsdl:part name="parameters" element="tns:Z_RFC_WEBSERVICE" />
      </wsdl:message>
    - <wsdl:message name="Z_RFC_WEBSERVICEResponse">
      <wsdl:part name="parameters" element="tns:Z_RFC_WEBSERVICEResponse" />
      </wsdl:message>
    - <wsdl:portType name="Z_RFC_WEBSERVICE">
    - <wsdl:operation name="Z_RFC_WEBSERVICE">
      <wsdl:input message="tns:Z_RFC_WEBSERVICE" />
      <wsdl:output message="tns:Z_RFC_WEBSERVICEResponse" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="Z_RFC_WEBSERVICESoapBinding" type="tns:Z_RFC_WEBSERVICE">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="Z_RFC_WEBSERVICE">
      <soap:operation soapAction="" />
    - <wsdl:input>
      <soap:body use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:service name="Z_RFC_WEBSERVICEService">
    - <wsdl:port name="Z_RFC_WEBSERVICESoapBinding" binding="tns:Z_RFC_WEBSERVICESoapBinding">
      <soap:address location="http://darkwind:9080/sap/bc/srt/rfc/sap/Z_RFC_WEBSERVICE?sap-client=800" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>
    Thanks for your help!

    now I know how to call from perl tool,
    #!/usr/bin/perl -wd
    use SOAP::Lite;
        use SOAP::Lite +trace;
       my $client = SOAP::Lite->new();
       $client->uri('urn:Z_RFC_WEBSERVICE');
       $client->on_action(sub {return'""'});
       $client->proxy('http://darkwind:9080/sap/bc/srt/rfc/sap/Z_RFC_WEBSERVICE?sap-client=800');
       my $som = $client->Z_RFC_WEBSERVICE();
       my $output = $som->result;
       print $output  "\n";
    but I got "Operation not supported" error when executing 
    my $som = $client->Z_RFC_WEBSERVICE();
    here is trace:
    SOAP::Transport::new: ()
    SOAP::Serializer::new: ()
    SOAP::Deserializer::new: ()
    SOAP::Parser::new: ()
    SOAP::Lite::new: ()
    SOAP::Transport::HTTP::Client::new: ()
    SOAP::Lite::call: ()
    SOAP::Serializer::envelope: ()
    SOAP::Serializer::envelope: Z_RFC_WEBSERVICE testtypesZ_RFC_WEBSERVICE
    SOAP::Data::new: ()
    SOAP::Data::new: ()
    SOAP::Data::new: ()
    SOAP::Data::new: ()
    SOAP::Data::new: ()
    SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x93f14a4)
    SOAP::Transport::HTTP::Client::send_receive: POST http://darkwind:9080/sap/bc/srt/rfc/sap/Z_RFC_WEBSERVICE?sap-client=800 HTTP/1.1
    Accept: text/xml
    Accept: multipart/*
    Content-Length: 552
    Content-Type: text/xml; charset=utf-8
    SOAPAction: ""
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><namesp1:Z_RFC_WEBSERVICE xmlns:namesp1="urn:Z_RFC_WEBSERVICE"><c-gensym3 xsi:type="xsd:string">testtypesZ_RFC_WEBSERVICE</c-gensym3></namesp1:Z_RFC_WEBSERVICE></SOAP-ENV:Body></SOAP-ENV:Envelope>
    SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x93eb288)
    SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal Server Error
    Server: SAP Web Application Server (1.0;700)
    Content-Length: 264
    Content-Type: text/xml; charset=utf-8
    Client-Date: Sat, 14 Feb 2009 19:33:50 GMT
    Client-Peer: 146.225.80.176:9080
    Client-Response-Num: 1
    Sap-Srt-Id: 20090214/113349/v1.00_final_6.40/49958133C5E634E8E100000092E150B0
    Set-Cookie: sap-usercontext=sap-client=800; path=/
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang="en">Operation not supported</faultstring></soap-env:Fault></soap-env:Body></soap-env:Envelope>
    SOAP::Deserializer::deserialize: ()
    SOAP::Parser::decode: ()
    SOAP::SOM::new: ()
    Can't use an undefined value as a symbol reference at ./sapClient.pl line 10.
    SOAP::Lite::DESTROY: ()
    SOAP::Deserializer::DESTROY: ()
    SOAP::Parser::DESTROY: ()
    SOAP::Transport::DESTROY: ()
    SOAP::Transport::HTTP::Client::DESTROY: ()
    SOAP::Serializer::DESTROY: ()
    SOAP::Data::DESTROY: ()
    SOAP::Data::DESTROY: ()
    SOAP::Data::DESTROY: ()
    SOAP::Data::DESTROY: ()
    SOAP::Data::DESTROY: ()
    SOAP::SOM::DESTROY: ()
    Ran SAP Web Service Navigator Test 'Z_RFC_WEBSERVICE' OK
    Can someone help?
    Thanks!

  • Cosuming web service using consumer proxy - not getting the output

    Hello All,
    I am not getting the consumer proxy output structue filled though the web service is successfully executed. I did the following steps.
    1. Created a webservice form RFC BAPISDORDER_GETDETAILEDLIST
    2. Created a consumer proxy for the above created WSDL document.
    3. Tested the service by executing the proxy directly by feeding the input in the XML (sales document and partner view). it is working fine
    4. Created a program to access the consumer proxy by passing the input(same input as per XML). I am not getting the output in the proxy output structure ( but I can see the RFC is successfully executed and having the right values in the debugging mode).
    Is this the issue is due to the date fields (XML cannot consider a blank date )?
    Please note: the partner output table parameter in the bapi (output I am looking for ) is not having any date fields.
    Please help me to sort out this issue.
    Thanks,
    Gopi

    Hi Gopi,
    From your description, I assume you used the SE37 transaction's menu option Utilities -> More Utilities -> Create Web Service -> From the Function Module, to expose the BAPI concerned as a Web Service.
    If this is the case, then it is possible that you are falling foul of your SAP User ID not having the necessary Remote Function Call authorization to execute the BAPI.
    A prerequisite for successfully calling an RFC-enabled Function Module (which is what a BAPI is) is that the User ID used to call the function module must have the required RFC authorization (Authorization Object S_RFC).  For example, when calling function module BAPI_CUSTOMER_GET_ROOT, if the User ID lacks the requisite authorization in the target system, the following error message will be received by the Consuming application:
        User <User ID> has no RFC authorization for function group V02HBAPI.
    Notice, as you can see from the above message, RFC execution authorization is implemented at the Function Group level, not at the Function Module level.  In othere words, granting a user the authorization to a function group (authorization object S_RFC) enables the user to execute all RFC-enabled function modules contained within that function group.
    I am guessing the BAPI works for you in debug mode because you are not calling the BAPI remotely.
    Let me know if this helps.
    Best Regards,
    Andy.

  • How to call Web Service using http?

    Hello everyone,
    I have created a web service in weblogic 8.1sp4. The web service is deployed and in the test page in the administration console I see that the wsdl is sth like
    http://localhost:6101/SomeWebService/SomeWebService/SomeWebService?WSDL
    How is it possible to call the web service operation (let's say someOperation) using http? The problem is that the client which will call the operation is not a java or .net one and is needs to do the call using a URL. I have tried sth like
    http://localhost:6101/SomeWebService/SomeWebService/SomeWebService?string=somestring&operation.invoke=someOperation which is the URL used in the test page in the administration console and although it works, instead of getting the SOAP response back I get the whole html page returned by the test page.
    Please help me,
    Thanks,
    Yiannis

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Consuming a web service using UTL_HTTP, Complex XML types

    this is the first time i have encountered a complex type calling a web service from PLSQL. i have sucsessfully called other methods from this same web service so i know its working.
    this is what i have to pass in:
    <xs:complexType name="AddJobRequestStructure">
    <xs:sequence>
    <xs:element name="AffectedUnits" type="ro:UnitIdentificationStructureArray" />
    <xs:element name="ServiceCode" type="xs:string" />
    <xs:element name="RecordTypeCode" type="xs:string" />
    <xs:element name="MultipleDescriptionCodes" type="ro:DescriptionSeverityStructureArray" />
    </xs:sequence>
    </xs:complexType>
    concentraiting on the parameter "AffectedUnits" type =
    <xs:complexType name="UnitIdentificationStructure">
    <xs:sequence>
    <xs:element name="UnitID" type="xs:string" />
    <xs:element name="StreetID" type="xs:string" />
    <xs:element name="UniqueStreetReferenceNumber" type="xs:string" />
    <xs:element name="UnitNumber" type="xs:string" />
    <xs:element name="Location" type="xs:string" />
    <xs:element name="PAON" type="ro:AONstructure" />
    <xs:element name="Easting" type="xs:double" />
    <xs:element name="Northing" type="xs:double" />
    </xs:sequence>
    </xs:complexType>
    for simple types i build the XML such as:
    request.body := request.body||'<ServiceCode xsi:type="xs:string">'||some_value||'</ServiceCode>';
    (request being a type that holds the namespace,method,body and envelope tag)
    just to re-itterate, i have other web service methods (from the same web service) working this way, however im not sure where to start with this complex type, so any help would be great
    Cheers.

    Thanks for the response, I’m not familiar with XML or web services so I appreciate the input. There is indeed an intermediate type. The web service documentation I have does state that the complex type can take multiple records, however we will only ever be passing one, it was this mention of an array that threw me, i asumed the array was the complex type - rather than there being an array of complext types for the handling of multiple records.
    <xs:complexType name="UnitIdentificationStructureArray">
    <xs:complexContent>
    <xs:restriction base="soapenc:Array">
    <xs:sequence />
    <xs:attribute ref="soapenc:arrayType" n1:arrayType="ro:UnitIdentificationStructure[]" xmlns:n1="http://schemas.xmlsoap.org/wsdl/" />
    </xs:restriction>
    </xs:complexContent>
    </xs:complexType>
    I assumed I had to pass each element of the complex type in separately and then reference this somehow in the parent, but it sound like, from what you say, I can just pass in XML containing the data in the correct structure
    Could you give me a basic example of how this XML fragment might look?
    Apologies for the lack of understanding - XML is failry new to me, this is as far as i have got
    Cheers

  • Call web service using Java code

    Hi all,
    Sorry if this question sounds stupid. I am new to web services.
    I am having a web service written in oracle, using soap-api. I want to call this web service in Java application, parse the result and save it in the database.
    Can anyone please guide me on this or give me some related link. I tried searching on google, tried to implement some of the solutions I got in search results, but it was not that helpful.
    Waiting for your help. Please guide me through this.
    Waiting for your replies. Thanks in advance.
    Regards,
    Kinnaree

    Hi all,
    From my java code, I tried giving
    String testStr = service.search("and formatted_address like '%Test House%'");
    This service method is defined on my SearchPortType.java file. This and the searchClient.java, as I mentioned earlier are auto generated files by myeclipse IDE. I gave WSDL URL, which generated these two files.
    This helped me invoking the service, but it gives me an exception as below:
    Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message.
    org.codehaus.xfire.fault.XFireFault: Couldn't send message.
         at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
         at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:30)
         at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
         at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
         at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
         at org.codehaus.xfire.client.Client.invoke(Client.java:336)
         at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
         at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
         at $Proxy8.search(Unknown Source)
         at com.imriel.client.cbre.chelsea.util.test.searchClient.main(searchClient.java:104)
    Caused by: org.codehaus.xfire.XFireException: Couldn't send message.
         at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:145)
         at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
         at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
         ... 8 more
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
         at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)
         at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
         at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
         at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
         at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
         at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:369)
         at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
         ... 10 more
    Any ideas, where I am wrong????
    Regards,
    Kinnaree

  • Calling web services using AIR html/ajax

    i want to call a webservice and currently using Adobe air
    ajax/html.
    can anybody please guide with some sample code like how to do
    that in adobe air?

    Does it have to be a double-you-ess-star "WebService"? If so,
    why? The whole WS* abortion was cooked up by CORBA/DCOM types who
    didn't actually get why the web works so well. They went and turned
    it into something that requires a heavyweight programming
    environment just to get started.
    If your web service -- lowercase letters -- is RESTful, you
    can call it from Ajax naturally. This is how most of the mashups on
    the web work. It's pure XHR, no AIR/Flex involved.

  • Error while calling web service using BPEL

    I am trying to deploy my java program as webservice.
    When I am running my web service it showing following exception.
    can anybody help me out.
    D:\OraBPELPM\jdk\bin\javaw.exe -jar D:\OraBPELPM\integration\bpelpm\designer\j2ee\home\admin.jar ormi://10.119.4.176:23891 admin **** -updateConfig
    05/05/25 11:04:49 Error initializing data-source 'jdbc/DBConnectionOliteCoreDSCoreDS': DriverManagerDataSource driver 'oracle.lite.poljdbc.POLJDBCDriver' not found
    05/05/25 11:04:49 ApplicationServer: appName = bc4j
    05/05/25 11:04:49 ApplicationServer: appName = current-workspace-app
    Ready message received from Oc4jNotifier.
    05/05/25 11:04:49 Error initializing data-source 'jdbc/DBConnectionOliteCoreDSCoreDS': DriverManagerDataSource driver 'oracle.lite.poljdbc.POLJDBCDriver' not found
    05/05/25 11:04:49 Error updating application current-workspace-app: Error initializing ejb-module; Exception Unable to find/read assembly info for D:\OraBPELPM\integration\bpelpm\designer\jdev\mywork\MyWorkspace\TestMail\output (META-INF/ejb-jar.xml)
    05/05/25 11:04:50 Auto-deploying file:/D:/OraBPELPM/integration/bpelpm/designer/jdev/mywork/MyWorkspace/TestMail/public_html/ (New server version detected)...
    05/05/25 11:04:50 Auto-deploying file:/D:/OraBPELPM/integration/bpelpm/designer/jdev/mywork/MyWorkspace/SyncHelloWorld/public_html/ (New server version detected)...
    05/05/25 11:04:50 Auto-deploying file:/D:/OraBPELPM/integration/bpelpm/designer/jdev/mywork/MyWorkspace/JavaMail/public_html/ (New server version detected)...
    Embedded OC4J startup time: 4547 ms.
    The application can be accessed at location:
    http://10.119.4.176:8988/MyWorkspace-JavaMail-context-root/MyWebService1
    05/05/25 11:04:50 Web service MyWebService1 has been started on the embedded server
    D:\OraBPELPM\integration\bpelpm\designer\jdev\system10.1.2.0.0.1811\oc4j-config\application-deployments\current-workspace-app\MyWorkspace-JavaMail-webapp\temp\__java_stateless_rpc\mypackage1\__EmailerStatelessWrapper.java:47: error #365: cannot compare mypackage1.Emailer with oracle.j2ee.ws.HeaderCallback
    return (target instanceof HeaderCallback);
    ^
    D:\OraBPELPM\integration\bpelpm\designer\jdev\system10.1.2.0.0.1811\oc4j-config\application-deployments\current-workspace-app\MyWorkspace-JavaMail-webapp\temp\__java_stateless_rpc\mypackage1\__EmailerStatelessWrapper.java:71: error #365: cannot compare mypackage1.Emailer with oracle.j2ee.ws.HeaderCallback
    if ((hdrs != null) && (target instanceof HeaderCallback)) {
    ^
    2 errors
    05/05/25 11:05:18 javax.servlet.ServletException: Cannot generate Class:
    05/05/25 11:05:18      at oracle.j2ee.ws.RpcWebService.generateWrapperClass(RpcWebService.java:493)
    05/05/25 11:05:18      at oracle.j2ee.ws.RpcWebService.generate(RpcWebService.java:414)
    05/05/25 11:05:18      at oracle.j2ee.ws.RpcWebService.getWrapper(RpcWebService.java:532)
    05/05/25 11:05:18      at oracle.j2ee.ws.RpcWebService.doGetRequest(RpcWebService.java:631)
    05/05/25 11:05:18      at oracle.j2ee.ws.BaseWebService.doGet(BaseWebService.java:1173)
    05/05/25 11:05:18      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    05/05/25 11:05:18      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    05/05/25 11:05:18      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    05/05/25 11:05:18      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    05/05/25 11:05:18      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
    05/05/25 11:05:18      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    05/05/25 11:05:18      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    05/05/25 11:05:18      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    05/05/25 11:05:18      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    05/05/25 11:05:18      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    05/05/25 11:05:18      at java.lang.Thread.run(Thread.java:534)

    Please post your query in forum "http://forums.oracle.com/forums/forum.jsp?forum=46"

Maybe you are looking for

  • Click Wheel iPod not recognized by Vista Retail

    I have a 20gb click wheel ipod that Vista v6.0 does not recognize in device manager. iTunes does not recognize the unit either. I'm surprised that Apple has not addressed the problem comprehesively but rather suggests generic fixes for all their prod

  • After recent QuickTime updates fcp and QuickTime will not open .mov files captured on my FS-H200. Iran

    After recent QuickTime updates fcp and QuickTime will not open .mov files captured on my FS-H200. I put this onthe quick time thread and they sent me here.

  • XML ContentHandler (URGENT)

    import org.xml.sax.*; import org.xml.sax.helpers.*; import javax.xml.parsers.*; public class BandRead {      public void read() throws Exception {           SAXParserFactory spf = SAXParserFactory.newInstance();           XMLReader parser = null;    

  • Sender Agreement SWIFT Configuration

    Hi Guys, I need your expertise regarding the SAP SWIFT configuration, i am following a PDF file (ConfGuide_SWIFT_602_v0_4.pdf). Basically, this is what I have done so far. 1. Create a business service and modifying the receiver tab page according to

  • Button for Badi Script in input schdule

    Hi, Is there any way , where i can add Button for my Script in the input schedule.(BPC 7.0) Regards, Sanjeev Kumar