on 04-07-2009 1:10 PM
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
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Have you solved it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.