cancel
Showing results for 
Search instead for 
Did you mean: 

Module developemnt: casting to Message

Former Member
0 Kudos

I dot ClassCastException for SOAP sender adapter module in line

Message message = (Message) moduleData.getPrincipalData();

Could you help what's wrong with Module?

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

Hi Denis,

Could you describe, what exactly you want to achieve?

Modules inside the SOAP sender adapter are different from modules in other adapters and you cannot use standard modules.

Maybe you can work with Java mapping instead?

Regards

Stefan

Former Member
0 Kudos

Hello Stefan,

do you have more information about developing modules for the soap sender adapter?

I made some tests and also noticed that there is a difference...when writing modules for normal sender adapters (e.g. File Adapter), the principal data seems to be of type 'com.sap.aii.adapter.xi.ms.XIMessage', whereas the principal data in the soap sender adapter is of type 'com.sap.aii.messaging.mo.MessageContext'.

Is any information available about class 'com.sap.aii.messaging.mo.MessageContext'? Alas, I couldn't find any...

Thanks & regards,

Matthias

Former Member
0 Kudos