cancel
Showing results for 
Search instead for 
Did you mean: 

XI HTTP Receiver posting a payload to a servlet

Former Member
0 Kudos

I have a scenario where I would like to send an XI message to a j2ee servlet. The servlet is expecting 1 parameter, which I would like to be my XI Payload. I can test this with out XI by an html page posting a form element (xmldata) to the servlet. However, in the http receiver configuration, I cannot see an area for referencing the payload as a form element or query string variable.

Any examples or documentation would be great.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Yaghya,

I familar with the http adapter and understand that it is doing a post. I'm trying to post the payload as a specific name as a parameter to the servlet. For exemple, http://dnsname:port/invoke?$xmldata=xmldata

Former Member
0 Kudos

If it is not too late, in HTTP receiver adapter try this :

put value "application/x-www-form-urlencoded" in Content-type

and "&xmldata=" in prolog

and "&end=yes" in epilog

Former Member
0 Kudos

XI will do an HTTP POST with the XI Payload being the HTTP Payload.