R
RedGrittyBrick
I'm using the Netbeans IDE to generate client code from WSDL for a
web-service.
The code generated is not taking into account some parts of the
definitions (time = \d\d:\d\d:\d\d) and this results in error messages
from the web-service.
Should I expect Netbeans to handle this better?
Do I need to dig through dozens of generated classes to see if I can
find where it incorrectly serializes the data and fix it myself?
Should I provide some intelligent feedback to the suppliers of the WSDL+XSD?
*** What do other folk do?
The WSDL referers to XSD files that contain definitions like this:
<xs:complexType name="HeaderType">
<xs:sequence>
<xs:element name="DateOfPreparation" type="bbbateType"/>
<xs:element name="TimeOfPreparation" type="bbb:TimeType"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="TimeType">
<xs:restriction base="xs:time">
<xsattern value="\d{2}:\d{2}:\d{2}(\.\d+)?"/>
</xs:restriction>
</xs:simpleType>
NetBeans generates an API that can be used like this
headerType.setTimeOfPreparation(new GregorianCalendar());
However the transmitted XML clearly ignores the XSD restriction patterns:
<aateOfPreparation>2009-05-27T12:27:19.109+01:00</aateOfPreparation>
<a:TimeOfPreparation>2009-05-27T12:27:19.109+01:00</a:TimeOfPreparation>
web-service.
The code generated is not taking into account some parts of the
definitions (time = \d\d:\d\d:\d\d) and this results in error messages
from the web-service.
Should I expect Netbeans to handle this better?
Do I need to dig through dozens of generated classes to see if I can
find where it incorrectly serializes the data and fix it myself?
Should I provide some intelligent feedback to the suppliers of the WSDL+XSD?
*** What do other folk do?
The WSDL referers to XSD files that contain definitions like this:
<xs:complexType name="HeaderType">
<xs:sequence>
<xs:element name="DateOfPreparation" type="bbbateType"/>
<xs:element name="TimeOfPreparation" type="bbb:TimeType"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="TimeType">
<xs:restriction base="xs:time">
<xsattern value="\d{2}:\d{2}:\d{2}(\.\d+)?"/>
</xs:restriction>
</xs:simpleType>
NetBeans generates an API that can be used like this
headerType.setTimeOfPreparation(new GregorianCalendar());
However the transmitted XML clearly ignores the XSD restriction patterns:
<aateOfPreparation>2009-05-27T12:27:19.109+01:00</aateOfPreparation>
<a:TimeOfPreparation>2009-05-27T12:27:19.109+01:00</a:TimeOfPreparation>