<?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>Question Re: API connectivity error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/api-connectivity-error/qaa-p/603797#M143227</link>
    <description>&lt;P&gt;Hi Pradeep, &lt;/P&gt;
  &lt;P&gt;I assume that ECC layer is on-premise and API created and managed by SAP API Management is on the cloud.&lt;/P&gt;
  &lt;P&gt;Please use SAP Cloud Connector to connect to your on-prem ECC system &lt;/P&gt;
  &lt;P&gt;Please refer blog &lt;A href="https://blogs.sap.com/2017/05/08/cloud-connector-as-a-bridge-connecting-sap-api-management-and-on-premise-system/"&gt; Cloud Connector as a bridge connecting SAP API Management and On-Premise System&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Regards, &lt;/P&gt;
  &lt;P&gt;Raghavendra Kulkarni&lt;/P&gt;
  &lt;H2&gt; &lt;/H2&gt;</description>
    <pubDate>Thu, 15 Mar 2018 06:29:24 GMT</pubDate>
    <dc:creator>former_member37862</dc:creator>
    <dc:date>2018-03-15T06:29:24Z</dc:date>
    <item>
      <title>API connectivity error</title>
      <link>https://community.sap.com/t5/technology-q-a/api-connectivity-error/qaq-p/603796</link>
      <description>&lt;P&gt;&lt;EM&gt;Hi All,&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;We are trying to test one of the SAP_API functionality in our ecc server but getting the below error.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Error :-&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;Testing API 1&lt;BR /&gt;&lt;BR /&gt;response:&lt;BR /&gt;Application Server Error 404 Resource not found Partner not reached ##Error is logged with Tag: {00000366}&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Below actions are tested till now ,&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;1. In 000 client configured the proxy settings for this connection.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;2.Applied the certificate in SSL Client standard ( Github certificate installed)&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;3. Restarted ICM.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;4. Finally trying to execute the below report ,&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Report :-/////////////&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; *&amp;amp; Report API_TEST&lt;BR /&gt; *&amp;amp;&lt;BR /&gt; *&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; *&amp;amp;&lt;BR /&gt; *&amp;amp;&lt;BR /&gt; *&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; &lt;BR /&gt; REPORT API_TEST.&lt;BR /&gt; DATA: lo_http_client TYPE REF TO if_http_client.&lt;BR /&gt; DATA: response TYPE string.&lt;BR /&gt; &lt;BR /&gt; "create HTTP client by url&lt;BR /&gt; "API endpoint for API sandbox&lt;BR /&gt; CALL METHOD cl_http_client=&amp;gt;create_by_url&lt;BR /&gt; EXPORTING&lt;BR /&gt; url = 'https://sandbox.api.sap.com/translationhub/api/v1/domains'&lt;BR /&gt; "API endpoint with optional query parameters&lt;BR /&gt; "url = 'https://sandbox.api.sap.com/translationhub/api/v1/domains'&lt;BR /&gt; &lt;BR /&gt; IMPORTING&lt;BR /&gt; client = lo_http_client&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; argument_not_found = 1&lt;BR /&gt; plugin_not_active = 2&lt;BR /&gt; internal_error = 3&lt;BR /&gt; OTHERS = 4.&lt;BR /&gt; &lt;BR /&gt; "Available API Endpoints&lt;BR /&gt; "https://saptranslation-{subaccountname}.hanatrial.ondemand.com/translationhub/api/v1&lt;BR /&gt; "https://sap{providersubaccountname}-{subscriptionsubaccountname}.hana.ondemand.com/translationhub/api/v1&lt;BR /&gt; "https://sap{providersubaccountname}-{subscriptionsubaccountname}.ap1.hana.ondemand.com/translationhub/api/v1&lt;BR /&gt; "https://sap{providersubaccountname}-{subscriptionsubaccountname}.eu1.hana.ondemand.com/translationhub/api/v1&lt;BR /&gt; "https://sap{providersubaccountname}-{subscriptionsubaccountname}.us1.hana.ondemand.com/translationhub/api/v1&lt;BR /&gt; "https://sap{providersubaccountname}-{subscriptionsubaccountname}.us2.hana.ondemand.com/translationhub/api/v1&lt;BR /&gt; &lt;BR /&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt; "error handling&lt;BR /&gt; ENDIF.&lt;BR /&gt; &lt;BR /&gt; "setting request method&lt;BR /&gt; lo_http_client-&amp;gt;request-&amp;gt;set_method('GET').&lt;BR /&gt; "adding headers&lt;BR /&gt; lo_http_client-&amp;gt;request-&amp;gt;set_header_field( name = 'Content-Type' value = 'string' ).&lt;BR /&gt; lo_http_client-&amp;gt;request-&amp;gt;set_header_field( name = 'Accept' value = 'application/json; charset=utf-8' ).&lt;BR /&gt; "API Key for API Sandbox&lt;BR /&gt; lo_http_client-&amp;gt;request-&amp;gt;set_header_field( name = 'APIKey' value = 'Our Value' ). &lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;"Available Security Schemes for productive API Endpoints&lt;BR /&gt; "Basic Authentication&lt;BR /&gt; "Basic Auth : provide username:password in Base64 encoded in Authorization header&lt;BR /&gt; "lo_http_client-&amp;gt;request-&amp;gt;set_header_field( name = 'Authorization' value = '&amp;lt;Base64 encoded value&amp;gt;' ).&lt;BR /&gt; CALL METHOD lo_http_client-&amp;gt;send&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; http_communication_failure = 1&lt;BR /&gt; http_invalid_state = 2&lt;BR /&gt; http_processing_failed = 3&lt;BR /&gt; http_invalid_timeout = 4&lt;BR /&gt; OTHERS = 5.&lt;BR /&gt; IF sy-subrc = 0.&lt;BR /&gt; CALL METHOD lo_http_client-&amp;gt;receive&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; http_communication_failure = 1&lt;BR /&gt; http_invalid_state = 2&lt;BR /&gt; http_processing_failed = 3&lt;BR /&gt; OTHERS = 5.&lt;BR /&gt; ENDIF.&lt;BR /&gt; &lt;BR /&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt; "error handling&lt;BR /&gt; ENDIF.&lt;BR /&gt; &lt;BR /&gt; response = lo_http_client-&amp;gt;response-&amp;gt;get_cdata( ).&lt;BR /&gt; &lt;BR /&gt; WRITE: 'response: ', response.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;////////////////////////////////////////////////////////////////////////////// &lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;I have few queries , to function this report what are the per-requisites we need to perform.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;1. Do we need to setup any RFC connection for this communication ??&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;2. Is there any port to be opened ?&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Please put all your thoughts here.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Really appreciate your inputs for this query.&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Thanks&lt;/EM&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;Pradeep.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 04:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/api-connectivity-error/qaq-p/603796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-23T04:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: API connectivity error</title>
      <link>https://community.sap.com/t5/technology-q-a/api-connectivity-error/qaa-p/603797#M143227</link>
      <description>&lt;P&gt;Hi Pradeep, &lt;/P&gt;
  &lt;P&gt;I assume that ECC layer is on-premise and API created and managed by SAP API Management is on the cloud.&lt;/P&gt;
  &lt;P&gt;Please use SAP Cloud Connector to connect to your on-prem ECC system &lt;/P&gt;
  &lt;P&gt;Please refer blog &lt;A href="https://blogs.sap.com/2017/05/08/cloud-connector-as-a-bridge-connecting-sap-api-management-and-on-premise-system/"&gt; Cloud Connector as a bridge connecting SAP API Management and On-Premise System&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Regards, &lt;/P&gt;
  &lt;P&gt;Raghavendra Kulkarni&lt;/P&gt;
  &lt;H2&gt; &lt;/H2&gt;</description>
      <pubDate>Thu, 15 Mar 2018 06:29:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/api-connectivity-error/qaa-p/603797#M143227</guid>
      <dc:creator>former_member37862</dc:creator>
      <dc:date>2018-03-15T06:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: API connectivity error</title>
      <link>https://community.sap.com/t5/technology-q-a/api-connectivity-error/qaa-p/603798#M143228</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Issue got fixed after applying sandbox.api.sap websites certificate to sap abap system in the strust.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks all for your help.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;Pradeep.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 07:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/api-connectivity-error/qaa-p/603798#M143228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-17T07:59:46Z</dc:date>
    </item>
  </channel>
</rss>

