Hi Xfire Team,
Is it possible to set minOccurs="0" and nillable="true" for WSDL request
parameters for a web service using Aegis and XFire 1.2.6?
I tried adding them to the aegis.xml mapping file and haven't had any luck
in my generated WSDL.
I'm sure that I am missing something completely obvious, so if anyone has
any advice that would be super.
I would like my WSDL to look like this
<xsd:element name="ItemRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="itemId"
nillable="false" type="xsd:string" />
<xsd:element maxOccurs="1" minOccurs="0" name="blah"
nillable="true" type="xsd:string" />
<xsd:element maxOccurs="1" minOccurs="0" name="year"
nillable="true" type="xsd:string" />
<xsd:element maxOccurs="1" minOccurs="0" name="city"
nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
And here is the mapping file
<method name="ItemRequest" mappedName="GetItemRequestInfo" >
<return-type mappedName="ItemResponse"
componentType="xxxx" namespace="xxxxx"/>
<parameter index="0" mappedName="itemId" minOccurs="1"
nillable="false" />
<parameter index="1" mappedName="blah" minOccurs="0"
nillable="true" />
<parameter index="2" mappedName="year" minOccurs="0"
nillable="true" />
<parameter index="3" mappedName="city" minOccurs="0"
nillable="true" />
</method>
Thanks,
Tyler