cancel
Showing results for 
Search instead for 
Did you mean: 

Http response in XML format

Former Member
0 Kudos

Hi All,

I am using http receiver adapter to send a request to a website and in turn i am getting the response in a plain text format.How to get the response in an XML format so that XI can understand that?

Jack

Accepted Solutions (0)

Answers (2)

Answers (2)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

This could be resolved by changing the Content Type options in the HTTP Receiver Adapter

Now, I'm not sure what is exactly your requirement, but basically, it's like this:

Content Type: text/plain or application/x-www-form-urlencoded

Just make sure that the field Mask Special Characters(URL Escaping) is checked

Then

Prolog: xmldata=

Hope this helps,

Former Member
0 Kudos

Hi Mark, Whatever you have mentioned is to format the request message. But my issue is with the response..that is not coming in the XML format..I mean whatever you see in the webpage for my http request is coming in to XI as plain text..

Former Member
0 Kudos

Hi,

for this you will have to ask the target HTTP application to change their application to send the HTTP response msg data in XML tags and that structure you will define in XI for recieving the HTTP response msg.

Regards,

Rajeev Gupta

Former Member
0 Kudos

Yes, but they are sending the response in XML only. i.e if I call that url in internet explorer it displays the response in XML format like below.

<Output> result </Output>

But the same url when I call from my http receiver adapter I am getting the same message '<Output> result </Output>' but in the text format.

Former Member
0 Kudos

Hi,

see even if you are getting the HTTP response in text and it is having data like '<Output> result </Output>' means data in a proper XML structure, then i think there is no issue in it..........just define its structure in IR for HTTP response structure and then when your target HTTP application will send a response msg, it will be received in your XI system.

Regards,

Rajeev Gupta

Former Member
0 Kudos

Rajeev, I tried that, but it did not work..Is there any setting we need to do in the receiver http channel?

Former Member
0 Kudos

Hi,

i dont think that your HTTP receiver adapter setting will help you in this issue because HTTP receiver adapter settings will be used only in sending the HTTP req msg and not for getting back its response...

well, just check from your target HTTP application that they are sending the HTTP response msg to your XI integration engine URL defined in SXMB_ADM transaction in your XI system..........and get the data type XSD from HTTP application and use it in an external definition in IR and then use it in a msg interface.........then you will get your HTTP response msg in your XI system.

Regards,

Rajeev Gupta