Skip to main content
Skip table of contents

HTTP Call

Connector Type HTTP Call is used to call HTTP endpoints leveraging HTTP Client Module 1.0 standard. It follows the principle of passing HTTP call input in a XML representation package into common Connector envelope:

XML
<HTTPCall>
  <csrf enabled="true" token-endpoint="/sap/opu/odata/sap/API_SALES_ORDER_SRV/" token-method="GET"/>
  <http:request xmlns:http="http://expath.org/ns/http-client" method="POST" href="/sap/opu/odata/sap/API_SALES_ORDER_SRV/A_SalesOrder">
    <http:header name="content-type" value="application/json"/>
    <http:header name="accept" value="application/json"/>
    <http:body media-type="application/json" method="text">eyJTYWxlc09yZGVyVHlwZSI6Ik9SIiwiU2FsZXNPcmdhbml6YXRpb24iOiIxNzEwIiwiRGlzdHJp
YnV0aW9uQ2hhbm5lbCI6IjEwIiwiT3JnYW5pemF0aW9uRGl2aXNpb24iOiIwMCIsIlNvbGRUb1Bh
cnR5IjoiMTcxMDAwMDIiLCJQdXJjaGFzZU9yZGVyQnlDdXN0b21lciI6IkNyZWF0ZWQgdmlhIE9E
YXRhIEFQSSIsInRvX0l0ZW0iOlt7IlNhbGVzT3JkZXJJdGVtIjoiMTAiLCJNYXRlcmlhbCI6Ik1a
LUZHLVIzMDAiLCJSZXF1ZXN0ZWRRdWFudGl0eSI6IjIifV19</http:body>
  </http:request>
  <auth type="OAUTH2" rfcdest="CUSTOM_DEST">
    <http:request><!-- custom request goes here --></http:request>
  </auth>
</HTTPCall>

Key values to be passed in the call:

  • csrf - used when CSRF protection is on on the endpoint - requires passing token-endpoint and token-method

  • http:request - specifies method and endpoint to be called

  • http:header - specifies HTTP headers to be passed to the call

  • http:body - BASE64 encoded HTTP body

  • auth - used to call Token Endpoint as part of OAuth authorization

Results of HTTP Call Connector execution are return in format as below:

XML
<HTTPCall xmlns:asx="http://www.sap.com/abapxml" xmlns:http="http://expath.org/ns/http-client">
	<http:response message="OK" status="200">
		<http:header name="~response_line" value="HTTP/1.0 200 OK"/>
		<http:header name="~server_protocol" value="HTTP/1.0"/>
		<http:header name="~status_code" value="200"/>
		<http:header name="~status_reason" value="OK"/>
		<http:header name="content-type" value="application/json; charset=utf-8"/>
		<http:header name="content-length" value="1022"/>
		<http:header name="dataserviceversion" value="2.0"/>
		<http:header name="sap-perf-fesrec" value="4075898.000000"/>
		<http:body media-type="application/json; charset=utf-8" method="">eyJkIjp7Il9fbWV0YWRhdGEiO</http:body>
	</http:response>
</HTTPCall>

Authentication:

Authentication request can be customized in <HTTPCall>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.