Author |
Message
|
Armeggedon45 |
Posted: Wed Jun 11, 2008 7:28 am Post subject: MQ Input -> HTTP Output |
|
|
Newbie
Joined: 05 Oct 2006 Posts: 4
|
Hey, new Broker developer here so apologies if this is an obvious question but here it goes.
I'm trying to develop two flows that front an MQ call with HTTP (to 'web service-ize' it). I've got the request flow working fine and pass the request Id from the HTTP request in as part of the MQ request. I get that ID back out the response flow (two totally separate flows) and set the response requestId property with that value.
Problem is that when I call this through a service client (XMLSpy in my case) I get back an empty response. Obviously thats not good!
I've traced it out and noticed that a value I set (OutputRoot.Properties.ReplyProtocol) shows up in the trace with a value of 'MQ' rather than the 'SOAP-HTTP' value I set to it. I don't know if thats the issue but thats where I'm looking right now.
I saw another similar post but no solution was given so any ideas or help would be much appreciated. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jun 11, 2008 7:31 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Don't web-serverize with http.
Use SOAP over JMS. (should take advantage of a number of things and allow for better performance. _________________ MQ & Broker admin |
|
Back to top |
|
 |
Armeggedon45 |
Posted: Wed Jun 11, 2008 7:33 am Post subject: |
|
|
Newbie
Joined: 05 Oct 2006 Posts: 4
|
Thats what we do in most cases. This is a special case and needs to have an HTTP front. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jun 11, 2008 7:40 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
I've traced it out and noticed that a value I set (OutputRoot.Properties.ReplyProtocol) shows up in the trace with a value of 'MQ' rather than the 'SOAP-HTTP' value I set to it. I don't know if thats the issue but thats where I'm looking right now.
|
I think you're on the right path for fixing this.
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
mqmatt |
Posted: Wed Jun 11, 2008 8:44 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
Do take a look at the Web Service Host sample in the HTTP nodes section of the samples gallery, which shows you how to webservices-enable an existing MQ application. |
|
Back to top |
|
 |
Armeggedon45 |
Posted: Wed Jun 11, 2008 8:47 am Post subject: |
|
|
Newbie
Joined: 05 Oct 2006 Posts: 4
|
I got the problem figured out. I needed to set the CodedCharSetId = 1208. That gave me a response back. |
|
Back to top |
|
 |
|