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 » Validating Error on xml with xsi:nil="true"

Post new topic  Reply to topic
 Validating Error on xml with xsi:nil="true" « View previous topic :: View next topic » 
Author Message
Hawk
PostPosted: Wed Mar 30, 2005 7:43 am    Post subject: Validating Error on xml with xsi:nil="true" Reply with quote

Newbie

Joined: 30 Mar 2005
Posts: 4

Hello,

I have an incoming message with <date xsi:nil="true"/>.
In my message set date is nillable. Simply sending <date/> works. However i receive <date xsi:nil="true"/>.

When the message is validated I get an error (BIP5371)


( WBRK_BROKER.default ) Message Validation failure. Invalid member for content validation 'Closed'

Element, http://www.w3.org/2001/XMLSchema-instance:@nil, is either not defined as a member of its parent complex type or group, or has been created out of order in the logical tree, for a composition of 'Ordered Set' or 'Sequence'. The parent complex type or group has content validation of 'Closed'. The parent element is http://surf.nl/vch/berichten:date.

Modify the message set or messageflow and redeploy to the broker or modify the input message and resubmit to the broker.


The xml validates ok in any xml editor.


Can anybody help?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Mar 30, 2005 4:22 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Change the model you are validating against to use an Open composition instead.

Or explicitly model the attribute you are adding.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Mar 31, 2005 12:26 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Strictly speaking, attributes in the XML Schema Instance (xsi) namespace should not be validated - this is a defect in v5. Either of Jeff's work-arounds will do the trick. I prefer the second one (add an optional attribute with name 'nil' in the XML Schema Instance namespace) because it preserves validation on the remaining content of the complex type.
Back to top
View user's profile Send private message
Hawk
PostPosted: Thu Mar 31, 2005 3:53 am    Post subject: Reply with quote

Newbie

Joined: 30 Mar 2005
Posts: 4

Thx.

got it to work.
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 » Validating Error on xml with xsi:nil="true"
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.