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 » Build Tree using xml schema datatype

Post new topic  Reply to topic
 Build Tree using xml schema datatype « View previous topic :: View next topic » 
Author Message
pavan15
PostPosted: Wed Dec 22, 2010 2:23 pm    Post subject: Build Tree using xml schema datatype Reply with quote

Novice

Joined: 22 Dec 2010
Posts: 10

Hi All,

I have a messageflow which has following nodes

MQINPUT---->Compute node---->MQOutput node

I am parsing the incoming xml message on MQINPUT node using XMLNSC Messagedomain with Messageset created from Imported xml schema below.I checked the property "Build Tree using xml schema datatype" on MQINPUT node.
compute node copies entire message from input to output.

<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
<xsd:element name="dc.event.model">
<xsd:complexType>
<xsd:all>
<xsd:element name="GB" type="xsd:string"/>
<xsd:element name="GT" type="xsd:string"/>
<xsd:element name="ET">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value="D"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="fname" type="xsd:string"/>
<xsd:element name="lname" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
</xsd:element>
</xsd:schema>

Now when I put the xml message below

<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2010 (http://www.altova.com)-->
<dc.event.model xsi:noNamespaceSchemaLocation="sample.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<GB>Str</GB>
<GT>String1</GT>
<ET>D</ET>
<fname>String2</fname>
<lname>String3</lname>
</dc.event.model>


I am getting value of String3 after the parent tag always in the output which is not valid xml like below
<?xml version="1.0" encoding="UTF-8"?>
<dc.event.model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="sample.xsd">
String3
<GB>Str</GB>
<GT>String1</GT>
<ET>D</ET>
<fname>String2</fname>
<lname>String3</lname>
</dc.event.model>


Toolkit I am using is WebSphere Message Broker Toolkit - Version: 7.0.0.
Broker version - WebSphere Message Broker 7.0
Please let me know your thougths.
Back to top
View user's profile Send private message
harish_td
PostPosted: Wed Dec 22, 2010 7:14 pm    Post subject: Re: Build Tree using xml schema datatype Reply with quote

Master

Joined: 13 Feb 2006
Posts: 236

I have tried your scenario with your input message and i do not face any such problems.
Can you check with the help of Trace Nodes before and after the Compute Node, Where the wrong inclusion of data is happening?
Back to top
View user's profile Send private message Yahoo Messenger
pavan15
PostPosted: Thu Dec 23, 2010 8:34 am    Post subject: Reply with quote

Novice

Joined: 22 Dec 2010
Posts: 10

Hi Harish,
Thanks for the reply. I forgot to tell in previous post that I am validating against xml schema in the input node.I am getting the junk value immediately after MQInput node. In which version of WMB and Toolkit did you try this ?

Below is the trace file immediately after inputnode and before compute node
[( ['MQROOT' : 0xe1bcc0]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x1a02b308]
(0x03000000:NameValue):MessageSet = 'MyApplicationMessageSet' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 437 (INTEGER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2010-12-23 16:13:12.720' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'MQ' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name ):MQMD = ( ['MQHMD' : 0x1a041508]
(0x03000000:NameValue):SourceQueue = 'VALIDATION.IN' (CHARACTER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 437 (INTEGER)
(0x03000000:NameValue):Format = ' ' (CHARACTER)
(0x03000000:NameValue):Version = 2 (INTEGER)
(0x03000000:NameValue):Report = 0 (INTEGER)
(0x03000000:NameValue):MsgType = 8 (INTEGER)
(0x03000000:NameValue):Expiry = -1 (INTEGER)
(0x03000000:NameValue):Feedback = 0 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):Persistence = 0 (INTEGER)
(0x03000000:NameValue):MsgId = X'414d512042524f4b4552514d47522020a148124d2000aa06' (BLOB)
(0x03000000:NameValue):CorrelId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):BackoutCount = 0 (INTEGER)
(0x03000000:NameValue):ReplyToQ = ' ' (CHARACTER)
(0x03000000:NameValue):ReplyToQMgr = 'BROKERQMGR ' (CHARACTER)
(0x03000000:NameValue):UserIdentifier = 'vpera7 ' (CHARACTER)
(0x03000000:NameValue):AccountingToken = X'160105150000007e4ffef7fcee2624f1a457a25fba010000000000000000000b' (BLOB)
(0x03000000:NameValue):ApplIdentityData = ' ' (CHARACTER)
(0x03000000:NameValue):PutApplType = 11 (INTEGER)
(0x03000000:NameValue):PutApplName = 'C:\ih03-2009\rfhutil.exe ' (CHARACTER)
(0x03000000:NameValue):PutDate = DATE '2010-12-23' (DATE)
(0x03000000:NameValue):PutTime = GMTTIME '16:13:12.720' (GMTTIME)
(0x03000000:NameValue):ApplOriginData = ' ' (CHARACTER)
(0x03000000:NameValue):GroupId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):MsgSeqNumber = 1 (INTEGER)
(0x03000000:NameValue):Offset = 0 (INTEGER)
(0x03000000:NameValue):MsgFlags = 0 (INTEGER)
(0x03000000:NameValue):OriginalLength = -1 (INTEGER)
)
(0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0xe191a0]
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
(0x03000100:Attribute):Encoding = 'UTF-8' (CHARACTER)
)
(0x03000000:PCDataField ):dc.event.model = 'String3' (CHARACTER)
(
(0x03000102:NamespaceDecl)http://www.w3.org/2000/xmlns/:xsi = 'http://www.w3.org/2001/XMLSchema-instance' (CHARACTER)
(0x03000100:Attribute )http://www.w3.org/2001/XMLSchema-instance:noNamespaceSchemaLocation = 'C:\Documents%2220and%2220Settings\vpera7

\Desktop\sample.xsd' (CHARACTER)
(0x03000000:PCDataField ):GB = 'Str' (CHARACTER)
(0x03000000:PCDataField ):GT = 'String1' (CHARACTER)
(0x03000000:PCDataField ):ET = 'D' (CHARACTER)
(0x03000000:PCDataField ):fname = 'String2' (CHARACTER)
(0x03000000:PCDataField ):lname = 'String3' (CHARACTER)
)
)
)( ['xmlnsc' : 0xe191a0]
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
(0x03000100:Attribute):Encoding = 'UTF-8' (CHARACTER)
)
(0x03000000:PCDataField ):dc.event.model = 'String3' (CHARACTER)
(
(0x03000102:NamespaceDecl)http://www.w3.org/2000/xmlns/:xsi = 'http://www.w3.org/2001/XMLSchema-instance' (CHARACTER)
(0x03000100:Attribute )http://www.w3.org/2001/XMLSchema-instance:noNamespaceSchemaLocation = 'C:\Documents%2220and%2220Settings\vpera7

\Desktop\sample.xsd' (CHARACTER)
(0x03000000:PCDataField ):GB = 'Str' (CHARACTER)
(0x03000000:PCDataField ):GT = 'String1' (CHARACTER)
(0x03000000:PCDataField ):ET = 'D' (CHARACTER)
(0x03000000:PCDataField ):fname = 'String2' (CHARACTER)
(0x03000000:PCDataField ):lname = 'String3' (CHARACTER)
)
)


