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 » Copy Message Headers functionality

Post new topic  Reply to topic
 Copy Message Headers functionality « View previous topic :: View next topic » 
Author Message
sandeep.nandanwar
PostPosted: Tue Mar 03, 2015 8:13 am    Post subject: Copy Message Headers functionality Reply with quote

Novice

Joined: 21 Jan 2015
Posts: 13

Hi,

Scenario : I have to create a SOAP request message for invoking a Web Service in Compute node. The Request Message was created successfully which I have verified by connecting a MQOutput Node after compute node. However I didnt comment the CopyMessageHeaders procedure in the code and because of this inspite of the request message which was correct , i was not getting the proper response from the web service.I was getting HTTP 500 Internal Server Error. Operation Type = Unknown.
I had also set the value for MQMD = NULL in the compute node.

But, When I commented call to CopyMessageHeaders in the Main module of compute node the web service gave a proper response.

So here I would like to know what does CopyMessageHeaders procudure copies from the input message.

Thanks in Advance.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 03, 2015 8:20 am    Post subject: Re: Copy Message Headers functionality Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

sandeep.nandanwar wrote:

So here I would like to know what does CopyMessageHeaders procudure copies from the input message.
Thanks in Advance.

I hope we are talking here about the standard IBM delivered procedure and not one that has been customized to do a lot of other things...

It copies all headers. The last item in the root tree is the parser which holds the message payload. This last item is not copied....

So say you had Properties, MQMD, RFH, XMLNSC on your InputRoot, you would end up with Properties, MQMD, RFH on your OutputRoot.

I hope this makes it clear.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
adubya
PostPosted: Tue Mar 03, 2015 8:27 am    Post subject: Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

Have a look at the structure of the message tree here:

http://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac12610_.htm?lang=en

CopyMessageHeaders() copies all of the children under the Root node except the last in the list (which is the message body itself).
Back to top
View user's profile Send private message Send e-mail
sandeep.nandanwar
PostPosted: Tue Mar 03, 2015 8:47 am    Post subject: Reply with quote

Novice

Joined: 21 Jan 2015
Posts: 13

Thanks to both of you for your Quick response to my Query. Just to summarize except the message payload(Body) rest all the things are copied by the procedure CopyMessageHeaders to the OutputRoot.

Thanks !!!
Sandeep
Back to top
View user's profile Send private message
adubya
PostPosted: Tue Mar 03, 2015 10:55 am    Post subject: Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

sandeep.nandanwar wrote:
Just to summarize except the message payload(Body) rest all the things are copied by the procedure CopyMessageHeaders to the OutputRoot.


The things which are listed under the Root of the message tree in the link I posted are, yes.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Copy Message Headers functionality
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.