Next in thread → Next in month →

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

From
Tom Maguire <>
Date
2004-09-01T15:46:12+00:00
ID
Thread
Re: [wsrf] Issue: Content should be declared with minOccurs="0"
good catch




                                                                           
             Samuel Meder                                                  
             <                                             
             v>                                                         To 
                                       wsrf-oasis                          
             09/01/2004 11:33          <>         
             AM                                                         cc 
                                       Jarek Gawor <>     
                                                                   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 <>
The Globus Alliance - University of Chicago
630-252-1752
Next in thread → Next in month →