Below is the Trace file immediately after compute node and before MQOutput node

[( ['MQROOT' : 0x1a18ef28]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x1a02bb90]
(0x03000000:NameValue):MessageSet = 'MyApplicationMessageSet' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 437 (INTEGER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2010-12-23 16:13:12.720' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'MQ' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name ):MQMD = ( ['MQHMD' : 0x1a040ae8]
(0x03000000:NameValue):SourceQueue = 'VALIDATION.IN' (CHARACTER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 437 (INTEGER)
(0x03000000:NameValue):Format = ' ' (CHARACTER)
(0x03000000:NameValue):Version = 2 (INTEGER)
(0x03000000:NameValue):Report = 0 (INTEGER)
(0x03000000:NameValue):MsgType = 8 (INTEGER)
(0x03000000:NameValue):Expiry = -1 (INTEGER)
(0x03000000:NameValue):Feedback = 0 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):Persistence = 0 (INTEGER)
(0x03000000:NameValue):MsgId = X'414d512042524f4b4552514d47522020a148124d2000aa06' (BLOB)
(0x03000000:NameValue):CorrelId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):BackoutCount = 0 (INTEGER)
(0x03000000:NameValue):ReplyToQ = ' ' (CHARACTER)
(0x03000000:NameValue):ReplyToQMgr = 'BROKERQMGR ' (CHARACTER)
(0x03000000:NameValue):UserIdentifier = 'vpera7 ' (CHARACTER)
(0x03000000:NameValue):AccountingToken = X'160105150000007e4ffef7fcee2624f1a457a25fba010000000000000000000b' (BLOB)
(0x03000000:NameValue):ApplIdentityData = ' ' (CHARACTER)
(0x03000000:NameValue):PutApplType = 11 (INTEGER)
(0x03000000:NameValue):PutApplName = 'C:\ih03-2009\rfhutil.exe ' (CHARACTER)
(0x03000000:NameValue):PutDate = DATE '2010-12-23' (DATE)
(0x03000000:NameValue):PutTime = GMTTIME '16:13:12.720' (GMTTIME)
(0x03000000:NameValue):ApplOriginData = ' ' (CHARACTER)
(0x03000000:NameValue):GroupId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):MsgSeqNumber = 1 (INTEGER)
(0x03000000:NameValue):Offset = 0 (INTEGER)
(0x03000000:NameValue):MsgFlags = 0 (INTEGER)
(0x03000000:NameValue):OriginalLength = -1 (INTEGER)
)
(0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0x1a18e688]
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
(0x03000100:Attribute):Encoding = 'UTF-8' (CHARACTER)
)
(0x03000000:PCDataField ):dc.event.model = 'String3' (CHARACTER)
(
(0x03000102:NamespaceDecl)http://www.w3.org/2000/xmlns/:xsi = 'http://www.w3.org/2001/XMLSchema-instance' (CHARACTER)
(0x03000100:Attribute )http://www.w3.org/2001/XMLSchema-instance:noNamespaceSchemaLocation = 'C:\Documents%2220and%2220Settings\vpera7\Desktop\sample.xsd' (CHARACTER)
(0x03000000:PCDataField ):GB = 'Str' (CHARACTER)
(0x03000000:PCDataField ):GT = 'String1' (CHARACTER)
(0x03000000:PCDataField ):ET = 'D' (CHARACTER)
(0x03000000:PCDataField ):fname = 'String2' (CHARACTER)
(0x03000000:PCDataField ):lname = 'String3' (CHARACTER)
)
)
)( ['xmlnsc' : 0x1a18e688]
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
(0x03000100:Attribute):Encoding = 'UTF-8' (CHARACTER)
)
(0x03000000:PCDataField ):dc.event.model = 'String3' (CHARACTER)
(
(0x03000102:NamespaceDecl)http://www.w3.org/2000/xmlns/:xsi = 'http://www.w3.org/2001/XMLSchema-instance' (CHARACTER)
(0x03000100:Attribute )http://www.w3.org/2001/XMLSchema-instance:noNamespaceSchemaLocation = 'C:\Documents%2220and%2220Settings\vpera7\Desktop\sample.xsd' (CHARACTER)
(0x03000000:PCDataField ):GB = 'Str' (CHARACTER)
(0x03000000:PCDataField ):GT = 'String1' (CHARACTER)
(0x03000000:PCDataField ):ET = 'D' (CHARACTER)
(0x03000000:PCDataField ):fname = 'String2' (CHARACTER)
(0x03000000:PCDataField ):lname = 'String3' (CHARACTER)
)
)]
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 23, 2010 8:55 am    Post subject: Reply with quote

