Skip to Content
0
Apr 25, 2014 at 07:23 AM

How can I get SessionID from SOAP Header in MessageMapping

641 Views

Hello experts,

I've got a Abap Proxy --> PI --> WebService scenario. I do the call to the web service and it returns me the data and a SessionID in the SOAP header. I've got a message mapping for the response, and in this message mapping I need to get this sessionID because I have to use it later.

I have tried with a UDF with this code:

String headerField = "";

try

{

String key="SessionID";

java.util.Map map;

// get runtime constant map

map = container.getTransformationParameters();

// get value of header field by using variable key

headerField = (String) map.get(key);

}

catch(Exception e){}

if(headerField==null)

{

headerField = "";

}

return headerField;

But it returns me nothing.

In sxmb_moni I can see the sessionID (see attached file), so It should be possible to access it.

How can I do to get this data????

Many thanks.

Attachments

sessionID.png (69.7 kB)