Author |
Message
|
sharadagarwal16 |
Posted: Thu Jun 04, 2009 5:39 am Post subject: HTTP nodes in websphere message broker 6.1 |
|
|
Novice
Joined: 04 Jun 2009 Posts: 13
|
Hi,
I am new to WMB v6.1. I have a requirement to build a flow which can pick values from a jsp page. Like as soon as i submit the jsp page, i should get the values (filled in a form on jsp) in message flow.
I got some idea after exploring the net that i cam use HTTPInput node, but can anyone tell me how should i go abt this?
Thanks in advance.
Sharad |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 04, 2009 5:47 am Post subject: Re: HTTP nodes in websphere message broker 6.1 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sharadagarwal16 wrote: |
I got some idea after exploring the net that i cam use HTTPInput node, but can anyone tell me how should i go abt this?
|
Get some training in WMB as you're new (it's not a simple product by any means), read the documentation on the HTTPInput node, determine how the data stream from the JSP should be interpreted, determine how you intend to achieve this & put together a flow.
FWIW reading the input stream from your web page is probably the easy bit.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
abs_cal |
Posted: Thu Jun 04, 2009 5:51 am Post subject: |
|
|
Acolyte
Joined: 18 Aug 2005 Posts: 62
|
You can do it two ways.
1. Configure WebServer to send messge to JMS/MQ
2. Create a WSDL based on expected JMS messages. Then create a Webservice based on WSDL and exposed this WS using message flow.
Create WSDl
Go to Broker Appliation development
Select strat from WSDL.. at the end it will ask you whether message flow will be exposed and consumed...choose exposed... |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Thu Jun 04, 2009 5:53 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
abs_cal wrote: |
You can do it two ways.
1. Configure WebServer to send messge to JMS/MQ
2. Create a WSDL based on expected JMS messages. Then create a Webservice based on WSDL and exposed this WS using message flow.
|
Who said anything about JMS?
Using the httpinput node should be most adequate. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 04, 2009 5:55 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
abs_cal wrote: |
You can do it two ways.
1. Configure WebServer to send messge to JMS/MQ
2. Create a WSDL based on expected JMS messages. Then create a Webservice based on WSDL and exposed this WS using message flow.
Create WSDl
Go to Broker Appliation development
Select strat from WSDL.. at the end it will ask you whether message flow will be exposed and consumed...choose exposed... |
Assumes that the JSP page conforms to a WSDL & isn't just a stand alone. It's also a bit more complex to build the flow than you make it sound..... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Thu Jun 04, 2009 6:00 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
Vitor, when can I delete my own posts so that I can repost responses and confuse others like what you just did to me!!!!
Ha ha. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 04, 2009 6:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
WMBDEV1 wrote: |
Vitor, when can I delete my own posts so that I can repost responses and confuse others like what you just did to me!!!!
|
Psychological warfare is the exclusive domain of moderators.
As is deleting posts that, when read back, didn't actually make all that much sense & preserving one's reputation.
(The first person to point out that none of my posts make all that much sense will be moderated. Repeatedly and quite hard, with a fence post. ) _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
sharadagarwal16 |
Posted: Thu Jun 04, 2009 6:14 am Post subject: HTTP nodes in websphere message broker 6.1 |
|
|
Novice
Joined: 04 Jun 2009 Posts: 13
|
Its all fine, that i need some training and go abt the WMB documentation, but as of now any of u WMB masters can tell me as to how i can achieve the same without intervention of JMS/MQ/webservices. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 04, 2009 6:22 am Post subject: Re: HTTP nodes in websphere message broker 6.1 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sharadagarwal16 wrote: |
as of now any of u WMB masters can tell me as to how i can achieve the same |
I stand by all of my comments in my first post.
sharadagarwal16 wrote: |
without intervention of JMS/MQ/webservices. |
Don't worry about that; I feel the poster who suggested that may have misinterpreted your requirements. You don't need any of that. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Thu Jun 04, 2009 6:24 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 04, 2009 6:29 am Post subject: Re: HTTP nodes in websphere message broker 6.1 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sharadagarwal16 wrote: |
how i can achieve the same |
It's also worth pointing out this is a question with multiple answers. Like I said, it's quite straightforward to use the HTTPInput node. What you need to do after that will influence your thinking.
This is aside from the whole deployment and execution question. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jun 09, 2009 11:48 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
You will not recieve different answers here or here to those received here.
Indeed, repeatedly posting the same question is likely to diminish our desire to help as our level of irritation goes up.
If you have a different question, resulting from your efforts, then fine (given that we're not a training resource so "what should I do next" is never a valid question). Post what you've done, what happened, what you did to try & resolve it and maybe you'll get an answer.
Reposting "I need to do this, tell me how" is unacceptable. Reposting duplicates in multiple forums is unacceptable. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
sharadagarwal16 |
Posted: Wed Jun 10, 2009 4:06 am Post subject: |
|
|
Novice
Joined: 04 Jun 2009 Posts: 13
|
Hey Vitor thats fine now please suggest some solution
Guys i have been able to do some bit of this as now http request is coming from the jsp to the httpinput node but it gives -
XML parsing error as soon as it passes httpinput node.
I have nothing to do with webservice. And one thing more when i see the HttpInputHeader information in the debug mode it displays content-type = application/x-www-form-urlencoded. How can i change this content type to text/xml. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 10, 2009 4:17 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sharadagarwal16 wrote: |
Hey Vitor thats fine now please suggest some solution |
Take a user trace? Debug the input message?
sharadagarwal16 wrote: |
it gives -
XML parsing error as soon as it passes httpinput node. |
I'm not surprised - how are you expressing the results of the JSP as an XML document to the input stream?
sharadagarwal16 wrote: |
How can i change this content type to text/xml. |
Change the post type on the sender side. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|