Hi Makni,

 

I can't answer your whole question, but I can tell you that the default
value for minOccurs is "1".  So, the following two declarations are
equivalent:

<xsd:element minOccurs="1" name="authorizedPaiement"
type="xsd:boolean"/>

<xsd:element name="authorizedPaiement" type="xsd:boolean"/>

 

So, if you want minOccurs="1", don't be too distressed that it's
generated without any minOccurs attribute at all-it's still functionally
the same thing.

 

-Chris

 

-----Original Message-----
From: Makni Hamdi [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 16, 2007 9:28 AM
To: [email protected]
Subject: [xfire-user] problem in configuring property with aegis files

 

Hi,

 

I'm using Xfire with simple aegis binding method.

I'm trying to use config file (class.aegis.xml) to set minOccur of list,
or nillable as false to made property required, but it does not work.

 

For example, without minoccur="1" I have this schema in the wsdl:

                          

<xsd:element minOccurs="0" name="authorizedPaiement"
type="xsd:boolean"/>

 

When I add minoccur="1" I have this schema:

 

<xsd:element name="authorizedPaiement" type="xsd:boolean"/>

 

But when I add ignored="true", the property is ignored, so the problem
is with nillable and minoccur.

 

This is my aegis file content:

<mapping>

            <property name="wishes" nillable="false" />

            <property name="authorizedPaiement" minOccurs="1"
nillable="false" />

</mapping>

 

Reply via email to