Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SOAP-Adapter: can't cast moduleData.getPrincipalData() to XIMessage

Hi,

I've develop an adapter module to change message payload following this article:

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81">Create Modules for the J2EE Adapter Engine</a>

Everything works fine if I use this module only for file-adapter, but I have to use it for SOAP-Adapter too.

The problem is, when I cast the module data to XIMessage:

msg = (Message) inputModuleData.getPrincipalData();

I get a class cast error.

I notice that the message type for file-adapters is:

com.sap.aii.adapter.xi.ms.XIMessage

When using SOAP-adapter it is:

com.sap.aii.messaging.mo.MessageContext

I do not have any information about this class (no documentation, no jar containing this class). Where can I get this information?

Thanks & regards,

Simon

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question