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

Similar Messages

  • Error While Consuming Public Web Service through Stand Alone Proxy

    Hi,
    I am getting the below error when I am consuming a public web service through Stand Alone Proxy.
    java.rmi.RemoteException: Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ).
         at com.mindtree.examples.GlobalWeatherSoapStub.getCitiesByCountry(GlobalWeatherSoapStub.java:159)
         at com.mindtree.examples.GlobalWeatherSoapStub.getCitiesByCountry(GlobalWeatherSoapStub.java:168)
         at com.mindtree.examples.WebServiceClient.main(WebServiceClient.java:18)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ).
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:903)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1346)
         at com.mindtree.examples.GlobalWeatherSoapStub.getCitiesByCountry(GlobalWeatherSoapStub.java:152)
         ... 2 more
    Regards,
    Venkatesh

    Hi,
    I am still facing the same issue.
    Regards,
    Venkatesh

  • Problem while Introspecting a Web-Service in OBPM 10GR3 studio

    I get the following problem while Introspecting a Web-Service in OBPM 10GR3 studio:-
    Introspecting...
    downloading /test-ws/testc?wsdl [Error] Instrospection exception: Web Service WSDL parse exception: HTTPS hostname wrong: should be <test-01.test.net>...
    Any idea why?
    It runs well in a browser, eclipse and SOAP UI?

    have you create the destination?
    do  you use the wizard to generate code?
    usually there is catch clause for this line of code
    wdContext.currentRequest_SERVICE_MDM_LOOKUPElement().modelObject().execute();
    Edited by: John Wu on Dec 16, 2010 11:51 PM

  • How to pass username and password while invoking a web service through wsdl

    Hello All,
    i am calling a web service through wsdl, but it is giving error 401. i want to know how to pass userid and password when i am invoking webservice?
    i am using NetBeans 6.1.
    i did following thing:
    First i created one web application, then i right clicked on project new->web service client, and gave the url for my wsdl.
    after that i create one main class and try to call my required operation by that wsdl.
    Thanks in advance

    Thanks dumchikov, i tried the same thing what ever you told but there is no option for security.
    when i right clicked on web service reference its open 1 window which have 2 tab one is quality of service and second is wsdl customization, then i clicked on wsdl customization. which contain Global Customization, Port Types, Port Type Operations, Port Type Faults, Binding, Binding Operations, Services, Ports and External Binding Files. it don't have security option.

  • 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

  • Problems while invoking a web service

    Hi everybody,
    I need to call a web service and treat its response data. So I'm using OdiInvokeWebService tool, and trying to export the response to an xml file, in order to be able to treat the information. The question is that I just can't get the response, because the response file is empty after doing the call. If I try with the "advanced" option of the tool, the result is the same, doesn't matter which mode of request (xml request or xml file request) I use. But I'm even more worried considering that the process works properly when I use a tool like soapUI, that means, I get a result when I call the web service with this tool. It looks very strange because I used ODI previously with the same goal, and I didn't have any problem working in the same way. So, could somebody help me with this issue?
    Thanks in advance,
    Hibai.

    > 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

  • SOAPException while consuming a web service from OAF

    Hi All,
    I have successfully created a web service proxy using JDev version 10.1.3.3.0.3 to be inline with the OAF version for our R12 environment 12.1.3.
    I then included the poxy in my OAF Workspace/Project and can consume the service 100% fine while running locally.
    I get an error once deploying it and running it from the development/testing environments with the following error:
    nested exception is: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: For input string: ""
    Has anyone ever come across this and resolved the problem?
    I can't find anything helpful regarding this.
    I am able to telnet etc to the service end point (IP/Port) from the apps server, so I don't think its firewall related?
    Thanks,
    Anthony
    Edited by: AnthonyFromSA on 2012/08/22 7:24 AM

    Hi Anthony,
    Am facing the similar issue as you have mentioned. Could you please elaborate on how exactly have you resolved it? I have changed the OC4J properties file and have bounced the server. But still facing the issue.
    Thanks in advance.
    Regards,
    Dhamani

  • Error while consuming CAF Web Service in ABAP

    Hi experts,
    I need to consume a CAF Web Service in ABAP 7.0. While trying to generate the Proxy Object in SE80 it is thowing an error "Proxy generation terminated: WSDL error. (<extension> not supported)" and terminating the Proxy generation.
    Can anyone please help me out with the solution for this?
    Thanks in Advance.
    Vaishali.

    Hi,
    waiting for reply.....

  • Proxy Error while consuming backend web service

    Hello,
    I try to consume erp backend web services (generated on existing rfcs) with a web dynpro (java) application and get the following error:
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (502) Proxy Error ( The ISA Server denied the specified Uniform Resource Locator (URL).  ). The requested URL was:"http://anyExampleUrl"
    The called backend service and the portal server reside in the network so no access through the ISA server is required. Consuming the same services by .NET applications works fine.
    Do you have any hints?
    Cheers, Dennis
    Edited by: Dennis Isaak on Sep 23, 2009 2:18 PM

    Hello there,
    Check the same webservice is working fine with a SOAP UI, especially the request and response are fine. Then try with the application.
    Regards,
    Vivek Nidhi.

  • 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":

  • Query: Authentication Error while consuming a web service

    Hi All,
    I've generted a WSDL file by using the following steps.
    1.Created a RFC enabled ABAP pgm
    2.Created a web service out of it (using webservice creation wizard - default virtual host. so my port is 8100)3.Released the web service (WSCONFIG)
    4.Generated the WSDL file (WSADMIN + CTRL F1).
    Then I wanted to consume it from a .Net program. But am getting authentication error in .Net.
    Do I need to configure anything for Authentication (username and password) from R/3 side?..
    How Do I pass the credential info from .Net?.
    Should I take care of any setup other than what I've specified?.
    Any Blogs or response would be appreciated.
    Thanks,
    Joe.

    Usually like this:
    WSReference1.WSPProxy proxy = new WSReference1.WSPProxy();
    proxy.Credentials = new System.Net.NetworkCredentials("Username", "Password");
    proxy.PreAuthenticate = true;
    proxy.CallMethod();

  • Query: Error while consuming a web service

    Hi All,
      I've generted a WSDL file by using the following steps.
    1.Created a RFC enabled ABAP pgm
    2.Created a web service out of it (<b>using webservice creation wizard - default virtual host. so my port is 8100)</b>3.Released the web service (WSCONFIG)
    4.Generated the WSDL file (WSADMIN + CTRL F1).
    Then I wanted to consume it from a .Net program. But am getting <b>authentication error in .Net.</b>
    <b>Do I need to configure anything for Authentication (username and password) from R/3 side?..
    How Do I pass the credential info from .Net?.
    Should I take care of any setup other than what I've specified?.</b>
    Any Blogs or response would be appreciated.
    Thanks,
    Joe.

    hi,
    for VBA and using the SOAPToolkit it would be something like:
    Set my_client = New SoapClient30
    my_client.MSSoapInit2 WSDL, str_WSML, c_SERVICE, c_PORT,
    c_SERVICE_NAMESPACE
    'using ProxyServer with <CURRENT_USER>
    my_client.ConnectorProperty("ProxyServer") = "<CURRENT_USER>"
    'Autodetect proxy settings if Internet Explorer is set to autodetect
    'by setting EnableAutoProxy to True
    my_client.ConnectorProperty("EnableAutoProxy") = True
    'endpoint authentication
    my_client.ConnectorProperty("AuthUser") = "SAP_USER"
    my_client.ConnectorProperty("AuthPassword") = "SAP_PASSWORD"
    I suppose it's similar in .NET.
    regards,
    anton

  • Problem while invoking a web service within an XML native database

    Within the eXist dbms, I'm writing a module which implements several extensions to XPath. These extensions must invoke a remote web-service.
    I initially tested a standalone consumer, and everythink worked out successfully. Thus I created a jar, I used the same code in eXist, recompiled it, and started the server. I thus launched an XPath query (containing these extensions), and I received the following exception:
    Provider com.sun.xml.ws.spi.ProviderImpl not found
    What does it mean?
    What am I missing?
    CLASSPATH should be ok, since it is set to (and it is the same of the "standard" consumer):
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/activation.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/FastInfoset.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/http.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/jaxb-impl.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/jaxb-xjc.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/jaxws-rt.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/jaxws-tools.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/jsr250-api.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/resolver.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/saaj-impl.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/sjsxp.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/stax-ex.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/streambuffer.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/api/jaxb-api.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/api/jaxws-api.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/api/jsr173_api.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/api/jsr181-api.jar
    /opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/api/saaj-api.jar
    Thanks in advance for any reply and/or suggestion.
    Pierpaolo.

    Hi,
    Can anyone help me with this ??
    I guess I am not able to send the authorization credentials via the request to the web service invocation.
    Plz help ! This is a bit urgent..
    Regards,
    Shiva Kiran

  • Problem while calling a web service in BOBJ Data services

    Hello Experts,
    I am trying to call a web service in bobj data services. A real time job has been scheduled and published as a web service. I want to consume this service in web dynpro java.
    I tried both the methods the adaptive web services and depricated version. I also tried calling the url directly and with the metadata and execution destinations.
    No matter what I do, I keep getting the following error.
    Exception on execution of web service with WSDL URL 'http://XXXXX:28080/DataServices/servlet/webservices?ver=2.0&wsdl' with operation 'SERVICE_<NAME>' in interface 'Real-time_Services'
    The call never reaches data services system.  If I try to call the service from soapUI (web service testing tool) it works fine.
    I am using SAP NW 7.0 SP22 .
    Here is my code in dynpro to call the service.
         AdaptiveModel mod = new AdaptiveModel();
         Request_SERVICE_MDM_LOOKUP request = new Request_SERVICE_MDM_LOOKUP(mod);
         Query1 query1 = new Query1(mod);
         Response_SERVICE_MDM_LOOKUP response = new Response_SERVICE_MDM_LOOKUP(mod);
         request.setQuery(query1);
         request.setResponse(response);
         List list = new ArrayList();
         DefinitionsTypes_XsdSchema_1__XsdElement_1__XsdComplexType_Sequence1 element = new DefinitionsTypes_XsdSchema_1__XsdElement_1__XsdComplexType_Sequence1(mod);
         element.setCustomer_Name(wdContext.currentContextElement().getCustomerName());
         element.setZip_Code(wdContext.currentContextElement().getZipcode());
         element.setAddr1("");
         element.setAddr2("");
         element.setCity("");
         element.setCountry("");
         element.setState("");
         list.add(element);
         query1.set$002fDefinitions$002fTypes$002fXsdSchema$005b1$005d$002fXsdElement$005b1$005d$002fXsdComplexType$0023Sequence1(list);
         wdContext.nodeRequest_SERVICE_MDM_LOOKUP().bind(request);
          wdContext.currentRequest_SERVICE_MDM_LOOKUPElement().modelObject().execute();
          wdContext.nodeResponse().invalidate();
          wdContext.nodeQueryResponse().invalidate();
          wdContext.nodeSequenceResponse().invalidate();
    Please let me know if you have any pointers on how to solve this.
    Thanks in advance
    Praveen.

    have you create the destination?
    do  you use the wizard to generate code?
    usually there is catch clause for this line of code
    wdContext.currentRequest_SERVICE_MDM_LOOKUPElement().modelObject().execute();
    Edited by: John Wu on Dec 16, 2010 11:51 PM

  • Problem while importing a web service model.

    Hi
    I am building a simple send email application using a web service.
    While creating a new model i am using following options.
    step 1 - Select "Import Adaptive web service model"
    step 2 - Select Wsdl Source
    2.1 - Local file system or URL
    Step 3 - No logical destination
    step 4 - choose wsdl file from file system.
    Process successfully done and model created.
    BUT
    when i am trying to run this application it is throwing file not found exception. i.e. not able to locate wsdl file.
    java.io.FileNotFoundException: C:\AbysalEmail.wsdl (The system cannot find the file specified)
    I am using remote network connection to access NWDS. and in remote drive C: itself i have saned my file.
    Then Why it is not able to locate my file.
    Please Help me out.
    Thanks.

    Hi
    I have provided in J2EE Engine visual administrator under
    Web Services Security -> Dynamic web services proxies
    following configuration.
    I have created a new Dynamic web service proxie.
    And in it under connection settings -> URL i have specified
    http://<host>:<port>/
    Above is host name and potr from where my WebDynpro application runs.
    But my file is located in C:\
    I think i am unable to set mapping configuration
    from
    http://<host>:<port>/
    to
    C:\
    Where shall i ten keep my WSDL file.!!!
    Thanks.
    Edited by: Saurabh Agarwal on Jul 30, 2008 1:34 PM

Maybe you are looking for