Hi,
I am
new to XMLBeans. Is it possible that the generated XML Bean java objects can
return a default value associated with an element in the
schema?
For
eg:
<
xsd:simpleType name="mySimpleType"><xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
<
xsd:complexType name="MyComplexType"><
xsd:element name="testElement" type="tns:mySimpleType" default="1234" minOccurs="0"/> </xsd:complexType>So,
here suppose that i don't set the testElement value in my client and send
the SOAP message to a service and then on the server side when i do
a getTestElement() , i would expect it to return the default value
"1234". But i get a null instead.
Is there some
setting i need to do for getting the default values.?
Thanks
for any help on this.

