cancel
Showing results for 
Search instead for 
Did you mean: 

Sending multipart using HTTP_AAE receiver adapter in PI 7.3

former_member201987
Participant
0 Kudos

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

former_member201987
Participant
0 Kudos

Any help on this is highly appreciated.

Thanks,

Suraj

former_member201987
Participant
0 Kudos

Hello All,

If anyone has any inputs, please let me know. We are stuck at this point. Also let me know if more info is needed.

Many Thanks,

Suraj

Accepted Solutions (0)

Answers (0)