ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » HTTP response xml as tabular form

Post new topic  Reply to topic
 HTTP response xml as tabular form « View previous topic :: View next topic » 
Author Message
vikas.bhu
PostPosted: Wed Jan 22, 2014 7:06 am    Post subject: HTTP response xml as tabular form Reply with quote

Disciple

Joined: 17 May 2009
Posts: 159

Hi All,

I have a requirement in which I have to invoke a web service and xml received in response has to be shown in tabular form.

Through the following flow I am getting response xml.
(HTTPInput node-> Compute node->HTTPReply node).

But I am not getting any clue how can I show xml data in tabular form in HTML.
Is it possible in esql?

Thanks
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Jan 22, 2014 7:09 am    Post subject: Re: HTTP response xml as tabular form Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

vikas.bhu wrote:
Is it possible in esql?


Anything's possible in ESQL - you just need to map the source to the required format. I doubt there's a quick & simple way to do it; others may know better
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dogorsy
PostPosted: Wed Jan 22, 2014 7:12 am    Post subject: Re: HTTP response xml as tabular form Reply with quote

Knight

Joined: 13 Mar 2013
Posts: 553
Location: Home Office

vikas.bhu wrote:
tabular form


Maybe you should be more specific and say exactly what you would like your output message to look like.
And I as I was replying, also Vitor replied, giving a similar sort of view.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jan 22, 2014 7:27 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Most people use stylesheets ( XSL or CSS ) for generating HTML from XML.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
vikas.bhu
PostPosted: Wed Jan 22, 2014 9:08 am    Post subject: Reply with quote

Disciple

Joined: 17 May 2009
Posts: 159

I got some thing that If set header contentType ='text/html'.And play with the code it may work.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Jan 22, 2014 9:16 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

vikas.bhu wrote:
I got some thing that If set header contentType ='text/html'.And play with the code it may work.


It's certainly true that if your output protocol has a header with a content type, and the content is in html, then setting the header to describe the content as html is a good thing.

I doubt it will automagically convert XML into HTML. It may well prompt the receipient to display it in a web browser or similar but that's not quite the same thing.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jan 22, 2014 9:18 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Consider this:

If your web service returned XML as you say, and you wanted to present the output as a PDF document, would simply setting contentType to 'application/pdf' result in a properly formed PDF document?

Same principle if a more extreme example.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
vikas.bhu
PostPosted: Sun Jan 26, 2014 6:53 am    Post subject: Reply with quote

Disciple

Joined: 17 May 2009
Posts: 159

Thanks Guys for help..

I am able to achieve by changing the contain type as text/html and writing xslt.

thanks again..
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » HTTP response xml as tabular form
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.