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: Issue: Content should be 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]