cancel
Showing results for 
Search instead for 
Did you mean: 

Integration with SOAP web service

0 Kudos

The interface is file to soap scenario using SAP PO 7.5. SAP PO will read the file from source location and post the data to receiver application using web service.

It's a 3 step process, Following are the steps to call the web service

Step 1) Call "login" webservice to get the "SessionID" --> Form soap request payload, pass user/pwd in the request and get unique "SessionID" in the response

Request Paylaod -

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xxxx.com">  <soapenv:Header/>  <soapenv:Body>  <urn:login>  <urn:username>xUSERx</urn:username>  <urn:password>xPasswordx</urn:password>  </urn:login>  </soapenv:Body></soapenv:Envelope>

Response Paylaod -

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">  <soapenv:Body>  <loginResponse xmlns="urn:xxxx.com">  <result>  <sessionId>3QADjqxKBRllWU2OeJ9aZS5EpX</sessionId>  </result>  </loginResponse>  </soapenv:Body></soapenv:Envelope>

The response message will also return HTTP header "Cookie" JSESSIONID. Both SessionID and JSESSIONID will be used to in step 2.

Step 2) Call "DataPosting" webservice to post the data. Form soap payload for data posting, add "SessionID" as a value to one of the field in the soap payload. Pass "cookie" value as HTTP request header and call the webservice.

Step 3) Call "logout" webservice to close the session. Form soap payload, pass "SessionID" as value in one of the field and "cookie" value as HTTP request header. Call logout service to close the session opened in step 1.

I already have a solution using Java mapping, where I am using HTTP post methods to call the service and store http header along with reponse values. I want to know if there is any standard adapters or better solution for this. Please advise.

Accepted Solutions (0)

Answers (0)