How come when I use the following annotations
@org.codehaus.xfire.aegis.type.java5.XmlElement(minOccurs="1",
name="assetVersion")
   public Long getVer()
   {
       return ver;
   }
   @org.codehaus.xfire.aegis.type.java5.XmlElement(minOccurs="1",
name="assetId")
   public Long getAssetId()
   {
       return asset.getId();
   }

The wsdl complex types looks like this
<xsd:element name="assetId" nillable="true" type="xsd:long"/>
<xsd:element name="assetVersion" nillable="true" type="xsd:long"/>

I would expect to see the minOccurs attribute set to 1. Instead it is
missing.
If I remove the annotations the minOccurs attribute is set to 0.
Am I missing something?


--
Dave Kallstrom

Reply via email to