Author |
Message
|
aoran@il.ibm.com |
Posted: Tue Feb 05, 2008 3:09 am Post subject: Converting MQMD to HTTP header |
|
|
Newbie
Joined: 22 Jan 2008 Posts: 7
|
Hi all
I'm using WMB V6.1 along with MQ V6 on a windows platform.
I'm trying to send a message using MQInput node and get a response
through HTTP.
My problem is how to convert the headers from MQMD to HTTP.
My flow is as follows:
MQInput--->Compute--->HTTPReply
(it is not the whole flow, it is only the part in which I intend to perform the conversion).
The message type is XML, and it contains the Reply path within its boby.
Many thanks...
 |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 05, 2008 3:18 am Post subject: Re: Converting MQMD to HTTP header |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
aoran@il.ibm.com wrote: |
My problem is how to convert the headers from MQMD to HTTP.
My flow is as follows:
MQInput--->Compute--->HTTPReply
|
The simple answer is "use the Compute node". Presumably you've tried that, so what happens that's prompted you to post? Error messages, unexpected results, rain of toads, what?
(Given your screen name which, oddly, seems to be your email address I'd have thought you'd have access to all sorts of materials to assist you)
Also how are you replying over http to a request input over MQ? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
aoran@il.ibm.com |
Posted: Tue Feb 05, 2008 4:24 am Post subject: |
|
|
Newbie
Joined: 22 Jan 2008 Posts: 7
|
My problem is the header conversion within the compute node.
How can I generate the HTTP header using ESQL?
another problem is how to reply to HTTP if the original message was received using MQInput node. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Feb 05, 2008 4:50 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can't send an HTTP Reply if there hasn't been, somewhere, an HTTP Inputto match it up.
There won't be an HTTP Client anywhere, listening for the reply.
That said, you could send an HTTP Request.
Look at the "HTTP nodes" sample in the Samples Gallery - it's under Technology samples in the WMB section. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 05, 2008 5:04 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
aoran@il.ibm.com wrote: |
How can I generate the HTTP header using ESQL?
|
Is this a trick question?
aoran@il.ibm.com wrote: |
another problem is how to reply to HTTP if the original message was received using MQInput node. |
That's what prompted my question. If the request came over MQ, how could you possibly reply over http? The requester is, presumably, waiting for an MQ response. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
aoran@il.ibm.com |
Posted: Tue Feb 05, 2008 5:17 am Post subject: |
|
|
Newbie
Joined: 22 Jan 2008 Posts: 7
|
Forget about the reply....How can I convert the MQMD to HTTP Header??
until now I've used the following ESQL code:
CALL CopyEntireMessage();
set OutputRoot.MQMD = null;
create NEXTSIBLING of OutputRoot.Properties domain 'HTTPRequestHeader';
set OutputRoot.Properties.ReplyProtocol = 'SOAP-HTTP';
set OutputRoot.HTTPRequestHeader."Content-Type" = 'text/xml';
but when the message went out of the compute node the ReplyProtocol changed back to MQ. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Feb 05, 2008 5:20 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The rules of precedence for Properties vs. Transport Specific Headers have changed in v6.1 from v6.
In v6.0, the Properties tree always took precedent. In v6.1, it's a little different.
I dug up a reference on this in the last couple of weeks, in reply to a comment from EddieA. I don't feel like digging it back up, or digging up the conversation. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
aoran@il.ibm.com |
Posted: Tue Feb 05, 2008 5:32 am Post subject: |
|
|
Newbie
Joined: 22 Jan 2008 Posts: 7
|
I'll look for it myself
Many thanks |
|
Back to top |
|
 |
|