01-14-2015 1:35 PM
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.
01-16-2015 9:04 AM
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( ).