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 » Converting MQMD to HTTP header

Post new topic  Reply to topic
 Converting MQMD to HTTP header « View previous topic :: View next topic » 
Author Message
aoran@il.ibm.com
PostPosted: Tue Feb 05, 2008 3:09 am    Post subject: Converting MQMD to HTTP header Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Feb 05, 2008 3:18 am    Post subject: Re: Converting MQMD to HTTP header Reply with quote

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
View user's profile Send private message
aoran@il.ibm.com
PostPosted: Tue Feb 05, 2008 4:24 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Feb 05, 2008 4:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Feb 05, 2008 5:04 am    Post subject: Reply with quote

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
View user's profile Send private message
aoran@il.ibm.com
PostPosted: Tue Feb 05, 2008 5:17 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Feb 05, 2008 5:20 am    Post subject: Reply with quote

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
View user's profile Send private message
aoran@il.ibm.com
PostPosted: Tue Feb 05, 2008 5:32 am    Post subject: Reply with quote

Newbie

Joined: 22 Jan 2008
Posts: 7

I'll look for it myself

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Converting MQMD to HTTP header
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.