Hi Suni,
can you describe your use case a bit more in detail please?
The first document structure looks like a regular XML representation of an IDoc, the second structure looks like the IS-internal IData representation of the same.
You might want to check the SAP Adapter Built-In-Services if there is a matching service.
Regards,
Holger
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods