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 » Format of the message

Post new topic  Reply to topic
 Format of the message « View previous topic :: View next topic » 
Author Message
vijayakumar
PostPosted: Thu Sep 16, 2010 9:34 pm    Post subject: Format of the message Reply with quote

Centurion

Joined: 01 Aug 2010
Posts: 101

i am trying to post a message from WMB 6.1 , in MQ the message is like

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Messages><publish>etXItem</publish><rige><family>XI</family><type>Cre</type><id>500029213</id><rig>

can anyone help me why i am getting like this &lt before the tag ? find below the code .

SET OutputRoot.XML.(XML.XmlDecl) = '';
-- Set the Version within the XML Declaration
SET OutputRoot.XML.(XML.XmlDecl).(XML.Version) = '1.0';
-- Set the Encoding within the XML Declaration
SET OutputRoot.XML.(XML.XmlDecl).(XML."Encoding") = 'UTF-8';
-- Set Standalone within the XML Declaration
SET OutputRoot.XML.(XML.XmlDecl).(XML.Standalone) = 'yes';

set OutputRoot.XML.Messages.publish=
Environment.Variables.Message.publishname;
set OutputRoot.XML.Messages.ril.family=
Environment.Variables.Message.family;
set OutputRoot.XML.Messages.ril.type=
Environment.Variables.Message.type;
set OutputRoot.XML.Messages.ril.id=
Environment.Variables.Message.id;
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Sep 16, 2010 10:25 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>


Translates to...
Code:

<xml version="1.0" encoding="UTF-8" standalone="yes">


Does this make some sense now?

I see you are trying to use the now depreciated XML parser domain. Please change it to be XMLNSC or you will most certainly face the wrath of 'kimbert'
(That includes the Attributes)

Take a user trace of the ${Root} and post it here. This way we can see more of your whole output message tree.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
vijayakumar
PostPosted: Sun Sep 19, 2010 10:38 pm    Post subject: Reply with quote

Centurion

Joined: 01 Aug 2010
Posts: 101

but we are not using any message set for this message . If we use XMLNSC , we have to provide the message set rite .
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 20, 2010 1:21 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

vijayakumar wrote:
but we are not using any message set for this message . If we use XMLNSC , we have to provide the message set rite .


What happens when you try to use XMLNSC without a message set?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Sep 20, 2010 4:06 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

vijayakumar wrote:
If we use XMLNSC , we have to provide the message set rite .


What makes you think that? If "think" is the word I'm looking for?
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Format of the message
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.