<?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 Re: HTTP post from ABAP using Object Oriented method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/http-post-from-abap-using-object-oriented-method/m-p/5625029#M1281001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; apart from usin the code u should have configured the RFC destination &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats nonsense, create_by_url does not need an rfc connection. TA SICF is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2009 09:24:01 GMT</pubDate>
    <dc:creator>rainer_hbenthal</dc:creator>
    <dc:date>2009-05-08T09:24:01Z</dc:date>
    <item>
      <title>HTTP post from ABAP using Object Oriented method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/http-post-from-abap-using-object-oriented-method/m-p/5625027#M1280999</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;I want to call HTTP from ABAP. I came to know that using classes &amp;amp; objects is the best way to fulfill it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interface:&lt;/P&gt;&lt;P&gt;xml_document type ref to cl_xml_document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method post_xml_document.&lt;/P&gt;&lt;P&gt;data: client type ref to if_http_client,&lt;/P&gt;&lt;P&gt;xml_response type ref to cl_xml_document.&lt;/P&gt;&lt;P&gt;data: xml_string type string,&lt;/P&gt;&lt;P&gt;xml_xstring type xstring.&lt;/P&gt;&lt;P&gt;data: zsubrc type sy-subrc.&lt;/P&gt;&lt;P&gt;cl_http_client=&amp;gt;create_by_url( exporting url = 'http://www.example.com/post-url.xml' importing client = client exceptions others = 1 ).&lt;/P&gt;&lt;P&gt;client-&amp;gt;request-&amp;gt;set_header_field( exporting name = '~request_method' value = 'POST' ).&lt;/P&gt;&lt;P&gt;client-&amp;gt;request-&amp;gt;set_header_field( exporting name = '~server_protocol' value = 'HTTP/1.1' ).&lt;/P&gt;&lt;P&gt;client-&amp;gt;request-&amp;gt;set_header_field( exporting name = 'Content-Type' value = 'text/xml' ).&lt;/P&gt;&lt;P&gt;xml_document-&amp;gt;render_2_string( exporting pretty_print = 'X' importing stream = xml_string ).&lt;/P&gt;&lt;P&gt;client-&amp;gt;request-&amp;gt;set_cdata( exporting data = xml_string offset = 0 ).&lt;/P&gt;&lt;P&gt;client-&amp;gt;authenticate( exporting proxy_authentication = space username = 'username' password = 'password' ).&lt;/P&gt;&lt;P&gt;client-&amp;gt;send( exceptions http_communication_failure = 1 http_invalid_state = 2 ).&lt;/P&gt;&lt;P&gt;client-&amp;gt;receive( exceptions http_communication_failure = 1 http_invalid_state = 2 http_processing_failed = 3 ).&lt;/P&gt;&lt;P&gt;xml_xstring = client-&amp;gt;response-&amp;gt;get_data( ).&lt;/P&gt;&lt;P&gt;zsubrc = xml_response-&amp;gt;parse_xstring( stream = xml_xstring ).&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code can be used to do my work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from the code in ABAP, what are the configurational setting that we need to do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Shivaa..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 19:26:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/http-post-from-abap-using-object-oriented-method/m-p/5625027#M1280999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T19:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP post from ABAP using Object Oriented method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/http-post-from-abap-using-object-oriented-method/m-p/5625028#M1281000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi shiva,&lt;/P&gt;&lt;P&gt;apart from usin the code u should have configured the RFC destination &lt;/P&gt;&lt;P&gt;of type Http to external system and check the connection from transaction SICF u cna take basis help&lt;/P&gt;&lt;P&gt;and also check the proxy fire walls from ur environment to target , &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;afzal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 09:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/http-post-from-abap-using-object-oriented-method/m-p/5625028#M1281000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T09:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP post from ABAP using Object Oriented method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/http-post-from-abap-using-object-oriented-method/m-p/5625029#M1281001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; apart from usin the code u should have configured the RFC destination &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats nonsense, create_by_url does not need an rfc connection. TA SICF is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 09:24:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/http-post-from-abap-using-object-oriented-method/m-p/5625029#M1281001</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-05-08T09:24:01Z</dc:date>
    </item>
  </channel>
</rss>

