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 » Wrap existing incoming xml message within a header...

Post new topic  Reply to topic
 Wrap existing incoming xml message within a header... « View previous topic :: View next topic » 
Author Message
klabran
PostPosted: Tue Jun 01, 2004 2:51 pm    Post subject: Wrap existing incoming xml message within a header... Reply with quote

Master

Joined: 19 Feb 2004
Posts: 259
Location: Flagstaff AZ

I am trying to take the incoming XML message ....

<message>
<Name>BLAH</Name>
<Complex>
<Date>BLAH</Date>
<Code>BLAH</Code>
</Complex>
</message>

and in a compute node add a header describing the message like...

<messageHeader>
<AppName>BLAH</AppName>
<Target>BLAH</Target>
<Status>BLAH</Status>
<messageContent>
<message>
<Name>BLAH</Name>
<Complex>
<Date>BLAH</Date>
<Code>BLAH</Code>
</Complex>
</message>
</messageContent>
</messageHeader>

I tried in the node to set the header info first and then do the following below but I am getting an "No valid body of the document could be found" error.

-- SET HEADER INFO FIRST

--Add Content of incoming to message...
SET OutputRoot.XML.MQmessageEnvelope.messageContent.*[] = InputBody.legalEnvelope.*[];

Any ideas on how to do this?
Back to top
View user's profile Send private message Visit poster's website
klabran
PostPosted: Tue Jun 01, 2004 3:30 pm    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 259
Location: Flagstaff AZ

I did the following to do this...

--SET Header Info...

--Set incoming message to be part of content of new message.
DECLARE XYZ REFERENCE TO OutputRoot.XML.legalEnvelope;
DETACH XYZ;
ATTACH XYZ TO OutputRoot.XML.MQmessageEnvelope.messageContent AS FIRSTCHILD;

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Wrap existing incoming xml message within a 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.