cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP receiver error

Former Member
0 Kudos

Hey guys

i m doing a File to HTTP scenario,i m getting a chequered flag in MONI and i also checked in the TCP gateway and getting return code 200,which is success.

but on the other side the receiver is not getting the XML payload properly,he wants us to send the whole payload as a parameter in the URL itself.

please let me know this is possible in XI?

thanx

ahmad

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

In principle you can do this with ASMA, like in this blog:

/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

Instead of HTTP header fields, you use URL parameters instead.

You need Java Mapping to transform the XML stream to String and put this into the ASMA. I am not sure, if there is any size limit for ASMA, so cannot assure you that this will work.

Regards

Stefan

Former Member
0 Kudos

Thanx Stefan

one way around for the receiver is to get a carraige return after the whole XML payload.he is actually using WebMethods and is unable to process the XML payload coming from XI.

is there any way i can add a carriage return at the end of XML payload?

thanx

ahmad

stefan_grube
Active Contributor
0 Kudos

You can add a CR with Java or XSLT mapping.

The Java mapping seems to be the easiest as you just cpoy the whole input stream to uotput stream and add the CR after this.

Regards

Stefan

Former Member
0 Kudos

Hey Stefan

i added %0A%0D in the epilog and now am getting a CR on the receiver side.

thanx for ur help

ahmad