<?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: Export values for CL_HTTP_CLIENT=&amp;gt;CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882650#M1478838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sangvir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please first check whether '10.56.192.26' is avaible from your side? In your window system, click Start-&amp;gt;Run-&amp;gt;CMD, and ping 10.56.192.26, please check wether it works or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I am not familiar with system configuration topic, I go to SM59 in my system,Extras-&amp;gt;HTTP Proxy Configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first tab "Global settings" I see both "Proxy setting is Active" and "No proxy settings for local server" is enabled, in the second tab "HTTP log" I see "Host name" is maintained as 10.56.192.26 and port as 8080. Maybe you can try the same settings in your own system like mine and have a try?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 05:45:07 GMT</pubDate>
    <dc:creator>JerryWang</dc:creator>
    <dc:date>2010-05-20T05:45:07Z</dc:date>
    <item>
      <title>Export values for CL_HTTP_CLIENT=&gt;CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882643#M1478831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to use methos create of Class CL_HTTP_CLIENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD CL_HTTP_CLIENT=&amp;gt;CREATE&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     HOST               = host  "e.g. &lt;A href="https://community.sap.com/www.google.co.uk" target="test_blank"&gt;www.google.co.uk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;     SERVICE            = port&lt;/P&gt;&lt;P&gt;     PROXY_HOST         = proxy_host&lt;/P&gt;&lt;P&gt;     PROXY_SERVICE      = proxy_port&lt;/P&gt;&lt;P&gt;     SCHEME             = scheme&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;     CLIENT             = client&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     ARGUMENT_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;     PLUGIN_NOT_ACTIVE  = 2&lt;/P&gt;&lt;P&gt;     INTERNAL_ERROR     = 3&lt;/P&gt;&lt;P&gt;     others             = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My concern is how do we get 'PORT' value.&lt;/P&gt;&lt;P&gt;Also what value will go to proxy_host and proxy_port.&lt;/P&gt;&lt;P&gt;Is it value that is configured to internet connection for explorer ? How to get it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly site one example if possible. I have searched a lot on SDN bt m still not clear about the values and how to get them.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sangvir Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 09:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882643#M1478831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-19T09:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export values for CL_HTTP_CLIENT=&gt;CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882644#M1478832</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;firstly, the parameters SERVICE, PROXY_HOST and PROXY_SERVICE are optional so maybe you don't need to use them. The web server can listen on various port but usually it is port 80 (or 443 in case of SSL). So in case you connect to standard web site then you don't need to set this parameter. You also probably don't need to use proxy as well. So you don't need to set these fields as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 09:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882644#M1478832</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-05-19T09:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export values for CL_HTTP_CLIENT=&gt;CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882645#M1478833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;Thanks for quick reply. i tried without using proxy and without using service, however i am getting error HTTP_COMMUNICATION_FAILURE. &lt;/P&gt;&lt;P&gt;Is there any pre-requisite to use this method.&lt;/P&gt;&lt;P&gt;We are on ECC 6.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sangvir Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 10:26:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882645#M1478833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-19T10:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export values for CL_HTTP_CLIENT=&gt;CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882646#M1478834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No pre-requisites but you should check transaction SMICM and make sure the service(s) are running on your app server (Goto -&amp;gt; Services) .  HTTPS is not enabled by default, so if you're trying to use SSL, you'll need to configure some system parameters for it.  Also, I think you'll find it easier to use method CREATE_BY_DESTINATION.  You can set up the HTTP destination in SM59 and test it from there.  Then your code simply needs to reference the destination name to create the client object.  There are several blogs on SDN that show how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as determining the communication error, you can view the trace logs in SMICM and sometimes get more information from those as to the specific issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 14:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882646#M1478834</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-05-19T14:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export values for CL_HTTP_CLIENT=&gt;CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882647#M1478835</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 doubt that the HTTP service needs to run in SMICM to connect using HTTP client. It has to be active if you run some services over http such as web dynpro applications. But I am not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it looks like method CREATE does not use URL but it uses logical destinations. I guess that you need to use method CREATE_BY_URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 23:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882647#M1478835</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-05-19T23:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export values for CL_HTTP_CLIENT=&gt;CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882648#M1478836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please refer to this example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data https_client type REF TO IF_HTTP_CLIENT.
data error_code type sysubrc.
data res_error type string.
DATA: res_data TYPE XSTRING,
      filename type string,
      path type string,
      fullPath type string.
DATA: WF_USER TYPE STRING .
data long_string type string.
DATA: WF_PASSWORD TYPE STRING .
TYPES line_x(512) TYPE x.
DATA lt_xstring TYPE TABLE OF line_x.
  DATA l_length TYPE i.

CALL METHOD CL_HTTP_CLIENT=&amp;gt;CREATE
  EXPORTING
    HOST          = 'www.paypal.com'
    SERVICE       = '443'
    SCHEME        = '2'
   PROXY_HOST    = '10.56.192.26'
   PROXY_SERVICE = '8080'
  IMPORTING
    CLIENT        = HTTPs_CLIENT.
