<?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: Calling a web service via HTTPS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-web-service-via-https/m-p/5927207#M1332501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if it help you:&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="710036"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2009 13:58:06 GMT</pubDate>
    <dc:creator>former_member182114</dc:creator>
    <dc:date>2009-07-09T13:58:06Z</dc:date>
    <item>
      <title>Calling a web service via HTTPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-web-service-via-https/m-p/5927206#M1332500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote an ABAP program to call a web service in order to send SMS messages. The program takes the 3 following steps to make the request and get the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt; - First I create an http client using the following method passing as parameters the URL and the proxy_host used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_http_client=&amp;gt;create_by_url&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      url                  = ws_url&lt;/P&gt;&lt;P&gt;      proxy_host    = my_proxy&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      client             = http_client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt; - Then I use the following method to send the request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD http_client-&amp;gt;send&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3&lt;/STRONG&gt; - And finally I try to get the response with the following method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD http_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;&lt;/P&gt;&lt;P&gt;However, the receive method returns an http_communication_failure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, I must mention that the protocol used is HTTPS that does not use the default port 443 but another port specified by the provider of the service. That is, the url is like the following: &lt;A href="HTTPS://xxx-yyyy:5678/" target="test_blank"&gt;HTTPS://xxx-yyyy:5678/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I used transaction strust to import the provider's certificate. Do I have to do something else as well?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to call a web service over HTTPS using the 3 steps I mentioned above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; When I call another web service over a simple HTTP protocol then I can send my request and receive a response without any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to your answer,&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 08:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-web-service-via-https/m-p/5927206#M1332500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-09T08:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a web service via HTTPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-web-service-via-https/m-p/5927207#M1332501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if it help you:&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="710036"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 13:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-web-service-via-https/m-p/5927207#M1332501</guid>
      <dc:creator>former_member182114</dc:creator>
      <dc:date>2009-07-09T13:58:06Z</dc:date>
    </item>
  </channel>
</rss>

