Author |
Message
|
vikas.bhu |
Posted: Wed Jan 22, 2014 7:06 am Post subject: HTTP response xml as tabular form |
|
|
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 |
|
 |
Vitor |
Posted: Wed Jan 22, 2014 7:09 am Post subject: Re: HTTP response xml as tabular form |
|
|
 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 |
|
 |
dogorsy |
Posted: Wed Jan 22, 2014 7:12 am Post subject: Re: HTTP response xml as tabular form |
|
|
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 |
|
 |
kimbert |
Posted: Wed Jan 22, 2014 7:27 am Post subject: |
|
|
 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 |
|
 |
vikas.bhu |
Posted: Wed Jan 22, 2014 9:08 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Wed Jan 22, 2014 9:16 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Wed Jan 22, 2014 9:18 am Post subject: |
|
|
 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 |
|
 |
vikas.bhu |
Posted: Sun Jan 26, 2014 6:53 am Post subject: |
|
|
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 |
|
 |
|