A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
xs:restriction tag is not working in WSDL
Joined: Dec 05, 2008
Oct 31, 2012 00:59:07
I am a bit new to webservice.
I had to create a web service and provide WSDL to the client.
I need to add maxLength restriction on the fields, so that client cannot give values longer than my system can accept. So I added xs:restriction in the WSDL as follows.
<xs:element name="createdby" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="24" /> </xs:restriction> </xs:simpleType> </xs:element>
But even after this, when I
the web service, I can provide any
longer than 24 characters, and webservice generates the XML and sends it to the server.
Shouldn't it, be that XML should not be generated if it violates the maxLength condition?
Please help me understanding where is the gap?
Thanks & Regards
Don't get me started about those stupid
subject: xs:restriction tag is not working in WSDL
Axis 1.4 throwing org.xml.sax.SAXException: Invalid element
Invalid type (xsi:type) is set when XML request is generated from web service client
Generated WSDL with schema validation
in Schema Dynamic value for maxLength - help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014