Skip to Content

How to create ABAP proxy for a JAVA webservice

Hello SOA Expoerts,

I want to consume a Java webservice from ABAP. The WS is visible in the wsnavigator, the name is "RepositoryFrameworkWS", the method "ping" can be tested in wsnavigator. (but it says: the WS is not published)

I have created a client proxy in SE80, it was activated successfully. Then I created a logical port in SOAMANAGER.

When I now try to test the proxy class method "ping" I get a SOAP error "400 bad request".

Now my question is: Was the general procedure ok or am I doing something completely wrong ? Did I miss any steps ? Must I publish the WS in the Visual admin ?

Does anyone have some good documentation on this ? (consume Java webservice from ABAP).

Thank you,

Johannes

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2009 at 12:36 PM

    Hi,

    You said you created an abap proxy for the java web service.

    >When I now try to test the proxy class method "ping"

    What do you mean ?

    Did you create a test program which uses this proxy to call the web service ?

    >Does anyone have some good documentation on this ? (consume Java webservice from ABAP).

    The whole point of web services is that you don't have to know or care in which language the web service is implemented. You just need the WSDL to geenerate a proxy.

    Then you have to configure the proxy with SOAMANAGER and then to write an abap program to use this proxy to call the web service.

    Regards,

    Olivier

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Johannes Bacher

      Hello Johannes,

      Which WSDL do I need ? In the wsnavigator I can choose RPC or Document, and then Default or SAP_WSDL to download the WSDLs.

      Try this: [Accessing a Service|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b8/a3cca166d440c29931c0c5494c32e5/frameset.htm]

      And do I need to publish the webservice (which I want to consume) on the Java stack ? or ist it already published when the wsnavigator can access it ? (the service resides on the Java stack, and I want to consume it from the ABAP stack from the same system)

      In short, no. You can safely use the Web service without publishing it - as Olivier explained, you need only the WSDL.

      The "publishing" term is usually used when you register (publish) a Web service in the UDDI server or the Services Registry. Publishing is only relevant if you want other people to be able to locate the registered service in the UDDI server.

      Hope this helps,

      Rossen

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.