Hi all, I'm very new to this and probably the problem I've got is basic for you (but still I didn't find any clues in archive).
Anyway, here is what I'm stuck with. I have WSDL file and need to develop a client that sends SOAP request with some required and optional elements. I use WSDL2Java tool from Axis to generate client stubs from WSDL. In WSDL optional elements are marked by attribute minOccurs in the following way: <xsd:element name="quantityRequested" type="tns:Individuals" minOccurs="0"/> In my client I don't fill this optional element with any value. So when client generates SOAP message this empty element is described like this: ... <quantityRequested xsi:type="xsd:long" xsi:nil="true"/> ... The server processes request and when parsing this element it throws NumberFormatException because this element is empty. So I make a conclusion that the server does not expect any optional empty elements in messages, instead it prefers the message not to contain such elements at all. My question is: how should I handle this and what is the best way to make client generate SOAP messages w/out empty optional elements? Is this a WSDL2Java configuration issue? -- Thanks, Andrey mailto:[EMAIL PROTECTED]