Skip to Content

Sending multipart using HTTP_AAE receiver adapter in PI 7.3

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers