Hello,

We've got a Java-first service and are using java2ws (cxf 2.5.1) to
generate the wsdl which is then used to generate a .NET client.

We have boolean properties that obviously have 'nillable=false' but java2ws
excludes this from the generated wsdl, presumably because it is the default:

<xs:complexType name="awesomeClass">
    <xs:sequence>
      <xs:element default="false" name="testLanguage" type="xs:boolean"/>
      <xs:element default="false" name="testScript" type="xs:boolean"/>
      <xs:element default="true" name="testData" type="xs:boolean"/>
    </xs:sequence>
</xs:complexType>

For some reason, .NET refuses to include these boolean properties in the
SOAP request unless the wsdl explicitly states 'nillable=false'.  I guess
they didn't get the memo.

Is there anyway to force java2ws to output the nillable=false?  Or am I
doomed to use an XSLT sheet...

Thanks,
Brian

Reply via email to