check https_client is not initial.
*HTTPs_CLIENT-&amp;gt;PROPERTYTYPE_LOGON_POPUP = HTTPs_CLIENT-&amp;gt;CO_DISABLED.


* proxy server authentication

*CALL METHOD HTTPs_CLIENT-&amp;gt;AUTHENTICATE
*  EXPORTING
*    PROXY_AUTHENTICATION = 'X'
*    USERNAME             = WF_USER
*    PASSWORD             = WF_PASSWORD.


CALL METHOD HTTPs_CLIENT-&amp;gt;REQUEST-&amp;gt;SET_HEADER_FIELD
  EXPORTING
    NAME  = '~request_method'
    VALUE = 'POST'.


CALL METHOD HTTPs_CLIENT-&amp;gt;REQUEST-&amp;gt;SET_HEADER_FIELD
  EXPORTING
    NAME  = '~request_uri'
    VALUE = '/cn/cgi-bin/webscr?dispatch=5885d80a13c0db1ffc45dc241d84e953d0e88f8d71535079b246201019c8adab'.

CALL METHOD HTTPs_CLIENT-&amp;gt;SEND
  EXCEPTIONS
    HTTP_COMMUNICATION_FAILURE = 1
    HTTP_INVALID_STATE         = 2.
if sy-subrc &amp;lt;&amp;gt; 0.
  CALL METHOD https_client-&amp;gt;get_last_error
    IMPORTING
      code = error_code.
  case error_code.
    when 1.
      write 'The communication is failed'.
    when 2.
      write 'invalid state of http'.
  endcase.
endif.

CALL METHOD HTTPs_CLIENT-&amp;gt;RECEIVE
  EXCEPTIONS
    HTTP_COMMUNICATION_FAILURE = 1
    HTTP_INVALID_STATE         = 2
    HTTP_PROCESSING_FAILED     = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 03:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882648#M1478836</guid>
      <dc:creator>JerryWang</dc:creator>
      <dc:date>2010-05-20T03:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export values for CL_HTTP_CLIENT=&gt;CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882649#M1478837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerry,&lt;/P&gt;&lt;P&gt;Thank you for the code provided.&lt;/P&gt;&lt;P&gt;I used the sample code with exactly same values ( PROXY_HOST    = '10.56.192.26'   PROXY_SERVICE = '8080' , let me know if i have to change them )&lt;/P&gt;&lt;P&gt;however, after running&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD HTTPs_CLIENT-&amp;gt;RECEIVE&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    HTTP_COMMUNICATION_FAILURE = 1&lt;/P&gt;&lt;P&gt;    HTTP_INVALID_STATE         = 2&lt;/P&gt;&lt;P&gt;    HTTP_PROCESSING_FAILED     = 3.&lt;/P&gt;&lt;P&gt;i am getting  sy-subrc = 1 and hence the exception , HTTP_COMMUNICATION_FAILURE.&lt;/P&gt;&lt;P&gt;Kindly let me know what could be missing on our server to establish a connection.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sangvir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 05:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882649#M1478837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T05:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export values for CL_HTTP_CLIENT=&gt;CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882650#M1478838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sangvir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please first check whether '10.56.192.26' is avaible from your side? In your window system, click Start-&amp;gt;Run-&amp;gt;CMD, and ping 10.56.192.26, please check wether it works or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I am not familiar with system configuration topic, I go to SM59 in my system,Extras-&amp;gt;HTTP Proxy Configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first tab "Global settings" I see both "Proxy setting is Active" and "No proxy settings for local server" is enabled, in the second tab "HTTP log" I see "Host name" is maintained as 10.56.192.26 and port as 8080. Maybe you can try the same settings in your own system like mine and have a try?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 05:45:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882650#M1478838</guid>
      <dc:creator>JerryWang</dc:creator>
      <dc:date>2010-05-20T05:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export values for CL_HTTP_CLIENT=&gt;CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882651#M1478839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, actually it does.  You can't send an HTTP request without the active service.  SAP will throw an ICM connection exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To the poster, why don't you trace the communication and try to get more information as I suggested or discuss the issue with your network team?  You would not use the same values for the proxy server identification, if indeed one is necessary.  The proxy info in Jerry's example is for a proxy on his side, not on Paypal's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 13:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882651#M1478839</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-05-20T13:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export values for CL_HTTP_CLIENT=&gt;CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882652#M1478840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sangvir Singh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you found solution to your problöem, I am facing the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have solved it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="282427" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="sangvir singh" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;NarsiReddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 14:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/export-values-for-cl-http-client-gt-create/m-p/6882652#M1478840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-04T14:55:09Z</dc:date>
    </item>
  </channel>
</rss>

