on 11-23-2015 7:34 AM
HI,
I have a requirement that I have to receive a file which can be xml/asexml or any other format. basically the requirement is that third party will send the data as well as image to PI. They might send xml or image as attachment or they might send image embedded in the xml/asexml or any other format.
I need to know what are the possibilities for these two scenario when they are sending it as attachment and when they are sending it as embedded in the file.
Thanks
Sherwin Singh.
Hi Sherwin,
If they are sending the image data as part of xml and not as attachment , the data will be embedded in CDATA segment. You need a java module or mapping to read the CDATA segment. The other data part which does not come as CDATA segment will come as ordinary field values. It is better if this comes as xml because then you can avoid reading attachment data.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sherwin,
I think your third party could send the file in the SOAP attachment, in this case you don't need to do any special in your sender side, only to set the checkbox Keep attachments in your sender SOAP.
Later, it's a bit more complicated because you would need to read the attachment to generate the file, you can do at mapping level: Read attachment content in Mapping | SCN, also you have this way more elegant to avoid to create the file manually, the java developmet is only to take the name of the file from the name of the attachment
However depending your receiver side you would not to do any special, for example if you will have a receiver ABAP proxy:
Hope this helps.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
26 | |
11 | |
10 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.