<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Question on writing xml string to application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-writing-xml-string-to-application-server/m-p/4969430#M1158187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  I have an XML string that is basically the payload of a client proxy call request from within an ABAP program. I need to move this payload XML into a file on the application server. Here is the code that I used :&lt;/P&gt;&lt;P&gt;*********************************************************************************&lt;/P&gt;&lt;P&gt;data : v_xml type string,&lt;/P&gt;&lt;P&gt;payload_protocol TYPE REF TO if_wsprotocol_payload,&lt;/P&gt;&lt;P&gt;       payload TYPE REF TO if_ws_payload,&lt;/P&gt;&lt;P&gt;       lo_pointer TYPE REF TO XSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method 0_clientproxy--&amp;gt;Method " This is the call to consume the ext.websvc method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;payload_protocol ?= 0_clientproxy-&amp;gt;get_protocol(&lt;/P&gt;&lt;P&gt;if_wsprotocol=&amp;gt;payload ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; payload = payload_protocol-&amp;gt;get_sent_request_payload( ).&lt;/P&gt;&lt;P&gt; v_xml = payload-&amp;gt;get_xml_text( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset w_phyfile for output in text mode encoding utf-8.&lt;/P&gt;&lt;P&gt;transfer v_xml to w_phyfile.&lt;/P&gt;&lt;P&gt;close dataset.&lt;/P&gt;&lt;P&gt;***********************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I see the file in the application server , it does not have the entire contents of the xml string.  To doublecheck the xml request payload, I used the following construct - instead of writing the file to server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lo_pointer = payload-&amp;gt;get_xml_pointer( ).&lt;/P&gt;&lt;P&gt;cl_proxy_service=&amp;gt;show_xml_document( lo_pointer-&amp;gt;* ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could see the full xml in the window that came up .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where am I going wrong when I write the xml to the application server ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Dec 2008 15:59:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-31T15:59:06Z</dc:date>
    <item>
      <title>Question on writing xml string to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-writing-xml-string-to-application-server/m-p/4969430#M1158187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  I have an XML string that is basically the payload of a client proxy call request from within an ABAP program. I need to move this payload XML into a file on the application server. Here is the code that I used :&lt;/P&gt;&lt;P&gt;*********************************************************************************&lt;/P&gt;&lt;P&gt;data : v_xml type string,&lt;/P&gt;&lt;P&gt;payload_protocol TYPE REF TO if_wsprotocol_payload,&lt;/P&gt;&lt;P&gt;       payload TYPE REF TO if_ws_payload,&lt;/P&gt;&lt;P&gt;       lo_pointer TYPE REF TO XSTRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method 0_clientproxy--&amp;gt;Method " This is the call to consume the ext.websvc method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;payload_protocol ?= 0_clientproxy-&amp;gt;get_protocol(&lt;/P&gt;&lt;P&gt;if_wsprotocol=&amp;gt;payload ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; payload = payload_protocol-&amp;gt;get_sent_request_payload( ).&lt;/P&gt;&lt;P&gt; v_xml = payload-&amp;gt;get_xml_text( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset w_phyfile for output in text mode encoding utf-8.&lt;/P&gt;&lt;P&gt;transfer v_xml to w_phyfile.&lt;/P&gt;&lt;P&gt;close dataset.&lt;/P&gt;&lt;P&gt;***********************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I see the file in the application server , it does not have the entire contents of the xml string.  To doublecheck the xml request payload, I used the following construct - instead of writing the file to server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lo_pointer = payload-&amp;gt;get_xml_pointer( ).&lt;/P&gt;&lt;P&gt;cl_proxy_service=&amp;gt;show_xml_document( lo_pointer-&amp;gt;* ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could see the full xml in the window that came up .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where am I going wrong when I write the xml to the application server ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 15:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-writing-xml-string-to-application-server/m-p/4969430#M1158187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-31T15:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Question on writing xml string to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-writing-xml-string-to-application-server/m-p/4969431#M1158188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some tips:&lt;/P&gt;&lt;P&gt;- Check sy-subrc after open dataset.&lt;/P&gt;&lt;P&gt;- Check sy-subrc after close dataset.&lt;/P&gt;&lt;P&gt;- Check if v_xml not initial in transfer moment.&lt;/P&gt;&lt;P&gt;- Check if user has authority for record in app server.&lt;/P&gt;&lt;P&gt;- Try to change mode encoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just some suggestions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 18:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-writing-xml-string-to-application-server/m-p/4969431#M1158188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-31T18:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question on writing xml string to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-writing-xml-string-to-application-server/m-p/4969432#M1158189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestions. I actually see a file of size 7098620 bytes in AL11 transaction. When I open the file in AL11 - I don't see the entire contents - see a single long line...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how do I get the file from AL11 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karthik.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 21:30:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-writing-xml-string-to-application-server/m-p/4969432#M1158189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-31T21:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Question on writing xml string to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-writing-xml-string-to-application-server/m-p/4969433#M1158190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you see only one line with AL11, it means that there are none "carriage return" character in the xml string, it's only a problem because AL11 does not format files on screen. It also displays only 254 characters maximum in width on screen (AL11 is limited).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have ECC, you may use transaction CG3Y to copy file to frontend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you will find lots of code examples in SDN to copy it (search for GUI_DOWNLOAD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use FTP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandra Rossi on Jan 1, 2009 12:29 AM (added : Or use FTP)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 23:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-writing-xml-string-to-application-server/m-p/4969433#M1158190</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2008-12-31T23:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Question on writing xml string to application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-writing-xml-string-to-application-server/m-p/4969434#M1158191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - I was able to get the file using CG3Y. Points awarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2009 16:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-writing-xml-string-to-application-server/m-p/4969434#M1158191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-05T16:12:43Z</dc:date>
    </item>
  </channel>
</rss>

