Let's say that I have a complex type such as:
<complexType name="Employee">
<sequence>
<element name="name" type="xsd:string"/>
<element name="fone" type="xsd:string"/>
<element name="male" type="xsd:boolean"/>
</sequence>
</complexType>
And let's say that 'fone' and 'male' are optional. How do I get java2wsdl
to indicate that they are optional (presumably with minoccurs=0 or
conceivably nillable=true)? I'm guessing that you cannot do this so either
you can't use java2wsdl in this situation or you have to manually mark up
the WSDL.
Next, if my WSDL indicates that these elements are indeed optional and I
build an Axis client using wsdl2java, how do I indicate that the optional
elements in class Employee haven't been set and hence the Axis client
infrastructure should *not* send them in XML?
Or am I expecting too much here? Thanks.
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement