Skip to Content
avatar image
Former Member

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

Hi,

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

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 26, 2007 at 01:11 PM

    you're trying to use this module in sender or receiver soap?

    Please note that soap sender adapter won't accept modules.

    Regards,

    Henrique.

    Add comment
    10|10000 characters needed characters exceeded