on 08-13-2009 2:21 PM
Hello,
in a proxy --> http scenario I receive a message with SOAP attachment (base64 encoded). The requirement on http receiver side is now, that the attachment is put in a single element, just like:
<attachment> base64code </attachment>
Is there a simple way to do this? I guess I have to use Java mapping, but I am still not sure how to handle this requirement.
Thank you for your help.
This problem is solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you have an abap or Java proxy on sender side, is there no way to do this in the application?
If possible, this is way easier as doing it in PI.
In PI 7.1 you can read attachments i Java mapping, in PI 7.0 you can do this only in an adapter module.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
unfortunately it is not possible to include the attachment in a single field on sender side. So two things are required from PI side:
- Encode the attachment (e.g. aPDF) in base64
- Map the attachment to a single field
I am not sure how to do this in a Java Mapping (at least not how to map it to a field). Any idea or advice on this?
Thank you very much.
Hi,
good blog thank you very much. Obviously there is an SAP API available that would do most of the work for me:
com.sap.aii.utilxi.base64.api.Base64.encode(bs);
However so far it is still not sure whether SAP Proxy sends the attachment as SOAP attachment or within a single field (depends on the technical restrictions, no final decision is taken yet).
However if they are able to send the bytecode in a single field it might even be possible to convert the content using an UDF using the above mentioned API ?.
However I am still not sure how to extract an attachment in case SAP cannot deliver the content in a single field.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.