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

HTTP request

Former Member
0 Likes
729

Hi,

How do I post an http request in order to receive an xml file or xml information?

Thanks.

6 REPLIES 6
Read only

Former Member
0 Likes
662

Hi Abel,

Try using Function module SCMS_HTTP_GET_FILE.

Regards,

Babul.

Read only

Former Member
0 Likes
662

Also... you can check the CL_GUI_HTML_VIEWER class...

Regards,

Diogo Carvalho

Read only

0 Likes
662

HI, it did not worked, I really need to access the web service and import the content of the XML data into SAP.

Thanks.

Read only

0 Likes
662

You need to consume the webservice. Follow these steps: [Consuming a Webservice|http://help.sap.com/saphelp_nw70/helpdata/EN/46/97218e79f115eae10000000a114a6b/frameset.htm]

Regards,

Naimesh Patel

Read only

0 Likes
662

you can use cl_http_client class or if its a webserivce you can use the other method suggested by other. for code sample on cl_http_client , search this forum, there are quiet a few code samples posted earlier

Read only

Former Member
0 Likes
662

if you want to get form data use get_form_fields method in IF_HTTP_REQUEST.