What would it mean to create something like the following?
<xsd:simpleType name="myField">
<xsd:restriction base="xsd:boolean"/>
</xsd:simpleType>
Notice there are no actual elements within the restriction (no min or max length, no enumerations, etc). I feel like this is basically setting the type of myField
to xsd:boolean
.
However, I have both of the following in my wsdl:
(the example from above)
and
<xsd:element name="myOtherField" type="xsd:boolean"/>
When using JaxRPC or Apache Axis (to convert to a java object skeleton), the first gets converted into a Boolean (object), where as the latter example gets converted into a boolean (primitive). This tells me that the first example posted somehow signifies the element is optional, but I don't understand how.
I agree that the second example should become a primitive, but why is the first example a Boolean?
Updated: Made second node name generic