fbpx

Step by step procedure to implement HTTP to SOAP synchronous scenario in PI/PO

In this HTTP to SOAP Synchronous scenario, we are going to see how the synchronous message flow works in SAP PI/PO.

There has been always a challenge in integration of third-party system with SAP ECC due to different third-party platforms and various connection protocols with lots of security issues.

In the previous example SOAP to RFC we have used RFC Function in SAP ECC and by exposing these functional modules remotely via web services to expose SAP APIs. In this document will explain exact opposite flow. i.e. HTTP to SOAP means PI/PO is calling external webservice (Calling Sample Currency conversion Web service) http://currencyconverter.kowabunga.net/converter.asmx hosted in third party server via receiver SOAP adapter.

HTTP To SOAP Synchronous Scenario using SAP PI/PO

In this example HTTP makes the request to PI/PO and PI/PO calling webservice via SOAP adaptor. Response of the SOAP adaptor in passed back to PI/PO response and will get displayed in the HTTP response tab of HTTP Test client.

The advantage of using SAP PI in this purpose is you would have comprehensive monitoring capabilities than other methods. SAP PI has provided detail message monitoring, message logging and error handling capabilities which can be leveraged for any scenario.

Let us Begin,

Step1. Test the WebService to get the conversion Rate

We are going to use the below URL for our demo example.

http://currencyconverter.kowabunga.net/converter.asmx

Below are the set of Methods to carry out different operations. We are going to use GetConversionRate for our demo

GerResponseRate Webservice Call
WebService Response

Step2. Download the WSDL From Below site

http://currencyconverter.kowabunga.net/converter.asmx?WSDL

Download the WSDL

Step-3. Import WSDL to SAP PI/PO-ESR under External Definition

Right-click on External Definition and import the WSDL under the Category “WSDL” as shown below figure.

Step-4. Define Data type for Sender Request Message

Step-5. Define Data type for Sender Response Message

Step-6. Define Message type for these 2 data type created in step-4 and 5

MT_HTTP2SOAP_Request,

MT_HTTP2SOAP_Response

Step-7. Create Service interface for Request message(outbound-Synchronous)

Step-8. Create Service interface for Response message(inbound-Synchronous)

Step-9. Message Mapping Request( Http Request to WenService Request)

Step-10. Message Mapping Response( WebService Response to HTTP Response

Step-10. Operation Mapping for HTTP Request to SOAP Request

Step-11. Operation Mapping for SOAP Response to HTTP

Step-12. Create sender HTTP communication channel(ID)

Step-13. Create receiver SOAP communication channel(ID)

WebService Target URL
SOAP Action

Step-14. Create the Integrated configuration

Step-15. Test the end to end scenario with HTTP Test Client

Thanks for reading the blog. Please go through the below link to understand better.

https://wiki.scn.sap.com/wiki/display/XI/HTTP+To+RFC+Synchronous+Scenario+-+FAQs

For HTTP Client tool you can follow this link

https://blogs.sap.com/2012/08/12/http-test-tool-for-sap-pi-73/

https://blogs.sap.com/2011/05/10/pi-730-http-java-adapter-test-tools/

https://archive.sap.com/kmuuid2/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8/HTTP%20Client%20Sample%20Code%20for%20Communicating%20with%20Exchange%20Infrastructure%203.0.pdf

Leave a Reply

Your email address will not be published.