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

ABAP Client Proxy without XI

Former Member
0 Likes
520

Hello

I am stuggling with writing a client proxy in ABAP to call a Web Service without any use of XI. The help says it is possible, as per the URL below.

On the expanded tree structure on the left pane of the help, navigate to the heading "Programming with Client and Server Proxies" and then "Sending a message".

I have been able to generate a proxy class by consuming a WSDL file and I have also defined a Logical Port.

I have also copied the ABAP code shown on the same Help page, but have been stumped by the definition of ls_request and ls_response. The next line of help goes on to explain that ls_request should be a structure for the Request Message. In the scenario where XI is used, I can understand the concept of defining a structure that is the same as the Request message.

In the scenario of only using ABAP and no XI, I don't understand what I should define the structures for ls_request and ls_response.

Can anyone shed some light on my confusion? Any suggestions gratefully received.

Thanks in advance

tony<a href="http://help.sap.com/saphelp_nw04/helpdata/en/d1/802cfc454211d189710000e8322d00/frameset.htm">SAP Help on ABAP Client Proxies</a>

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
484

Welcome to SDN.

check out this weblog.

<a href="/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap">Consuming WebServices with ABAP</a>

input and output structure are automatically generated when creating the client proxy.

click on the structure tab (se80 client proxy definition) and expand the webservice method againt input in the type column you should see a structure name use this for ls_request

ls_request TYPE zxxx_soap_in,

against exporting in types column you can see the type for ls_response.

Hope this is clear.

Regards

Raja

3 REPLIES 3
Read only

athavanraja
Active Contributor
0 Likes
485

Welcome to SDN.

check out this weblog.

<a href="/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap">Consuming WebServices with ABAP</a>

input and output structure are automatically generated when creating the client proxy.

click on the structure tab (se80 client proxy definition) and expand the webservice method againt input in the type column you should see a structure name use this for ls_request

ls_request TYPE zxxx_soap_in,

against exporting in types column you can see the type for ls_response.

Hope this is clear.

Regards

Raja

Read only

0 Likes
484

the pattern for the types are

<prefix>_<method name>_soap_in

<prefix>_<method name>_soap_out

<prefix> is the one which you gave when generating the client proxy.

Regards

Raja

Read only

Former Member
0 Likes
484

Thanks very much Raja