Skip to Content
0
Former Member
Feb 25, 2008 at 11:11 AM

Identifying payload in PayloadSwapBean

110 Views

Hi all.

I need to get a payload from a SOAP envelope and put it to inbound msg (using mapping I guess).

the trouble is that I can't identify payload. Here is the example of soap:

content-id: payload-DCE3909E1C0EDEF189FD0015172982F2@sap.com

content-type: application/pdf

JVBERi0xLjQNJeLj... - my payload in base64...

--SAP_DCE390A183E3C1F19B380015171EECD3_END

content-id: payload-DCE3909E1C0EDFF189FD0015172982F2@sap.com

Content-Type: application/xml

<?xml version='1.0' encoding='utf-8'?>

<my second payload - actually, it's unnecessary at all>

SAP_DCE390A183E3C1F19B380015171EECD3_END

So I don't have any fields like Content-Disposition or Content-Description to identify my payload. Furthermore, content-type of first payload can be changed (application/pdf, application/msword, application/txt, and so on). So please, assist, how I can get this payload and make mapping on target field. May be it can be don without PayloadSwapBean at all?

Again, using PayloadSwapBean, which should be my next steps after declaring swap.keyName and swap.keyValue elements.

Thank you.