<?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: Call http get method from abap in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-http-get-method-from-abap/m-p/9535295#M1751229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you send request by get method the url should not exceed 255.That is http protocol restriction. So use Post method instead&amp;nbsp; of get method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;call method cl_http_client=&amp;gt;create_by_url&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; exporting host&amp;nbsp; = host_str&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; service&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = service_str&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; proxy_host&amp;nbsp;&amp;nbsp;&amp;nbsp; = proxy_host&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; proxy_service = proxy_service&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; scheme&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = scheme&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt; importing client&amp;nbsp; = client&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;exceptions&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; argument_not_found = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; internal_error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plugin_not_active&amp;nbsp; = 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;call method client-&amp;gt;request-&amp;gt;set_method( &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-size: 9.0pt; color: black;"&gt;if_http_request=&amp;gt;co_request_method_post&lt;/SPAN&gt; &lt;SPAN style="color: black;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreenivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jun 2013 17:57:48 GMT</pubDate>
    <dc:creator>former_member219762</dc:creator>
    <dc:date>2013-06-11T17:57:48Z</dc:date>
    <item>
      <title>Call http get method from abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-http-get-method-from-abap/m-p/9535294#M1751228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is our first web services connection. I'm trying to figure out how to use the soap 1.2 or http get info the vendor provided to work in SAP. I was able to make a small demo program that connects with the method &lt;SPAN style="font-size: 10pt;"&gt;cl_http_client&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 10pt;"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;create_by_url but it's limited to 255 characters and the http get method exceeds that length. Any pointers or help would be great.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 style="font-size: 1.1em; margin-left: -15px; margin-top: 10px; margin-bottom: 10px;"&gt;SOAP 1.2&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12px;"&gt;The following is a sample SOAP 1.2 request and response. The &lt;SPAN class="value" style="color: #00008b;"&gt;placeholders&lt;/SPAN&gt; shown need to be replaced with actual values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;POST /cirus/clientapi010.asmx HTTP/1.1 Host: svcdemo.r2ss.net Content-Type: application/soap+xml; charset=utf-8 Content-Length: &lt;SPAN class="value" style="color: #00008b;"&gt;length&lt;/SPAN&gt;&amp;nbsp; &amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt; &amp;lt;soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"&amp;gt; &amp;lt;soap12:Body&amp;gt; &amp;lt;Search xmlns="http://r2ss.com/webservices/"&amp;gt; &amp;lt;companyCode&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;int&lt;/SPAN&gt;&amp;lt;/companyCode&amp;gt; &amp;lt;userName&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/userName&amp;gt; &amp;lt;userPassword&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/userPassword&amp;gt; &amp;lt;firstName&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/firstName&amp;gt; &amp;lt;lastName&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/lastName&amp;gt; &amp;lt;streetAddress&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/streetAddress&amp;gt; &amp;lt;stateName&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/stateName&amp;gt; &amp;lt;city&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/city&amp;gt; &amp;lt;zipCode&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/zipCode&amp;gt; &amp;lt;identifierType&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/identifierType&amp;gt; &amp;lt;identifier&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/identifier&amp;gt; &amp;lt;identifierState&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/identifierState&amp;gt; &amp;lt;MasterRecordType&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/MasterRecordType&amp;gt; &amp;lt;ProfessionalType&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/ProfessionalType&amp;gt; &amp;lt;Specialty&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;lt;/Specialty&amp;gt; &amp;lt;/Search&amp;gt; &amp;lt;/soap12:Body&amp;gt; &amp;lt;/soap12:Envelope&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: &lt;SPAN class="value" style="color: #00008b;"&gt;length&lt;/SPAN&gt;&amp;nbsp; &amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt; &amp;lt;soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"&amp;gt; &amp;lt;soap12:Body&amp;gt; &amp;lt;SearchResponse xmlns="http://r2ss.com/webservices/"&amp;gt; &amp;lt;SearchResult&amp;gt;&lt;SPAN class="value" style="color: #00008b;"&gt;xml&lt;/SPAN&gt;&amp;lt;/SearchResult&amp;gt; &amp;lt;/SearchResponse&amp;gt; &amp;lt;/soap12:Body&amp;gt; &amp;lt;/soap12:Envelope&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Verdana; font-size: 11px; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;H3 style="font-size: 1.1em; margin-left: -15px; margin-top: 10px; margin-bottom: 10px;"&gt;HTTP GET&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12px;"&gt;The following is a sample HTTP GET request and response. The &lt;SPAN class="value" style="color: #00008b;"&gt;placeholders&lt;/SPAN&gt; shown need to be replaced with actual values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GET /cirus/clientapi010.asmx/Search?&lt;SPAN class="key" style="color: #006400;"&gt;companyCode&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;userName&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;userPassword&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;firstName&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;lastName&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;streetAddress&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;stateName&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;city&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;zipCode&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;identifierType&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;identifier&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;identifierState&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;MasterRecordType&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;ProfessionalType&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt;&amp;amp;&lt;SPAN class="key" style="color: #006400;"&gt;Specialty&lt;/SPAN&gt;=&lt;SPAN class="value" style="color: #00008b;"&gt;string&lt;/SPAN&gt; HTTP/1.1 Host: svcdemo.r2ss.net &lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: &lt;SPAN class="value" style="color: #00008b;"&gt;length&lt;/SPAN&gt;&amp;nbsp; &amp;lt;?xml version="1.0"?&amp;gt; &lt;SPAN class="value" style="color: #00008b;"&gt;xml&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 15:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-http-get-method-from-abap/m-p/9535294#M1751228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-11T15:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Call http get method from abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-http-get-method-from-abap/m-p/9535295#M1751229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you send request by get method the url should not exceed 255.That is http protocol restriction. So use Post method instead&amp;nbsp; of get method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;call method cl_http_client=&amp;gt;create_by_url&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; exporting host&amp;nbsp; = host_str&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; service&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = service_str&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; proxy_host&amp;nbsp;&amp;nbsp;&amp;nbsp; = proxy_host&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; proxy_service = proxy_service&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; scheme&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = scheme&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt; importing client&amp;nbsp; = client&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;exceptions&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; argument_not_found = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; internal_error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plugin_not_active&amp;nbsp; = 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: black;"&gt;call method client-&amp;gt;request-&amp;gt;set_method( &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-size: 9.0pt; color: black;"&gt;if_http_request=&amp;gt;co_request_method_post&lt;/SPAN&gt; &lt;SPAN style="color: black;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: black;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreenivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-http-get-method-from-abap/m-p/9535295#M1751229</guid>
      <dc:creator>former_member219762</dc:creator>
      <dc:date>2013-06-11T17:57:48Z</dc:date>
    </item>
  </channel>
</rss>

