on 03-14-2018 9:33 PM
Hello Experts,
Today Purchase orders are sent to Ariba via PI 7.3 in cXML format using HTTP_AAE receiver adapter as Http Post has to be used (We are not using the standard Ariba adapter). RequestResponseBean is used for processing the response from Ariba.
Now the requirement is to send Purchase Orders with attachments to Ariba. This has to be sent in multipart format only using HTTP post.
For this an adapter module is developed that reads the XML payload with attachments and converts it in multipart format. This module is placed before the RequestResponseBean module in the receiver HTTP_AAE channel.
The module transforms the data in multipart format and sets it as payload.
payload.setContent(sb.toString().getBytes("ISO-8859-1"))
But when this message is sent to Ariba we get the below error -
<Status code="406" text="Not Acceptable">The document could not be parsed: Content is not allowed in prolog. (line 1, column 1) [ANCLS-128422016]</Status>
If the message is sent without attachments (just in cXML format) it posts in Ariba successfully.
Need inputs as to why this might be failing when sending as multipart. Or is there something that we are doing incorrectly.
Thanks,
Suraj
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.