<?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 Add values to the HTTP header in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829227#M1471200</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 having a method that call to Web service and i need to add additional info&lt;/P&gt;&lt;P&gt;like key and value ,&lt;/P&gt;&lt;P&gt;there is API (method or FM )which i can use for the purpose ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: James Herb on Apr 7, 2010 3:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Apr 2010 13:05:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-07T13:05:16Z</dc:date>
    <item>
      <title>Add values to the HTTP header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829227#M1471200</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 having a method that call to Web service and i need to add additional info&lt;/P&gt;&lt;P&gt;like key and value ,&lt;/P&gt;&lt;P&gt;there is API (method or FM )which i can use for the purpose ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: James Herb on Apr 7, 2010 3:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 13:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829227#M1471200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T13:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to the HTTP header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829228#M1471201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are plenty of classes starting with CL_HTTP_*. We were used cl_http_client and http_client classes for webservices purpose. Please try with this classes. Below are might be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_http_client=&amp;gt;create_by_url&lt;/P&gt;&lt;P&gt;http_client-&amp;gt;send&lt;/P&gt;&lt;P&gt;http_client-&amp;gt;receive&lt;/P&gt;&lt;P&gt;http_client-&amp;gt;close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saravanan V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 15:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829228#M1471201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to the HTTP header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829229#M1471202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SARAVANAN ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i call to a client WS maybe do you know how can i do that ,any example ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: James Herb on Apr 7, 2010 10:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 16:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829229#M1471202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T16:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to the HTTP header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829230#M1471203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To call a web service, you have to create a proxy in SAP (SE80, other object, enterprise services). See sap library &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/EN/02/265c3cf311070ae10000000a114084/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/EN/02/265c3cf311070ae10000000a114084/frameset.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;What kind of header do you want to add??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 21:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829230#M1471203</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-04-07T21:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to the HTTP header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829231#M1471204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sandra ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create Client proxy from WSDL (.Net service) that my colleague &lt;/P&gt;&lt;P&gt; send to me and I call to it as follows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lo_client_proxy TYPE REF TO co_task_web_service.

     CALL METHOD lo_client_proxy-&amp;gt;crt_task
        EXPORTING
          input  = ls_input
        IMPORTING
          output = ls_output.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but he told me that he want that I add additional data to the &lt;STRONG&gt;HTTP header&lt;/STRONG&gt; as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request.Headers.Add("X-FORS_BASED_A_APTED", "t");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can do that ?&lt;/P&gt;&lt;P&gt;if it not possible please let me know &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: James Herb on Apr 8, 2010 2:00 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: James Herb on Apr 8, 2010 2:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 07:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829231#M1471204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-08T07:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to the HTTP header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829232#M1471205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend to use the class CL_HTTP_CLIENT. &lt;/P&gt;&lt;P&gt;Here we have been provided with the method SET_HEADER_FIELD.&lt;/P&gt;&lt;P&gt;We can add extra information through this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert if something is unclear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 12:47:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829232#M1471205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-08T12:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to the HTTP header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829233#M1471206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI daya mishra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can use it in my case before or after the call to the WS can you give me some example ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: James Herb on Apr 8, 2010 4:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 13:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829233#M1471206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-08T13:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to the HTTP header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829234#M1471207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think these guys recommending CL_HTTP_CLIENT understand the web service protocols.  Since you are using a consumer proxy to call a web service method, then to add a message header field (SOAP envelope header), you need to use the web service runtime protocol WS_HEADER provided for that.  You would access this through method IF_PROXY_BASIS~GET_PROTOCOL which is attached to your proxy object.  See the documentation in the help files or for interface IF_WSPROTOCOL for an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 14:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829234#M1471207</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-04-08T14:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to the HTTP header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829235#M1471208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on Brad answer, I could find one snippet of code in SDN: &lt;SPAN __jive_macro_name="message" id="2858556"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 20:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829235#M1471208</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-04-08T20:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to the HTTP header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829236#M1471209</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;Thanks but this is for soap envelope and not for the HTTP header .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 07:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829236#M1471209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-13T07:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add values to the HTTP header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829237#M1471210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI James ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately you cannot set any attributes on the HTTP header when you using Web service .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shimon Tal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Apr 2010 07:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-values-to-the-http-header/m-p/6829237#M1471210</guid>
      <dc:creator>shimon_tal</dc:creator>
      <dc:date>2010-04-13T07:30:34Z</dc:date>
    </item>
  </channel>
</rss>

