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

Saving an XML file on a server with cl_xml_document

Former Member
0 Likes
969

Hello,
I'm trying to save an xml file using cl_xml_document on an external server.
But it doesn't work.
It works locally.

with a path like '/testfile.xml'.

Any help is appreciated regards,

Regards,
Driss


1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
694

I found another simplier way.

OPEN DATASET lv_pathname IN TEXT MODE ENCODING UTF-8 FOR INPUT.

       
READ DATASET lv_pathname INTO lv_payload.
*        TRANSFER ***** 
       
CLOSE DATASET lv_pathname.

and use the lv_payload it as a cl_xml_document object after.

Hello,
I'm trying to save an xml file using cl_xml_document on an external server.
But it doesn't work.
It works locally.

with a path like '/testfile.xml'.

Any help is appreciated regards,

Regards,
Driss


1 REPLY 1
Read only

Former Member
0 Likes
695

I found another simplier way.

OPEN DATASET lv_pathname IN TEXT MODE ENCODING UTF-8 FOR INPUT.

       
READ DATASET lv_pathname INTO lv_payload.
*        TRANSFER ***** 
       
CLOSE DATASET lv_pathname.

and use the lv_payload it as a cl_xml_document object after.