on 11-27-2008 10:44 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.