Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Pass XML Input to ABAP Method (Proxy)

Former Member
0 Likes
739

I have to pass the below XML Input my ABAP Method (Techically ABAP Proxy its a External Webservice i consumed in ABAP)

the input i have to pass to Input_string is

<n0:filterDoc
xmlns:n0
="http://webservice.facfilter.accuity.com"><n0:requestXML><Request
ClientID="d88b1c85-7d81-4f3f-bf1e-030f488455df" Id="1008"> <Field
Name="Id" UniqueField="Y">1111</Field> <Field Name="Name"
NameField="Y">Varda Lakshmi</Field> </Request>
</n0:requestXML>

</n0:filterDoc>

    TRY.

        CREATE OBJECT io_clientproxy

          EXPORTING
            logical_port_name = 'S31030'.

      CATCH cx_ai_system_fault.

    ENDTRY.

    TRY.

        CALL METHOD io_clientproxy->filter_doc

          EXPORTING

            input  = input_string

          IMPORTING

            output = output.
      CATCH cx_ai_system_fault.

      CATCH cx_ai_application_fault.
    ENDTRY.

Can somebody help me in how to pass the XML input the ABAP Method (Proxy). We are not using PI or XI i consumed the WEB service in ABAP

I have to pass the below XML Input my ABAP Method (Techically ABAP Proxy its a External Webservice i consumed in ABAP)

the input i have to pass to Input_string is

<n0:filterDoc
xmlns:n0
="http://webservice.facfilter.accuity.com"><n0:requestXML><Request
ClientID="d88b1c85-7d81-4f3f-bf1e-030f488455df" Id="1008"> <Field
Name="Id" UniqueField="Y">1111</Field> <Field Name="Name"
NameField="Y">Varda Lakshmi</Field> </Request>
</n0:requestXML>

</n0:filterDoc>

    TRY.

        CREATE OBJECT io_clientproxy

          EXPORTING
            logical_port_name = 'S31030'.

      CATCH cx_ai_system_fault.

    ENDTRY.

    TRY.

        CALL METHOD io_clientproxy->filter_doc

          EXPORTING

            input  = input_string

          IMPORTING

            output = output.
      CATCH cx_ai_system_fault.

      CATCH cx_ai_application_fault.
    ENDTRY.

Can somebody help me in how to pass the XML input the ABAP Method (Proxy). We are not using PI or XI i consumed the WEB service in ABAP

1 REPLY 1
Read only

arindam_m
Active Contributor
0 Likes
481