OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

wsrf message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [wsrf] Issue: Content should be declared with minOccurs="0"






good catch




                                                                           
             Samuel Meder                                                  
             <meder@mcs.anl.go                                             
             v>                                                         To 
                                       wsrf-oasis                          
             09/01/2004 11:33          <wsrf@lists.oasis-open.org>         
             AM                                                         cc 
                                       Jarek Gawor <gawor@mcs.anl.gov>     
                                                                   Subject 
             Please respond to         [wsrf] Issue: Content should be     
                   meder               declared with minOccurs="0"         
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





The text describes the content element in the service group entry
element as optional:

<wssg:Entry>
             <wssg:ServiceGroupEntryEPR>
                         wsa:EndpointReferenceType
             </wssg:ServiceGroupEntryEPR>
             <wssg:MemberServiceEPR>
                         wsa:EndpointReferenceType
             </wssg:MemberServiceEPR>
             <wssg:Content> {any} </wssg:Content> ?
</wssg:Entry>


but the xsd declares it with minOccurs="1":

  <xsd:complexType name="EntryType">
    <xsd:sequence>
      <xsd:element name="ServiceGroupEntryEPR"
                   type="wsa:EndpointReferenceType"
                   minOccurs="1" maxOccurs="1"
                   nillable="true"/>
      <xsd:element name="MemberServiceEPR"
                   type="wsa:EndpointReferenceType"
                   minOccurs="1" maxOccurs="1"/>
      <xsd:element name="Content"
                   type="xsd:anyType"
                   minOccurs="1" maxOccurs="1"/>
    </xsd:sequence>
  </xsd:complexType>


Recommendation: Change the schema to minOccurs="0"

/Sam

--
Sam Meder <meder@mcs.anl.gov>
The Globus Alliance - University of Chicago
630-252-1752






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]