Skip to Content
Former Member
Nov 11, 2010 at 10:19 AM

Adapter Module


Hi All,

These are fundamental question on Adapter Module Development, which I could nt find in any documents.

1) In a Sender communication channel, when the payload is converted to XML? I mean before the payload reaches the

module or after the last module is called? Also how about the receciver communication channel, ie, at what step the XML is converted into respective formats to be delivered to the target system?

2)In all the codes while writing modules, the following line of code is used to get the payload (People say its XML Payload, where I am confused).

XMLPayload xmlpayload = msg.getDocument()


SAP says that XMLPayload is a payload that represents a XML document.But to my understanding, the original payload is passed on to the module. If it is a flat file, how the payload can be a XML ? Insted, it should have been returning a object of type payload.(It may be my lack of understanding, but pls explain).

I am asking this, as I can see in some examples, if it is a flat file, it is read each byte by byte to change the payload, and if it is a XML file, it is parsed by DOM/SAX parser and then other changes are done. This brings me to the confusion.