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 » WMB8: xsd:unique with xsd:restriction

Post new topic  Reply to topic
 WMB8: xsd:unique with xsd:restriction « View previous topic :: View next topic » 
Author Message
scravr
PostPosted: Tue Aug 04, 2015 10:37 am    Post subject: WMB8: xsd:unique with xsd:restriction Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 388
Location: NY NY USA 10021

HI to All,

Any ideas why WMB8 EG crash when SOAPInput gets a message with non-unique element on XSD with both xsd:unique with xsd:restriction on a single element?

I need to make sure MyNumber is length of 2 and uniqueue.
EG crash when MyNumber has duplicate values.
Here are my XSDs


Code:
XSD1:
   <xsd:simpleType name="Alpha2Type">
      <xsd:restriction base="xsd:token">
         <xsd:length value="2"/>
      </xsd:restriction>
   </xsd:simpleType>

   <xsd:element id="MyNumber" name="MyNumber" type="Alpha2Type"/>



Code:
XSD2:
   <xsd:complexType name="MyNumberListType">
      <xsd:sequence>
         <xsd:element ref="ct:MyNumber" maxOccurs="unbounded" />
      </xsd:sequence>
   </xsd:complexType>
   
   <xsd:complexType name="MyRequestType">
      <xsd:sequence>
         <xsd:element name="MyNumberList"    type="MyNumberListType">
            <xsd:unique name="unqMyNumber">
               <xsd:selector xpath="./ct:MyNumber" />
               <xsd:field xpath="." />
            </xsd:unique>
         </xsd:element>
      </xsd:sequence>
   </xsd:complexType>


Thanks,
MA
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMB8: xsd:unique with xsd:restriction
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.