Skip to Content
avatar image
Former Member

Consume a Web Service in ABAP


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?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jul 10, 2009 at 10:33 AM

    For this u need to create a Proxy object from WSDL of the webservice...

    This will create a class... Then u can use it in program to pass & get vaues from tht web service...

    Example code...

    REPORT  z_client_sysdatentime.
    DATA: io_clientproxy TYPE REF TO zclient_co_zgetdatentime .
        CREATE OBJECT io_clientproxy.
      CATCH cx_ai_system_fault .
    DATA: output TYPE zclient_zgetsysdate_response .
    DATA: input TYPE zclient_zgetsysdate .
        CALL METHOD io_clientproxy->zgetsysdate
            input  = input
            output = output.
      CATCH cx_ai_system_fault .
      CATCH cx_ai_application_fault .
    WRITE: output-date,

    U can refer to this link to get more info on this concept...

    Link: []

    Edited by: Bhargava TC on Jul 10, 2009 12:36 PM

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 10, 2009 at 10:41 AM


    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 [] 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 |] will provide good conceptual knowledge, steps involved and Logical port maintenance..

    In case you face any problems, shoot your queries.



    Add comment
    10|10000 characters needed characters exceeded