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 data types

Post new topic  Reply to topic
 Build Tree using XML schema data types « View previous topic :: View next topic » 
Author Message
Y75
PostPosted: Mon Sep 16, 2013 7:14 am    Post subject: Build Tree using XML schema data types Reply with quote

Apprentice

Joined: 29 Jul 2013
Posts: 32

I have my xml schema in a library; library is referred in the application I constructed my message flow. While using XMLNSC parser in MQ input node, I can't convert my xml message to appropriate data types. All of them are considered as character in message tree.

Infact, the option to "Build Tree using XML schema data types" is disabled. Should it be enabled all the time if I am using library?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Sep 16, 2013 7:21 am    Post subject: Re: Build Tree using XML schema data types Reply with quote

Grand High Poobah

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

Y75 wrote:
I have my xml schema in a library; library is referred in the application I constructed my message flow.


Can we infer from your use of this terminology that you're using WMBv8.0.0.n? If so, what's the value of n?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Sep 16, 2013 7:21 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Please specify the version you are using. Both toolkit and runtime, to include appropriate precision.

What is different between the Validation sample and your code?

Did you set parse timing to Complete ?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Y75
PostPosted: Mon Sep 16, 2013 7:35 am    Post subject: Reply with quote

Apprentice

Joined: 29 Jul 2013
Posts: 32

I am using IIB tookit v9.0.0.

I think difference between my code and validation sample is that validation sample uses message set while I just have my schema in library.

I have tried to set parse timing to complete; the option is still not enabled.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Sep 16, 2013 8:24 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Here is the law of 'Build tree using XML Schema'.

- The XMLNSC parser cannot build the tree using schema types if it is not looking at the schema. So it is essential to set Validation to 'Content and Value' if you want to enable this option.
- In the the XMLNSC domain this property defaults to 'No' because the first ( v6.0) release of the XMLNSC domain did not support schema validation, and it therefore could only build CHARACTER message trees.
- In the SOAP domain, which arrived with v6.1, it defaults to 'Yes' because there was no need for backward compatibility.

In summary: this is nothing to do with libraries or applications. You do need to set that property if you want non-CHARACTER types in the message tree. And you must switch on validation.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
Y75
PostPosted: Mon Sep 16, 2013 11:54 am    Post subject: Reply with quote

Apprentice

Joined: 29 Jul 2013
Posts: 32

Thanks Kimbert ! Switching on validation on content and value did the trick.
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 data types
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.