Code: Alles auswählen.
part_xml_string->set_header_field(
EXPORTING
name = 'Content-Type'
value = 'text/xml;charset=UTF-8' ).
DATA(lv_xml) = iv_xml_string.
REPLACE '<?xml version="1.0" encoding="utf-16"?>' IN lv_xml WITH '<?xml version="1.0" encoding="utf-8"?>'.
part_xml_string->set_cdata( lv_xml ).
response = send_and_receive( ).
Code: Alles auswählen.
POST /documents?template_name=library%2sample.template&document_name=ps_demo08&user_id=TechUser HTTP/1.1
Authorization: Bearer {{bearer_token}}
Ocp-Apim-Subscription-Key: {{apiKey}}
User: Technical User
Password: Technical Password
Content-Type: multipart/form-data; boundary=---011000010111000001101001
Host: host.net
Content-Length: 308
-----011000010111000001101001
Content-Disposition: form-data; name="xml"
<?xml version="1.0" encodiing= "utf-8"?>
-----011000010111000001101001
Content-Disposition: form-data; name="zugferd"
\\share\User\Downloads\sample.xml
-----011000010111000001101001--