Grand High Poobah

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

I notice 2 things here:

1) There appear to be 2 xml documents showing the trace
2) One of them has a value of "String3" for the element dc.event.model

How are you submitting the XML (what tool)?
What is the contents of this XML document?
How have you provided the schema to WMB?
Is your Compute node doing anything other than a CopyEntireMessage?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
pavan15
PostPosted: Thu Dec 23, 2010 9:20 am    Post subject: Reply with quote

Novice

Joined: 22 Dec 2010
Posts: 10

Hi Vitor,
Thanks for the reply. one trace file is immediately after input node and other one is immeditely after compute node.

- I submitted the xml using RFHUTIL but I am always getting the value of Last child element for the parent element dc.event.model.
- contents of the xml are Character type.
- I imported the schema into MessageSet from using FILESYSTEM option I get in the Import.
- Compute node is doing nothing other than calling CopyEntireMessage() procedure.

Thanks
Pavan
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 23, 2010 10:09 am    Post subject: Reply with quote

Grand High Poobah

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

pavan15 wrote:
one trace file is immediately after input node and other one is immeditely after compute node.


pavan15 wrote:
0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0xe191a0]
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
(0x03000100:Attribute):Encoding = 'UTF-8' (CHARACTER)
)
(0x03000000:PCDataField ):dc.event.model = 'String3' (CHARACTER)
(
(0x03000102:NamespaceDecl)http://www.w3.org/2000/xmlns/:xsi = 'http://www.w3.org/2001/XMLSchema-instance' (CHARACTER)
(0x03000100:Attribute )http://www.w3.org/2001/XMLSchema-instance:noNamespaceSchemaLocation = 'C:\Documents%2220and%2220Settings\vpera7

\Desktop\sample.xsd' (CHARACTER)
(0x03000000:PCDataField ):GB = 'Str' (CHARACTER)
(0x03000000:PCDataField ):GT = 'String1' (CHARACTER)
(0x03000000:PCDataField ):ET = 'D' (CHARACTER)
(0x03000000:PCDataField ):fname = 'String2' (CHARACTER)
(0x03000000:PCDataField ):lname = 'String3' (CHARACTER)
)
)
)( ['xmlnsc' : 0xe191a0]
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
(0x03000100:Attribute):Encoding = 'UTF-8' (CHARACTER)
)
(0x03000000:PCDataField ):dc.event.model = 'String3' (CHARACTER)
(
(0x03000102:NamespaceDecl)http://www.w3.org/2000/xmlns/:xsi = 'http://www.w3.org/2001/XMLSchema-instance' (CHARACTER)
(0x03000100:Attribute )http://www.w3.org/2001/XMLSchema-instance:noNamespaceSchemaLocation = 'C:\Documents%2220and%2220Settings\vpera7

\Desktop\sample.xsd' (CHARACTER)
(0x03000000:PCDataField ):GB = 'Str' (CHARACTER)
(0x03000000:PCDataField ):GT = 'String1' (CHARACTER)
(0x03000000:PCDataField ):ET = 'D' (CHARACTER)
(0x03000000:PCDataField ):fname = 'String2' (CHARACTER)
(0x03000000:PCDataField ):lname = 'String3' (CHARACTER)
)
)


