axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dijk, Dhr. R. van (Robert)" <Robert.vanD...@nl.equens.com>
Subject Schema validation - xmlbeans databinding
Date Fri, 13 Dec 2013 08:36:50 GMT
Hi,

I have changed the databinding from adb to xmlbeans for an existing webservice.

Everything seems to work fine except the input length validation against the xml schema.
If a field in the request exceeds the maximum length the xmlbeans-webservice doesn't generate
an AxisFault. In this case, the adb-webservice will generate an AxisFault.

Some examples of the XML schema:
<xs:simpleType name="SomeType">
      <xs:restriction base="xs:string">
            <xs:minLength value="1" />
            <xs:maxLength value="15" />
      </xs:restriction>
</xs:simpleType>

Or

<xs:simpleType name="SomeType">
      <xs:restriction base="xs:string">
            <xs:maxLength value="15" />
      </xs:restriction>
</xs:simpleType>

Or

<xs:simpleType name="MerchantCategoryType">
      <xs:restriction base="xs:integer">
             <xs:totalDigits value="4" />
       </xs:restriction>
</xs:simpleType>


Numeric versus alphanumeric validation works fine.
Does anyone have some ideas?

Thx
Robert van Dijk

------------------------------------------------------------------------------------------------
Disclaimer: The contents of this electronic mail message are only binding upon Equens or its
affiliates, if the contents of the message are accompanied by a lawfully recognised type of
signature. The contents of this electronic mail message are privileged and confidential and
are intended only for use by the addressee. If you have received this electronic mail message
by error, please notify the sender and delete the message without taking notices of its content,
reproducing it and using it in any way. ------------------------------------------------------------------------------------------------

Mime
View raw message