cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass session id in soap adapter

Former Member
0 Kudos

Hello All,

We have a R/3 -> PI -> 3rd party scenario (web service).

For the first call we are getting "SESSION ID" in the response,And we need to pass this session id in all the next subsequent calls to get data.But we are unable to find the way where to pass this session id in the receiver soap channel.Our client is expecting this session id in the soap header.

Please guide.

Regards

Piyush.

Accepted Solutions (1)

Accepted Solutions (1)

former_member854360
Active Contributor
0 Kudos

Hi Piyush.

Use option "Do Not Use Soap Envelop" and populate the SOAP header and Body tags in the Mapping.

http://knbintegration.com/blog/?p=181

You can use XSLT /Java mapping to create the SOAP header with custom field in mapping itself.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Debashish,

Thanks for your reply.But please can you let us know where exactly we need to pass this in xslt mapping.

Thanks

Piyush

Edited by: Piyush Mathur SAP on Jul 29, 2011 1:11 PM

former_member854360
Active Contributor
0 Kudos

Using XSLT or java you need create a field in Header which will contain the sessionID.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Basically you need to create header using XSLT Mapping. Use the option do not use soap envelope. Have your XSLT Mapping as the first mapping object in the operation mapping.

To do XSLT Mapping (for a beginner) refer this document...

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/000ee4d0-be91-2d10-8aaf-ff8045bdd...