cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping the whole XML body to single field

Former Member
0 Kudos

Hello gurus,

I have an interesting requirement for my ECC - PI - SOAP scenario. The Web Service endpoint defined one generic message type on his side that receives any xml in any schema. We have more than 20 interfaces, and this web service will be receiving all of them in the same manner. Such as, if ECC is sending an XML like this:

the GenericInput attribute with the whole incoming XML document starting from root element. The receiver will choose which message type the XML belongs to by looking at the schema reference of the document, but I don't know how to add that either. This approach is an alternative to using different actions for different message types.

Please guide me on how to realize such a scenario, and if this kind of generic web service on receiver side makes sense or not.

Thanks

Gökhan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

check WIKI for the same there is code in detail for mapping whole payload to one field

https://wiki.sdn.sap.com/wiki/display/XI/WholePayloadtoaXML+field

Rajesh

Edited by: Rajesh on Apr 29, 2009 1:08 PM

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you for your prompt and on target replies.

Regards,

Gökhan

former_member200962
Active Contributor
0 Kudos

In addition to java you can also achieve it using XSLT mapping....

For XSLT mapping refer my replies in this thread:

Regards,

Abhishek.