This section appears in both trace files & is what I was alluding to. Or does your document have 2 XML declarations in it?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
pavan15
PostPosted: Thu Dec 23, 2010 10:53 am    Post subject: Reply with quote

Novice

Joined: 22 Dec 2010
Posts: 10

Hi,
I kept both ${Root} and ${Body} while creating the trace files,so that is the reason for 2 XMLNSC folders in the trace files.sorry for the confusion.Please see new trace file below after I remove ${Body}.


[( ['MQROOT' : 0xe184b0]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x1a02bb90]
(0x03000000:NameValue):MessageSet = 'MyApplicationMessageSet' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 437 (INTEGER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2010-12-23 18:42:26.550' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'MQ' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name ):MQMD = ( ['MQHMD' : 0x1a041790]
(0x03000000:NameValue):SourceQueue = 'VALIDATION.IN' (CHARACTER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 437 (INTEGER)
(0x03000000:NameValue):Format = ' ' (CHARACTER)
(0x03000000:NameValue):Version = 2 (INTEGER)
(0x03000000:NameValue):Report = 0 (INTEGER)
(0x03000000:NameValue):MsgType = 8 (INTEGER)
(0x03000000:NameValue):Expiry = -1 (INTEGER)
(0x03000000:NameValue):Feedback = 0 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):Persistence = 0 (INTEGER)
(0x03000000:NameValue):MsgId = X'414d512042524f4b4552514d47522020a148124d2000aa0c' (BLOB)
(0x03000000:NameValue):CorrelId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):BackoutCount = 0 (INTEGER)
(0x03000000:NameValue):ReplyToQ = ' ' (CHARACTER)
(0x03000000:NameValue):ReplyToQMgr = 'BROKERQMGR ' (CHARACTER)
(0x03000000:NameValue):UserIdentifier = 'vpera7 ' (CHARACTER)
(0x03000000:NameValue):AccountingToken = X'160105150000007e4ffef7fcee2624f1a457a25fba010000000000000000000b' (BLOB)
(0x03000000:NameValue):ApplIdentityData = ' ' (CHARACTER)
(0x03000000:NameValue):PutApplType = 11 (INTEGER)
(0x03000000:NameValue):PutApplName = 'C:\ih03-2009\rfhutil.exe ' (CHARACTER)
(0x03000000:NameValue):PutDate = DATE '2010-12-23' (DATE)
(0x03000000:NameValue):PutTime = GMTTIME '18:42:26.550' (GMTTIME)
(0x03000000:NameValue):ApplOriginData = ' ' (CHARACTER)
(0x03000000:NameValue):GroupId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):MsgSeqNumber = 1 (INTEGER)
(0x03000000:NameValue):Offset = 0 (INTEGER)
(0x03000000:NameValue):MsgFlags = 0 (INTEGER)
(0x03000000:NameValue):OriginalLength = -1 (INTEGER)
)
(0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0xe18d50]
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
(0x03000100:Attribute):Encoding = 'UTF-8' (CHARACTER)
)
(0x03000000:PCDataField ):dc.event.model = 'String3' (CHARACTER)
(
(0x03000102:NamespaceDecl)http://www.w3.org/2000/xmlns/:xsi = 'http://www.w3.org/2001/XMLSchema-instance' (CHARACTER)
(0x03000100:Attribute )http://www.w3.org/2001/XMLSchema-instance:noNamespaceSchemaLocation = 'C:\Documents%2220and%2220Settings\vpera7

\Desktop\sample.xsd' (CHARACTER)
(0x03000000:PCDataField ):GB = 'Str' (CHARACTER)
(0x03000000:PCDataField ):GT = 'String1' (CHARACTER)
(0x03000000:PCDataField ):ET = 'D' (CHARACTER)
(0x03000000:PCDataField ):fname = 'String2' (CHARACTER)
(0x03000000:PCDataField ):lname = 'String3' (CHARACTER)
)
)
)
]


