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_POST

Former Member
0 Likes
464

Hi,

I have used an HTTP_GET function to obtain and XML from a URL, but the body of the response comes back as a text table. So I had to convert the table to a string, then the string to an xstring to use the call transformation statement on it.

Now I want to go back and post a resulting XML file as an XSTRING back to the URL. It seems that if I want to use function HTTP_POST I will need to convert the XTSTRING to a STRING and again the STRING to a TABLE. Isn't there a more efficcient way to post an XML document that's already and XTSRING?

Thanks,

Peter

2 REPLIES 2
Read only

GrahamRobbo
SAP Mentor
SAP Mentor
0 Likes
417

Hi Pete,

have you tried using the CL_HTTP_CLIENT class?

A good example can be found at http://help.sap.com/saphelp_nw04/helpdata/en/e5/4d3514c11411d4ad310000e83539c3/frameset.htm

This will return you the XML payload as a string.

Cheers

Graham Robbo

Edited by: Graham Robinson on Apr 23, 2008 5:01 PM

Read only

Former Member
0 Likes
417

class fixed the problem