Hi! I'm having problems with an axis generated client.
I'm using Axis 1.2. I generate the client stubs with the goal which comes with maven. The wsdl uses datastructures which are in a separate file. The client is generated ok except for the element where I have a choice element. The datastructure looks like this <xs:complexType name="MyType"> <xs:sequence> <xs:element name="id" type="hoti:idType"/> <xs:choice> <xs:element name="someElementOne" type="hoti:ElementOneType"/> <xs:element name="someElementTwo" type="hoti:ElementTwoType"/> </xs:choice> </xs:sequence> </xs:complexType> When I don't set any value to someElementOne I get java.io.IOException: Non nillable element 'someElementOne' is null. The types are complex types. This is what I have in the wsdl as the binding: <wsdl:binding name="HOTI_SOAP" type="tns:HOTI"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> Any suggestions what I have done wrong? -Niklas