Quantcast
Channel: SCN : All Content - ABAP Connectivity
Viewing all articles
Browse latest Browse all 1442

using FM HTTP_POST

$
0
0

Hi,

I want to use the FM HTTP_POST to call an external program. That works fine as long as I do not use the tables REQUEST_ENTITY_BODY and REQUEST_HEADERS.

 

I must send data to the external program and I want to do this with an XML file.

 

I send the XML file with the REQUEST_ENTITY_BODY table. But I don’t know what to write in the REQUEST_HEADERS table. I tried it with: 'Content-Type:TEXT/XML; charset=utf-8' but that doesn’t work.

 

I get the error message in the response_headers table:

“X-errorDescription: Error on line 1 of document  : Dokumentwurzelelement fehlt Nested exception: Dokumentwurzelelement fehlt”

 

Do anybody know what the REQUEST_HEADERS table should contain?

 

I cannot use the CL_HTTP_CLIENT class because of the release 4.6 C.

 

Thanks.

Kind Regards,

Michael Schöffer

 


Viewing all articles
Browse latest Browse all 1442

Trending Articles