cancel
Showing results for 
Search instead for 
Did you mean: 

How to receive message via HTTP Sender CC with attachment

Former Member
0 Kudos

Hi,

I would like to receive the follow structure messages from HTTP sender CC with attachment.

Input:

<?xml version="1.0"?>

<document DTD-VERSION="2.2.1">

<a>test</a>

</document>aaaaaaaaaaaaa

Output:

<?xml version="1.0"?>

<document DTD-VERSION="2.2.1">

<aa>test_xxxx</aa>

</document>aaaaaaaaaaaaa

But seems PI cannot correctly parser the XML if I add the tailing aaaaaaaaaaaaa to the message. I think it should be some thing I need to do with the CC to let it can process the attachment.

Thank you,

Accepted Solutions (0)

Answers (2)

Answers (2)

prateek
Active Contributor
0 Kudos

HTTP adapter does not support attchments.

The structure u provided here is not a proper xml file while http ususally supports xml format only.

Instead u may try soap adapter in "no soap" mode with attachment to achieve the same result.

Regards,

Prateek

Former Member
0 Kudos

HI

HTTP adapter will not be able to handle attachments. SOAP can help in that

http://www.w3.org/TR/SOAP-attachments

Another possiblity is instead of sending attachment is it possible that you create a custom header with that attachment data so that HTTP adapter parse it.

Thanks

Gaurav