‎2008 Apr 23 12:56 AM
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
‎2008 Apr 23 8:00 AM
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
‎2011 Mar 28 11:04 PM