on 2013 Nov 19 3:45 AM
Hi,
I have a module code for altering the message headers like InterfaceName, namespace by using XMBMessage classes. When we upgrade our code doesn't work anymore, getting classcast Exceptions.
...
import com.sap.aii.adapter.xi.ms.XIMessage;
import com.sap.aii.af.sdk.xi.mo.xmb.XMBMessage;
...
public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException {
obj = inputModuleData.getPrincipalData();
.......
XIMessage xiMsg = (XIMessage)obj; >>>> Getting ClassCast Exception
XMBMessage xmbMsg = (XMBMessage)xiMsg.getXMBMessage();
xmbMsg.setInterface("TestProxy_In", "http://saanvi.com/pi101/proxy00");
I am able to compile but getting runtime errors, did anyone successfully upgraded to 7.11? what was the code change and it is very important that I need to set the InterfaceName in the module like I was using XMBMessage Class
Thanks,
Laxman
Hi Laxman,
Perhaps you already have read this document http://scn.sap.com/docs/DOC-16233. If you dont read it, you can check the step by step procedure to adapter migration.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
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.