And If I uncheck the option"Build tree using xml schema datatypes" I dont get any junk value for parent tag.Please find the trace file for this below

[/( ['MQROOT' : 0xe1a0b8]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x1a02cca0]
(0x03000000:NameValue):MessageSet = 'MyApplicationMessageSet' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 437 (INTEGER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Persistence = FALSE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2010-12-23 18:49:07.360' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'MQ' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name ):MQMD = ( ['MQHMD' : 0x1a041ca0]
(0x03000000:NameValue):SourceQueue = 'VALIDATION.IN' (CHARACTER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 437 (INTEGER)
(0x03000000:NameValue):Format = ' ' (CHARACTER)
(0x03000000:NameValue):Version = 2 (INTEGER)
(0x03000000:NameValue):Report = 0 (INTEGER)
(0x03000000:NameValue):MsgType = 8 (INTEGER)
(0x03000000:NameValue):Expiry = -1 (INTEGER)
(0x03000000:NameValue):Feedback = 0 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):Persistence = 0 (INTEGER)
(0x03000000:NameValue):MsgId = X'414d512042524f4b4552514d47522020a148124d2000aa0d' (BLOB)
(0x03000000:NameValue):CorrelId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):BackoutCount = 0 (INTEGER)
(0x03000000:NameValue):ReplyToQ = ' ' (CHARACTER)
(0x03000000:NameValue):ReplyToQMgr = 'BROKERQMGR ' (CHARACTER)
(0x03000000:NameValue):UserIdentifier = 'vpera7 ' (CHARACTER)
(0x03000000:NameValue):AccountingToken = X'160105150000007e4ffef7fcee2624f1a457a25fba010000000000000000000b' (BLOB)
(0x03000000:NameValue):ApplIdentityData = ' ' (CHARACTER)
(0x03000000:NameValue):PutApplType = 11 (INTEGER)
(0x03000000:NameValue):PutApplName = 'C:\ih03-2009\rfhutil.exe ' (CHARACTER)
(0x03000000:NameValue):PutDate = DATE '2010-12-23' (DATE)
(0x03000000:NameValue):PutTime = GMTTIME '18:49:07.360' (GMTTIME)
(0x03000000:NameValue):ApplOriginData = ' ' (CHARACTER)
(0x03000000:NameValue):GroupId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):MsgSeqNumber = 1 (INTEGER)
(0x03000000:NameValue):Offset = 0 (INTEGER)
(0x03000000:NameValue):MsgFlags = 0 (INTEGER)
(0x03000000:NameValue):OriginalLength = -1 (INTEGER)
)
(0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0xe18900]
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
(0x03000100:Attribute):Encoding = 'UTF-8' (CHARACTER)
)
(0x01000000:Folder ):dc.event.model = (
(0x03000102:NamespaceDecl)http://www.w3.org/2000/xmlns/:xsi = 'http://www.w3.org/2001/XMLSchema-instance' (CHARACTER)
(0x03000100:Attribute )http://www.w3.org/2001/XMLSchema-instance:noNamespaceSchemaLocation = 'C:\Documents%20and%20Settings\vpera7\Desktop\sample.xsd' (CHARACTER)
(0x03000000:PCDataField ):GB = 'Str' (CHARACTER)
(0x03000000:PCDataField ):GT = 'String1' (CHARACTER)
(0x03000000:PCDataField ):ET = 'D' (CHARACTER)
(0x03000000:PCDataField ):fname = 'String2' (CHARACTER)
(0x03000000:PCDataField ):lname = 'String3' (CHARACTER)
)
)
)
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Dec 23, 2010 10:58 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Can you show the amqsbcg output of the message you are feeding to the MQInput node?

