cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the Data from a SOAP Header

Former Member
0 Kudos

Hey,

i am programming a java module for SAP PI. now i am reading the "moduleContext" an the "inputModuleData".

At present I only get the payload from the message like this:

Object obj = null;

Message msg = null;

obj = inputModuleData.getPrincipalData();

msg = (Message) obj;

But as I said ..it is just the ´"payload" and i need the SOAP Header

Any ideas. What i ve to do?

Thanks

View Entire Topic
Former Member
0 Kudos

java.util.Map container.getTransformationParameters()

Returns a map with the mapping runtime constants. For a description of which constants you can access by using this map, see below link .

The constants are attributes of the class com.sap.aii.mapping.api.StreamTransformationConstants

[http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm]

Former Member
0 Kudos

Thank you for your answer.

But i try to get the full SOAP Header from SAP PI / XI like the Payload.



public class MyConverterBean implements SessionBean, Module {

...........

public ModuleData process(
		ModuleContext moduleContext,
		ModuleData inputModuleData)

Object obj = null;
Message msg = null;

obj = inputModuleData.getPrincipalData(); 
msg = (Message) obj;

....
}

From this methode up there i get the full Payload diretly from SAP XI ("inputModuleData") but now i also need the SOAP Header and is there some attribute to get this thing? Maybe like this:

public ModuleData process(
		ModuleContext moduleContext,
		ModuleData inputModuleData,
                                ModuleDataSOAPHeader inputSOAPHeader)

The only thing i need is the Header from the message mybe as a object.