Application Development 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: 

Consume web service in ABAP with .NET Object

Former Member
0 Kudos

Hi experts,

i want to call a web service. Web service is written c# and take one parameter. Parameter is a Instance Class Object. SAP Generate one service definition and this instance object sending xml format. ( In the meantime service definition take rawstring format for xml ).

Q1 : How can i set Instance Object to our web service.

Q2 : How can i generate like instance object xml format ?

Thanks for your help.

Regards / Aydın.

1 REPLY 1

former_member216168
Active Participant
0 Kudos

Hi

It doesn't matter the language the webservice was generated, the concept is like an method: you "just" need to know what you need to send to retrieve the information.

You will need to do basically this follow steps:

data:  http_client TYPE REF TO if_http_client,

          v_return type string.

1 -  cl_http_client=>create

2 -  http_client->request->set_header_field

3 -  http_client->request->set_cdata

4 -  http_client->send

5 -  http_client->receive

6 -  xml->find_node

v_return = http_client->response->get_cdata( ).