You shouldn't be seeing mixed content in the output unless the document actually contains mixed content.
Back to top
View user's profile Send private message
pavan15
PostPosted: Thu Dec 23, 2010 12:14 pm    Post subject: Reply with quote

Novice

Joined: 22 Dec 2010
Posts: 10

Please find amqsbcg output of the message in the input Queue

[AMQSBCG0 - starts here
**********************

MQOPEN - 'VALIDATION.IN'


MQGET of message number 1
****Message descriptor****

StrucId : 'MD ' Version : 2
Report : 0 MsgType : 8
Expiry : -1 Feedback : 0
Encoding : 546 CodedCharSetId : 437
Format : ' '
Priority : 0 Persistence : 0
MsgId : X'414D5120574553424653202020202020A5A8134D20002902'
CorrelId : X'000000000000000000000000000000000000000000000000'
BackoutCount : 0
ReplyToQ : ' '
ReplyToQMgr : 'BROKERQMGR '
** Identity Context
UserIdentifier : 'vpera3577 '
AccountingToken :
X'160105150000007E4FFEF7FCEE2624F1A457A223BE010000000000000000000B'
ApplIdentityData : ' '
** Origin Context
PutApplType : '11'
PutApplName : 'C:\ih03-2009\rfhutil.exe '
PutDate : '20101223' PutTime : '19561635'
ApplOriginData : ' '

GroupId : X'000000000000000000000000000000000000000000000000'
MsgSeqNumber : '1'
Offset : '0'
MsgFlags : '0'
OriginalLength : '-1'

**** Message ****

length - 319 bytes

00000000: 3C3F 786D 6C20 7665 7273 696F 6E3D 2231 '<?xml version="1'
00000010: 2E30 2220 656E 636F 6469 6E67 3D22 5554 '.0" encoding="UT'
00000020: 462D 3822 3F3E 0D0A 3C64 632E 6576 656E 'F-8"?>..<dc.even'
00000030: 742E 6D6F 6465 6C20 7873 693A 6E6F 4E61 't.model xsi:noNa'
00000040: 6D65 7370 6163 6553 6368 656D 614C 6F63 'mespaceSchemaLoc'
00000050: 6174 696F 6E3D 2243 3A5C 446F 6375 6D65 'ation="C:\Docume'
00000060: 6E74 7325 3230 616E 6425 3230 5365 7474 'nts%20and%20Sett'
00000070: 696E 6773 5C76 7065 7261 3335 3737 5C44 'ings\vpera3577\D'
00000080: 6573 6B74 6F70 5C73 616D 706C 652E 7873 'esktop\sample.xs'
00000090: 6422 2078 6D6C 6E73 3A78 7369 3D22 6874 'd" xmlns:xsi="ht'
000000A0: 7470 3A2F 2F77 7777 2E77 332E 6F72 672F 'tp://www.w3.org/'
000000B0: 3230 3031 2F58 4D4C 5363 6865 6D61 2D69 '2001/XMLSchema-i'
000000C0: 6E73 7461 6E63 6522 3E0D 0A09 3C47 423E 'nstance">.. <GB>'
000000D0: 5374 723C 2F47 423E 0D0A 093C 4754 3E53 'Str</GB>.. <GT>S'
000000E0: 7472 696E 6731 3C2F 4754 3E0D 0A09 3C45 'tring1</GT>.. <E'
000000F0: 543E 443C 2F45 543E 0D0A 093C 666E 616D 'T>D</ET>.. <fnam'
00000100: 653E 5374 7269 6E67 323C 2F66 6E61 6D65 'e>String2</fname'
00000110: 3E0D 0A09 3C6C 6E61 6D65 3E53 7472 696E '>.. <lname>Strin'
00000120: 6733 3C2F 6C6E 616D 653E 0D0A 3C2F 6463 'g3</lname>..</dc'
00000130: 2E65 7665 6E74 2E6D 6F64 656C 3E0D 0A '.event.model>.. '



No more messages
MQCLOSE
MQDISC]

Thanks
Pavan
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 27, 2010 4:38 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Looks like a defect. Please ensure that your runtime installation is up to date ( i.e. on the latest fix pack ). If you still see the problem on the latest fix pack then please open a PMR with IBM - and please quote the URL of this thread in the PMR.
Back to top
View user's profile Send private message
pavan15
PostPosted: Wed Dec 29, 2010 8:52 am    Post subject: Reply with quote

Novice

Joined: 22 Dec 2010
Posts: 10

Hi Kimbert,
Thanks for your reply. I installed latest fixpack for runtime and I am not seeing this error now. Thank you for your help.

Pavan.
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 » Build Tree using xml schema datatype
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.