cancel
Showing results for 
Search instead for 
Did you mean: 

Sending a 3DES encrypted zip file as one fields in the SOAP request xml.

Former Member
0 Kudos

Dear All,

We have a requirement to

- to create a text file, after mapping and content converisons, out of an IDoc xml file,

- zip this file

- encrypt this file using 3DES

- send this encrypted file as one of the tags of an xml request file to a webservice

Could one of you please help me with any pointers to how we can do this, mainly on how to send the encrypted zip file as one of the tags of an xml file?

Please write back to me if you need more details/clarity on my query.

Kind Regards,

Thomas.

Accepted Solutions (0)

Answers (1)

Answers (1)

udo_martens
Active Contributor
0 Kudos

Hi Thomas,

>to create a text file, after mapping and content converisons, out of an IDoc xml file,

hopefuly no questions

>zip this file

[Payload Zip Bean|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5899] [original link is broken] [original link is broken] [original link is broken];

>encrypt this file using 3DES

Standard of file adapter

>send this encrypted file as one of the tags of an xml request file to a webservice

[additional XSL at adapter|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823] [original link is broken] [original link is broken] [original link is broken]; which should create a CDATA element, look to source code of [BPM Container for any Message Type|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3574] [original link is broken] [original link is broken] [original link is broken];. This will assumedly not work because of encoding errors (i m not shure).

Regards,

Udo

Former Member
0 Kudos

Hi Udo,

Thank you for the response.

Please let me try this option and get back to you with my findings.

Kind Regards,

Thomas.

udo_martens
Active Contributor
0 Kudos

Hi Thomas,

let me add a point:

The last step wouldnt work because of automatical parsing. You would need a non parsing mapping, for example ABAP (Java is the alternative). Just take the whole XSTRING parameter input and store it at string (FM ECATT_CONV_XSTRING_TO_STRING). Then create a DOM tree and create your output. In the field for the encrypted message create additional the CDATA element and put the input string inside.

[XML DOM Processing in ABAP part I - Convert an ABAP table into XML file using SAP DOM Approach.|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2657] [original link is broken] [original link is broken] [original link is broken];

[XML DOM Processing in ABAP part II - Convert an XML file into an ABAP table using SAP DOM Approach.|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2702] [original link is broken] [original link is broken] [original link is broken];

Regards,

Udo