Skip to Content
Former Member
Apr 21, 2011 at 08:09 AM

SOAP Adapter with protocol XI 3.0 and adapter modules



we have developed an adapter module to base64 decode and unzip the contents of an xml tag. We have successfully tested it with a soap sender channel using native soap protocol.

When trying to use it in a scenario ERP Proxy -> PI Soap Adapter (configured to expect XI 3.0 protocol) we encounter the following problem:

The payload of the message is (in the module you get the payload with message.getMainPayload().getContent() ):

<sap:Manifest xmlns:SOAP='' xmlns:sap='' xmlns:xlink='' xmlns:wsu='' wsu:Id='wsuid-manifest-5CABE13F5C59AB7FE10000000A1551F7'>
	<sap:Payload xlink:type='simple' xlink:href='cid:payload-4DAE8AFC5C960461E10080000A03112B @'>

If you look at a message in XI 3.0 format this is the part that is found in the tag <SOAP:Body>. So it seams that for the adapter module the message is treated as a normal soap message and the soap body is treated as payload.

We have tried to get the real payload (which is an attachment in the message) with message.getAttachment(String name) but getAttachmentIterator() returned an iterator pointing to an empty list.

Any ideas what could be wrong or how to remedy the problem?