Problem in consuming the Web service throgh "Onload" of the applicatuon.

hi , when i consume web service "onload" of the application ,
i am unable to retrive the last result .
but when i consume the same web service "onclick" event of a
button , i am able to get the last result.
Can i consume a web service from "onload" of the application
Any suggetions or workaround will be appriciated.
Thanks in advance.
Regards
Shashi

you need to register an result handler as requests are async
so when you the load the results are not instant so declare a
result handler and get the results from there

Similar Messages

  • Problems while consuming a web-service through Netweaver using VPN

    Hi all
    I'm facing a problem while I'm attempting to consume a .NET web-service that is located in a remote server. We've estabished a VPN connection between our Netweaver CE in Linux to the remote office where the web-service is running.
    The problem is, when my application running in Netweaver tries to consume the webservice, it takes the external access to try to reach the webservice URL instead of take the VPN route to do that. ie. my application find an external IP of the webservice instead of finding the internal IP.
    When I ping the webservice URL in linux, it brings me the internal IP, but for some unknown reason, the Netweaver don't find the correct route to reach the webservice.
    Does anyone have any idea or suggestion on what to do?
    Thanks in advance!

    > The problem is, when my application running in Netweaver tries to consume the webservice, it takes the external access to try to reach the webservice URL instead of take the VPN route to do that. ie. my application find an external IP of the webservice instead of finding the internal IP.
    You're using a proxy?
    Markus

  • Problem in Consuming a Web Service running on Remedy

    Hi All – We have a web service running on ARSystem (
    Remedy) and all we would like to do is –
    -Invoke this web service from our Coldfusion page
    -Send some parameters in a method call for ‘Remedy
    WS’
    -This Webservice returns a simple String object.
    The WSDL looks like this..
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wsdl:definitions
    targetNamespace="urn:CHG_Change_WebService_OpCreate_DisplayOnly_v2"
    xmlns="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:s="urn:CHG_Change_WebService_OpCreate_DisplayOnly_v2"
    xmlns:soap="
    http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soapenc="
    http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema">
    - <wsdl:types>
    - <xsd:schema elementFormDefault="qualified"
    targetNamespace="urn:CHG_Change_WebService_OpCreate_DisplayOnly_v2">
    <xsd:element name="OpCreate" type="s:CreateInputMap"
    />
    - <xsd:complexType name="CreateInputMap">
    - <xsd:sequence>
    <xsd:element name="Description" type="xsd:string" />
    <xsd:element name="Requester_Login_Name"
    type="xsd:string" />
    <xsd:element name="Requester_Name" type="xsd:string"
    />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OpCreateResponse"
    type="s:CreateOutputMap" />
    - <xsd:complexType name="CreateOutputMap">
    <xsd:sequence />
    </xsd:complexType>
    <xsd:element name="AuthenticationInfo"
    type="s:AuthenticationInfo" />
    - <xsd:complexType name="AuthenticationInfo">
    - <xsd:sequence>
    <xsd:element name="userName" type="xsd:string" />
    <xsd:element name="password" type="xsd:string" />
    <xsd:element minOccurs="0" name="authentication"
    type="xsd:string" />
    <xsd:element minOccurs="0" name="locale"
    type="xsd:string" />
    <xsd:element minOccurs="0" name="timeZone"
    type="xsd:string" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </wsdl:types>
    - <wsdl:message name="OpCreateSoapOut">
    <wsdl:part element="s:OpCreateResponse" name="parameters"
    />
    </wsdl:message>
    - <wsdl:message name="ARAuthenticate">
    <wsdl:part element="s:AuthenticationInfo"
    name="parameters" />
    </wsdl:message>
    - <wsdl:message name="OpCreateSoapIn">
    <wsdl:part element="s:OpCreate" name="parameters" />
    </wsdl:message>
    - <wsdl:portType
    name="CHG_Change_WebService_OpCreate_DisplayOnly_v2PortType">
    - <wsdl:operation name="OpCreate">
    <wsdl:input message="s:OpCreateSoapIn" />
    <wsdl:output message="s:OpCreateSoapOut" />
    </wsdl:operation>
    </wsdl:portType>
    - <wsdl:binding
    name="CHG_Change_WebService_OpCreate_DisplayOnly_v2SoapBinding"
    type="s:CHG_Change_WebService_OpCreate_DisplayOnly_v2PortType">
    <soap:binding style="document" transport="
    http://schemas.xmlsoap.org/soap/http"
    />
    - <wsdl:operation name="OpCreate">
    <soap:operation
    soapAction="urn:CHG_Change_WebService_OpCreate_DisplayOnly_v2/OpCreate"
    style="document" />
    - <wsdl:input>
    <soap:header message="s:ARAuthenticate" part="parameters"
    use="literal" />
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:service
    name="CHG_Change_WebService_OpCreate_DisplayOnly_v2Service">
    - <wsdl:port
    binding="s:CHG_Change_WebService_OpCreate_DisplayOnly_v2SoapBinding"
    name="CHG_Change_WebService_OpCreate_DisplayOnly_v2Soap">
    <soap:address location="
    http://<ServerName>/arsys/services/ARService?server=<ServerName>&webService=CHG_Change_Web Service_OpCreate_DisplayOnly_v2"
    />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    My CF invocation is as given below..
    <cfscript>
    Ws=CreateObject("webservice","
    http://<servername>/arsys/WSDL/public/<servername>/CHG_Change_WebService_OpCreate_DisplayO nly_v2");
    result= ws.opCreate("test1","TEST2","test3");
    </cfscript>
    <cfoutput>|#result#|</cfoutput>
    AND I am getting this error below..
    Could not generate stub objects for web service invocation.
    Name:
    http://<servername>/arsys/WSDL/public/<servername>/CHG_Change_WebService_OpCreate_DisplayO nly_v2.
    WSDL:
    http://
    <servername>/arsys/WSDL/public/<servername>/CHG_Change_WebService_OpCreate_DisplayOnly_v2 .
    java.lang.NullPointerException It is recommended that you use a web
    browser to retrieve and examine the requested WSDL document for
    correctness. If the requested WSDL document can't be retrieved or
    it is dynamically generated, it is likely that the target web
    service has programming errors.
    Java Stack trace:
    java.lang.NullPointerException
    at
    org.apache.axis.wsdl.toJava.Utils.getNewQNameWithLastLocalPart(Utils.java:933)
    at
    org.apache.axis.wsdl.toJava.JavaStubWriter.writeOperationMap(JavaStubWriter.java:610)
    at
    org.apache.axis.wsdl.toJava.JavaStubWriter.writeFileBody(JavaStubWriter.java:169)
    at
    org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:130)
    at
    org.apache.axis.wsdl.toJava.JavaBindingWriter.generate(JavaBindingWriter.java:147)
    at
    org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.ja va:423)
    at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:471)
    at org.apache.axis.wsdl.gen.Parser.run(Parser.java:395)
    at org.apache.axis.wsdl.toJava.Emitter.run(Emitter.java:611)
    at
    coldfusion.xml.rpc.XmlRpcServiceImpl$1.run(XmlRpcServiceImpl.java:213)
    at java.security.AccessController.doPrivileged(Native
    Method)
    at
    coldfusion.xml.rpc.XmlRpcServiceImpl.registerWebService(XmlRpcServiceImpl.java:198)
    at
    coldfusion.xml.rpc.XmlRpcServiceImpl.getWebService(XmlRpcServiceImpl.java:472)
    at
    coldfusion.xml.rpc.XmlRpcServiceImpl.getWebServiceProxy(XmlRpcServiceImpl.java:427)
    at
    coldfusion.xml.rpc.XmlRpcServiceImpl.getWebServiceProxy(XmlRpcServiceImpl.java:409)
    at coldfusion.runtime.CFPage.createObject(CFPage.java:5993)
    at coldfusion.runtime.CFPage.CreateObject(CFPage.java:5848)
    at coldfusion.runtime.CFPage.CreateObject(CFPage.java:5813)
    at
    cftest1252ecfm1199621501.runPage(D:\Inetpub\wwwroot\Pearsontc\sandytest\test125.cfm:11)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:210)
    at
    coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:50)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:105)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Would be sincerely thankful to ALL who could help me in
    resolving my problem as it’s a deadline for me today and I
    have some testing left to be done on some other modules as well.
    PLEASE PLEASE HELP!!
    Thanks.
    -S

    Ian, Thanks but service is running on REMEDY system and is
    written in Java. The new wsdl looks like this..( Please check the
    complex type input and return parameter). I cannot change the
    service permissions as its not in our control
    http://oldtas184/arsys/WSDL/
    <?xml version="1.0" encoding="UTF-8" ?>
    - <wsdl:definitions
    targetNamespace="urn:CHG_Change_WebService_OpCreate_DisplayOnly_v2"
    xmlns="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:s="urn:CHG_Change_WebService_OpCreate_DisplayOnly_v2"
    xmlns:soap="
    http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soapenc="
    http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema">
    - <wsdl:types>
    - <xsd:schema elementFormDefault="qualified"
    targetNamespace="urn:CHG_Change_WebService_OpCreate_DisplayOnly_v2">
    <xsd:element name="OpCreate" type="s:CreateInputMap"
    />
    - <xsd:complexType name="CreateInputMap">
    - <xsd:sequence>
    <xsd:element name="Description" type="xsd:string" />
    <xsd:element name="Requester_Login_Name"
    type="xsd:string" />
    <xsd:element name="Requester_Name" type="xsd:string"
    />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="OpCreateResponse"
    type="s:CreateOutputMap" />
    - <xsd:complexType name="CreateOutputMap">
    - <xsd:sequence>
    <xsd:element name="Description" type="xsd:string" />
    <xsd:element name="Requester_Login_Name"
    type="xsd:string" />
    <xsd:element name="Requester_Name" type="xsd:string"
    />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="AuthenticationInfo"
    type="s:AuthenticationInfo" />
    - <xsd:complexType name="AuthenticationInfo">
    - <xsd:sequence>
    <xsd:element name="userName" type="xsd:string" />
    <xsd:element name="password" type="xsd:string" />
    <xsd:element minOccurs="0" name="authentication"
    type="xsd:string" />
    <xsd:element minOccurs="0" name="locale"
    type="xsd:string" />
    <xsd:element minOccurs="0" name="timeZone"
    type="xsd:string" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </wsdl:types>
    - <wsdl:message name="OpCreateSoapOut">
    <wsdl:part element="s:OpCreateResponse" name="parameters"
    />
    </wsdl:message>
    - <wsdl:message name="ARAuthenticate">
    <wsdl:part element="s:AuthenticationInfo"
    name="parameters" />
    </wsdl:message>
    - <wsdl:message name="OpCreateSoapIn">
    <wsdl:part element="s:OpCreate" name="parameters" />
    </wsdl:message>
    - <wsdl:portType
    name="CHG_Change_WebService_OpCreate_DisplayOnly_v2PortType">
    - <wsdl:operation name="OpCreate">
    <wsdl:input message="s:OpCreateSoapIn" />
    <wsdl:output message="s:OpCreateSoapOut" />
    </wsdl:operation>
    </wsdl:portType>
    - <wsdl:binding
    name="CHG_Change_WebService_OpCreate_DisplayOnly_v2SoapBinding"
    type="s:CHG_Change_WebService_OpCreate_DisplayOnly_v2PortType">
    <soap:binding style="document" transport="
    http://schemas.xmlsoap.org/soap/http"
    />
    - <wsdl:operation name="OpCreate">
    <soap:operation
    soapAction="urn:CHG_Change_WebService_OpCreate_DisplayOnly_v2/OpCreate"
    style="document" />
    - <wsdl:input>
    <soap:header message="s:ARAuthenticate" part="parameters"
    use="literal" />
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:service
    name="CHG_Change_WebService_OpCreate_DisplayOnly_v2Service">
    - <wsdl:port
    binding="s:CHG_Change_WebService_OpCreate_DisplayOnly_v2SoapBinding"
    name="CHG_Change_WebService_OpCreate_DisplayOnly_v2Soap">
    <soap:address location="
    http://oldtas184/arsys/services/ARService?server=OLDTAS184&webService=CHG_Change_WebServic e_OpCreate_DisplayOnly_v2"
    />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    I have modified my code a little to use a struct object and
    the code looks as below..
    <cfscript> CreateInputMap1 = structNew();
    CreateInputMap1.Description = "test";
    CreateInputMap1.Requester_Login_Name = "xxxxxx";
    CreateInputMap1.Requester_Name = "yyyyyyy";
    ws=CreateObject("webservice","
    http://oldtas184/arsys/WSDL/public/OLDTAS184/CHG_Change_WebService_OpCreate_DisplayOnly_v2 ?wsdl");
    result= ws.opCreate(CreateInputMap1);
    </cfscript>
    <cfoutput>#result#</cfoutput>
    But I still receive the same error..
    Error Occurred While Processing Request
    Could not generate stub objects for web service invocation.
    Name:
    http://oldtas184/arsys/WSDL/public/OLDTAS184/CHG_Change_WebService_OpCreate_DisplayOnly_v2 ?wsdl.
    WSDL:
    http://oldtas184/arsys/WSDL/public/OLDTAS184/CHG_Change_WebService_OpCreate_DisplayOnly_v2 ?wsdl.
    java.lang.NullPointerException It is recommended that you use a web
    browser to retrieve and examine the requested WSDL document for
    correctness. If the requested WSDL document can't be retrieved or
    it is dynamically generated, it is likely that the target web
    service has programming errors.
    The error occurred in
    D:\Inetpub\wwwroot\Pearsontc\sandytest\test125.cfm: line 18
    16 : CreateInputMap1.Requester_Name = "Vohra";
    17 :
    18 : ws=CreateObject("webservice","
    http://oldtas184/arsys/WSDL/public/OLDTAS184/CHG_Change_WebService_OpCreate_DisplayOnly_v2 ?wsdl");
    19 : // addSOAPRequestHeader(ws, "
    http://oldtas184/arsys/WSDL/public/OLDTAS184/CHG_Change_WebService_OpCreate_DisplayOnly_v2 /",
    "Description", "test", false);
    20 : // addSOAPRequestHeader(ws, "
    http://oldtas184/arsys/WSDL/public/OLDTAS184/CHG_Change_WebService_OpCreate_DisplayOnly_v2 /",
    "Requester_Login_Name", "John", false);
    Stack Trace (click to expand)
    at
    cftest1252ecfm1199621501.runPage(D:\Inetpub\wwwroot\Pearsontc\sandytest\test125.cfm:18)
    at
    cftest1252ecfm1199621501.runPage(D:\Inetpub\wwwroot\Pearsontc\sandytest\test125.cfm:18)
    java.lang.NullPointerException
    at
    org.apache.axis.wsdl.toJava.Utils.getNewQNameWithLastLocalPart(Utils.java:933)
    at
    org.apache.axis.wsdl.toJava.JavaStubWriter.writeOperationMap(JavaStubWriter.java:610)
    at
    org.apache.axis.wsdl.toJava.JavaStubWriter.writeFileBody(JavaStubWriter.java:169)
    at org.apache.axis.wsdl.toJava.JavaWriter.generate
    The REMEDY logs has this message - "Required element expected
    in the input XML document":

  • Setting up the Soap Header when consuming a web service.

    Hi SDN,
    I am trying to consume a web service,where I need to pass the soap header for sending the request to the sever.
    I am using if_ws_protocol_ws_header->SET_REQUEST_HEADER to set the Username and Password to the soap header. After a lot of trouble shooting I came to conclusion that the Username and Password are not being updated in soap header.
    I want to know how to set the soap header? I have tested the web service in the SOAP UI testing tool and it works fine taking the credentials. The webservice is using HTTPS protocol.Do we have any separate config for https. Do I need to pass the nonce and date created in the soap header for sure ? And is there any thing to be configured by basis team?
    Here is what I am trying to pass:
    ' <soapenv:Header>'
          '<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">'
             '<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">'
                '<wsse:Username>XXXXXXX</wsse:Username>'
                '<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXXX</wsse:Password>'
                '</wsse:UsernameToken>'
         ' </wsse:Security>'
          '/soapenv:Header>'
    Thank you.

    CONCATENATE
    '<soapenv:Header>'
    '<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"'
    'xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"'
    'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">'
    '<wsse:UsernameToken>'
    '<wsse:Username>XXXXXX</wsse:Username>'
    '<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXXXX</wsse:Password>'
    '<wsse:Nonce>' XXXXX'</wsse:Nonce>'
    '<wsu:Created>' XXXXX '</wsu:Created>'
    '</wsse:UsernameToken>'
    '</wsse:Security>'
    '</soapenv:Header>'
       INTO l_string.
    I solved my self and its working , Here is what I was passed.
    Thank you guys.

  • No result while creating a service consumer with Web Service Wizzard

    Hi,
    I've tried to create a service consumer with Web Service Wizzard in SE80 by using URL/HTTP Destination but nothing happens. After the popup with logondata for the WSDL I get the CRM start screen and nothing has been created in the given package.
    technical details:
    I use a CRM 5.0 system with SP15 (SAPKB70015).
    I created the provider service at a 7.10 system with SP5 (SAPKB71005) via SPROXY, SOAMANAGER and WSPUBLISH and get the WSDL-URL from Service Registry.
    The Service Registry of the 7.10 system serves as central Service Registry.
    Has anybody an idea ?
    Christoph

    Guy,
    Thanks for your reply.
    This problem has been solved. Since I haven't turned on everything that to use transaction SOAMANAGER needs. After complete the switch-on works, the problem never happens again.
    Thanks again.

  • Issue in consuming a web service

    Hi All,
    We are consuming a  Web service ( Microsoft Share point ) through our Web dynpro Application.
    Every time we consume the web service , there is a popup for authentication to connect to the Share point server. The problem  is that  the popup actually appears in the SAP GUI client and not  as a web based popup hence it does not appear in the Web dynpro Application.
    On analysis in SOA MANAGER , it was found that the Logical Port that we make use of to connect to the Web service has a configuration of entering the User Name and a password.
    The Question is, Is it Mandatory to supply login credentials to the server from which the web service is consumed ? or is there any other configuration/setting  where we can consume the web service without login credentials ?.
    Any pointers/OSS notes are very much Appreciated.
    Thanks !

    hi,
    check  out these links :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    I hope u shud b clear wid ur query

  • Consuming a Web Service with ABAP in WAS 6.40 (SS3)

    Hi Everyone,
         Has anyone successfully consumed a web service (based on an EJB) that is published to the J2EE engine of their WAS 6.40 server by creating a proxy from the ABAP layer?
         We are encountering the following problem: When executing method of the proxy to call the Web Service on the J2EE engine, the CX_AI_SYSTEM_FAULT exception is triggered with the message "Unallowed RFC-XML Tag (SOAP_EINVALDOC)".
         This same problem has occurred with multiple web services, even though the proxy generation seems to execute without a problem.  Is there some system setting that could cause this?  We have run the SOAP Runtime trace, but only receive the same basic information about the problem.
         If anyone has any thoughts at all, I'd be grateful to hear them.
         Thanks,
            --Greg

    Hi,
    We encountered problems when consuming a foreign WS. It seems to be that RPC style WSDL isn't supported by the WAS 6.4 WS proxy. An interesting reading on this is
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/the difference between rpc and document style wsdl.article
    Eddy

  • Help with consuming a web service

    Hi guys,
    I'm trying to consume a web service but I have the following problem when I consume it:
    javax.xml.rpc.soap.SOAPFaultException: Internal Error
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.ja
    va:491)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307
    at qtel.tibco.transferAsset.AssetPort_Stub.transferAsset(AssetPort_Stub.
    java:67)
    at transferasset.Main.main(Main.java:34)
    I'm using NetBeans 5.0 with JDK 1.4 and the JAX-RPC 1.6
    here is my Code:
    package transferasset;
    import java.io.*;
    import javax.xml.rpc.*;
    import java.rmi.*;
    * @author Administrator
    public class Main {
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
        public static void main(String[] args) {
           try{
             System.out.println(args[0] + " " + args[1] + " " + args[2] );
             qtel.tibco.transferAsset.AssetManagementServiceServiceagent service = new qtel.tibco.transferAsset.AssetManagementServiceServiceagent_Impl();
             qtel.tibco.transferAsset.AssetPort port = service.getAssetPortEndpoint1();
             qtel.tibco.transferAsset.TransferAssetRequest req = new  qtel.tibco.transferAsset.TransferAssetRequest(args[0].toString(),args[1].toString(),args[2].toString());
             qtel.tibco.transferAsset.TransferAssetResponse result = port.transferAsset(req);
             System.out.print(result.getData().getReturnStatus());
           }catch(javax.xml.rpc.soap.SOAPFaultException e){
               //System.out.print(e.getFaultString());
               //System.out.print(e.getFaultActor());
               e.printStackTrace();
        }catch(Exception e){
                e.printStackTrace();
               System.out.println(e.getMessage());
               //System.out.println("exception");
           //return result.getData().getReturnStatus();
    }the problem is as folowwing in the command prompt when I run the following command I will have no error and the web service work fine:
    java -jar "C:\updateassetinfo\dist\updateassetinfo.jar" 1 1 1
    but the problem will appear if I send a character in the parametars like this:
    java -jar "C:\updateassetinfo\dist\updateassetinfo.jar" 12367 3456 HC-098
    So any help will be Appreciated
    thanks in advance.

    Hi guys,
    I'm trying to consume a web service but I have the following problem when I consume it:
    javax.xml.rpc.soap.SOAPFaultException: Internal Error
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.ja
    va:491)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307
    at qtel.tibco.transferAsset.AssetPort_Stub.transferAsset(AssetPort_Stub.
    java:67)
    at transferasset.Main.main(Main.java:34)
    I'm using NetBeans 5.0 with JDK 1.4 and the JAX-RPC 1.6
    here is my Code:
    package transferasset;
    import java.io.*;
    import javax.xml.rpc.*;
    import java.rmi.*;
    * @author Administrator
    public class Main {
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
        public static void main(String[] args) {
           try{
             System.out.println(args[0] + " " + args[1] + " " + args[2] );
             qtel.tibco.transferAsset.AssetManagementServiceServiceagent service = new qtel.tibco.transferAsset.AssetManagementServiceServiceagent_Impl();
             qtel.tibco.transferAsset.AssetPort port = service.getAssetPortEndpoint1();
             qtel.tibco.transferAsset.TransferAssetRequest req = new  qtel.tibco.transferAsset.TransferAssetRequest(args[0].toString(),args[1].toString(),args[2].toString());
             qtel.tibco.transferAsset.TransferAssetResponse result = port.transferAsset(req);
             System.out.print(result.getData().getReturnStatus());
           }catch(javax.xml.rpc.soap.SOAPFaultException e){
               //System.out.print(e.getFaultString());
               //System.out.print(e.getFaultActor());
               e.printStackTrace();
        }catch(Exception e){
                e.printStackTrace();
               System.out.println(e.getMessage());
               //System.out.println("exception");
           //return result.getData().getReturnStatus();
    }the problem is as folowwing in the command prompt when I run the following command I will have no error and the web service work fine:
    java -jar "C:\updateassetinfo\dist\updateassetinfo.jar" 1 1 1
    but the problem will appear if I send a character in the parametars like this:
    java -jar "C:\updateassetinfo\dist\updateassetinfo.jar" 12367 3456 HC-098
    So any help will be Appreciated
    thanks in advance.

  • Consuming a web service with header

    Hi
    I am trying to consume a web service in BIP.
    But the problem is that the authentication is in the header of the SOAP, it does not take the values provided in username/password field in complex type service.
    (However i am able to see the methods in the body of the web service.)
    hence i get an error "username not specified"
    how do i pass the credentials in the header of the soap?
    I am using BIP 10.1.3.4

    This is the output at the oc4j when I try to execute:
    After WSS soapMessage = <soap:Envelope xmlns:soap="http://sche
    mas.xmlsoap.org/soap/envelope/">
    *<soap:Header></soap:Header>*
    <soap:Body xmlns:ns1="urn:XYZ_Request">
    <ns1:OpGet>
    <ns1:Request_ID>000000000000019</ns1:Request_ID>
    </ns1:OpGet>
    </soap:Body>
    </soap:Envelope>
    Notice that Header is null. I want to pass the authentication in the header.

  • ERROR Consuming external Web Services from JDE E1

    Hello everybody,
    I am trying to consume external web services from JD Edwards Enterprise One. For that, I have followed "Consuming External Web Services Tutorial".
    I have followed all the steps successfully, but when the final test called from an interactive application to the business function that I had created in C get the following error messages in the log file:
    [WARN ] JDE - [RUNTIME] *ERROR CallObject@13d346d: CallObject.executeRequest(): Problem executing function [consumingWS] lib [CALLBSFN] GetProcAddress failed. Please see Enterprise Server log for details. Business function cannot be found user:JDE Env:DV900*
    [SEVERE] JDE - [RUNTIME] FormEngine.doEvent(): BSFN failed and need roll back!! | Form Name : P5500055_W5500055A com.jdedwards.runtime.base.SystemException: There was a problem with the sever while running the business function consumingWs.\nThe current transaction has been lost.\nPlease exit the application and restart it.\nButton clicked Line number 1\nP5500055_W5500055A
    com.jdedwards.runtime.base.SystemException: There was a problem with the sever while running the business function consumingWs.\nThe current transaction has been lost.\nPlease exit the application and restart it.\nButton clicked Line number 1\nP5500055_W5500055A
    at com.jdedwards.runtime.engine.form.FormEngine.doEvent(Unknown Source)
    at com.jdedwards.runtime.vtcomponent.form.VTForm.doEvent(Unknown Source)
    at com.jdedwards.runtime.engine.ButtonEngine.onClick(Unknown Source)
    at com.jdedwards.runtime.vtcomponent.VTButton.onClick(Unknown Source)
    at com.jdedwards.runtime.vtcomponent.VTButton.processVirtualEvent(Unknown Source)
    at com.jdedwards.runtime.virtual.OWVirtual.processVTEvent(Unknown Source)
    at com.jdedwards.runtime.virtual.OWVirtual.processEventLoop(Unknown Source)
    at com.jdedwards.runtime.virtual.OWVirtual.run(Unknown Source)
    at com.jdedwards.base.util.ThreadPool$WorkerThread.run(Unknown Source)
    I have tested:
    1) Incorrect OCM for BSFNs.
    Mapped to development Enterprise Server, so it was failing to find the BSFN.
    2) Increase heap space for Java.
    3) Business Function Location (C/S): "Both Client & Server Function"
    4) Link the Business function with its parent DLL (CALLBSFN.dll)
    I'm not sure I'd done well...
    5) Update Package
    From Buildlog.txt I can see the following error:
    Copying \\ORACLE-JDE\E900\DV900\package\DV900FB\lib32\sCALLBSF.lib to \\ORACLE-JDE\E900\DV900\package\DVU100427\lib32\sCALLBSF.lib
    Copying \\ORACLE-JDE\E900\DV900\package\DV900FB\work\jdertdll.c to \\ORACLE-JDE\E900\DV900\package\DVU100427\work\jdertdll.c
    Generating Makefile: E:\e900\DV900\obj\CALLBSFN.mak
    B5500055 : Not checked into pathcode, excluded from the build
    .Makefile generated.
    Building business functions.
    ************CALLBSFN************
    jdertdll.c
    Creating library \\ORACLE-JDE\E900\DV900\package\DVU100427\lib32\CALLBSFN.lib and object \\ORACLE-JDE\E900\DV900\package\DVU100427\lib32\CALLBSFN.exp
    CALLBSFN.exp : error LNK2001: unresolved external symbol _consumingWS@12
    \\ORACLE-JDE\E900\DV900\package\DVU100427\bin32\CALLBSFN.dll : warning LNK4088: image being generated due to /FORCE option; image may not run
    To not build the business function is not possible the package deployment for the server becomes aware of the presence of this business function...
    But I have not managed to solve the problem, do you have any idea?
    Thank you and regards.

    Hello again,
    I have modied OCM record with a correct BSSV (the name and the port number were wrong).
    And other thing that I have tested is change the parent DLL with a new DLL created by me (Object Name: CALLWS.dll, Product Code: 0, Product System Code:0) and the error is:
    *ERROR CallObject@25b780: CallObject.executeRequest(): Problem executing function [invocarWS] lib [CALLWS] LoadLib failed.Please see Enterprise Server log for details. Library in which business funtion resides cannot be loaded user:JDE Env:DV900*
    [SEVERE] JDE - [RUNTIME] FormEngine.doEvent(): BSFN failed and need roll back!! | Form Name : P5500055_W5500055A com.jdedwards.runtime.base.SystemException: There was a problem with the sever while running the business function invocarWS.\nThe current transaction has been lost.\nPlease exit the application and restart it.\nButton clicked Line number 1\nP5500055_W5500055A
    com.jdedwards.runtime.base.SystemException: There was a problem with the sever while running the business function invocarWS.\nThe current transaction has been lost.\nPlease exit the application and restart it.\nButton clicked Line number 1\nP5500055_W5500055A
         at com.jdedwards.runtime.engine.form.FormEngine.doEvent(Unknown Source)
         at com.jdedwards.runtime.vtcomponent.form.VTForm.doEvent(Unknown Source)
         at com.jdedwards.runtime.engine.ButtonEngine.onClick(Unknown Source)
         at com.jdedwards.runtime.vtcomponent.VTButton.onClick(Unknown Source)
         at com.jdedwards.runtime.vtcomponent.VTButton.processVirtualEvent(Unknown Source)
         at com.jdedwards.runtime.virtual.OWVirtual.processVTEvent(Unknown Source)
         at com.jdedwards.runtime.virtual.OWVirtual.processEventLoop(Unknown Source)
         at com.jdedwards.runtime.virtual.OWVirtual.run(Unknown Source)
         at com.jdedwards.base.util.ThreadPool$WorkerThread.run(Unknown Source)
    It seems like it is not possible to find the CALLWS dll... Althought it was built and compiled without errors and warnings...
    I would like to debug the Business Function in C from Microsoft Visual Studio 2005, but I can't, because breakpoints are disable.
    I have followed the following manual:
    E1: BSFN: Debugging Business Functions Using Visual Studio .NET 2003, 2005 and 2008 (I have founded it in Oracle Support (Metalinki)).
    And here they say:
    "It is a normal feature of visual studio 2003/2005 to disable break point at the start of a debug session and display a warning saying no symbol is loaded. Break point will only be activated on demand when the code to debug is loaded in to the runtime memory".
    I think is necessary add the referency with parent DLL (in my case, CALLWS.dll) but I don't know how can I do it. I have tested to insert in Business Function's source code the following line:
    "#pragma comment(lib,"CALLWS.dll")" to force to include it, but when it was built:
    ************CALLWS************
    B5500055.c
    Replacing B5500055.obj
    jdertdll.c
    Creating library E:\e900\DV900\lib32\CALLWS.lib and object E:\e900\DV900\lib32\CALLWS.exp
    LINK : fatal error LNK1104: cannot open file 'CALLWS.dll'
    Microsoft (R) Manifest Tool version 5.2.3790.2075
    Copyright (c) Microsoft Corporation 2005.
    All rights reserved.
    mt.exe : general error c10100b1: Failed to load file "E:\e900\DV900\bin32\CALLWS.dll". The system cannot find the file specified.
    Adjusting DLL load addresses . . .
    ************Build Finished************
    I don't understand nothing, because the path is totally right.
    Any help is appreciated!
    Thank you and regards.
    Edited by: user12085357 on 29-abr-2010 2:55
    Edited by: user12085357 on 29-abr-2010 3:02

  • SOAPFaultException with wsse:Security Tag consuming a Web-Service

    hello,
    i'm trying to consume a Web-Service of a Document-Server implementing the new CMIS-Interface.
    When i call the Service i get the exception:
    javax.xml.ws.soap.SOAPFaultException: An error was discovered processing the <wsse:Security> header
    my code (in an EJB 3.0 of NWCE 7.1 CE Server) is as follows:
    @Stateless(name="DocRepBean")
    public class AlfRepBean implements DocRepLocal {
         @WebServiceRef(name="RepositoryService")
         private RepositoryService rService;
         public String repServiceList ()
              String result = "";
              RepositoryServicePort rPort = rService.getRepositoryServicePort();
              try
                   String rList = "";
                   for (CmisRepositoryEntryType rEntry : rPort.getRepositories())
                        rList = rList + "REntry:ID="+rEntry.getRepositoryID()+";Name="+rEntry.getRepositoryName()+";URI="+rEntry.getRepositoryURI()+":";
                   result = rList;
              catch (Exception ex)
                   result = "!Exeption:" + ex.toString();
                   ex.printStackTrace();
                            // here the exception is thrown
              return result;
    Is there maybee a problem with authentification? but how can i set user and password calling that service then?
    Sorry for this maybe easy questions but i'm new in consuming other webservices.
    regards
    matthias hayk

    Found solution for this particular problem myself but ran into an follow-up error

  • Consuming a web service with an applet...

    Hi, Ive created an applet in netbeans 5.5, which consumes a web service - it works 100% "run file" in the ide, but when i look at it via web browser, it seems the webservice object cannot be instantiated. I'm guessing I need to somehow include jax-ws objects in my deployment, but how do I do this? - I'm a little out of my depth here, so please explain thoroughly
    Thanks

    Hi,
    We encountered problems when consuming a foreign WS. It seems to be that RPC style WSDL isn't supported by the WAS 6.4 WS proxy. An interesting reading on this is
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/the difference between rpc and document style wsdl.article
    Eddy

  • Consuming a web service within a repository service

    Is it possible to consume a web service within a custom KM repository service ? If so, please provide an overview of how I might accomplish this within the NWDS.
    Thanks!

    Hi David,
    Two answers:
    (a) Yes, of course this is possible, there is no technical restriction. For your convenience, you can create a portal service from a WSDL file, see https://fortress.wa.gov/dop/portal/irj/portalapps/com.sap.portal.pdk.util.developmenttools/docs/newportalservicefromwsdl.html for details (not really up to date, but in case of questions, also check http://help.sap.com/saphelp_nw04/helpdata/en/df/a08340d990ce62e10000000a155106/frameset.htm and around). This way, you can access the portal service as a proxy to the webservice and have the WS-implementation seperated.
    (b) Consider performance impacts!!! Depending on the event you are listening to, this can very easily lead to serious problems. At least, consider caching possibilities...
    Hope it helps
    Detlev

  • Consume a Web Service in ABAP

    Hi,
    We have a Web Service URL on PI. Run time of this Web Service in a Portal Server.
    We need to access the Same URL from ECC using ABAP Programming?
    Can any one tell me how we can call the same Web Service?
    I need to pass few values to the web service using ABAP Code and I need to get back the result into some variables.
    any code available for verify?
    Thanks,
    Sekhar.J

    Hi,
    Steps involved in Consuming a Web Service in ABAP.
    1. You will need to create a Service Consumer Proxy in the ECC system.
    The procedure for this is available in the documentation link [http://help.sap.com/saphelp_erp60_sp/helpdata/en/46/9743916d1115ece10000000a114a6b/frameset.htm] in the section Consuming a Web Service.. The URL access path of the WSDL can be used to generate the Service Consumer Proxy in ABAP.
    2. Using transaction SOAMANAGER create the Logical Port for the Consumer Proxy created in Step 1.
    3. Code the Consumer Proxy call in the ABAP program. Check section Consuming a Web Service --> Programming with Client and Server Proxies --> Sending a Message in the link specified above.
    The Video link [Consuming Services in ABAP |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/20eb3174-41ab-2a10-a383-907faf60eed3] will provide good conceptual knowledge, steps involved and Logical port maintenance..
    In case you face any problems, shoot your queries.
    regards
    Nitesh

  • Consume a Web Service from a Web Page

    I had tried out the Tutorial "Consume a Web Service from a Web Page". I have encountered this error :
    ; nested exception is: java.lang.NullPointerException.
    oracle.adf.model.adapter.AdapterException: DCA-40010: The Web Service call failed. The service returned a SOAP fault with the message: [S:Receiver] EJB Exception: : java.lang.NullPointerException
         at oracle.model.freightjb.CalculateFreightBean.calculateFreightCost(CalculateFreightBean.java:23)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:55)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy170.calculateFreightCost(Unknown Source)
         at oracle.model.freightjb.CalculateFreight_5vfuh6_WSOImpl.__WL_calculateFreightCost_WS(CalculateFreight_5vfuh6_WSOImpl.java:72)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    I tried to modify abit the code as i changed the web method parameter from object (BatchOrder order) to variables(eg. int) and it works. When I test the Web Services I need to select the include checkbox den it works nicely else i will also encounter this problem. Does this mean the web services can not take it object as parameter?

    Hi Paolo,
    maybe I faced the same issue. I solved it reading the thread:
    web service deployable client
    Hope this help
    Cheers
    Roberto

Maybe you are looking for