wood burning stoves*
The moose likes Web Services and the fly likes xs:restriction tag is not working in WSDL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "xs:restriction tag is not working in WSDL" Watch "xs:restriction tag is not working in WSDL" New topic
Author

xs:restriction tag is not working in WSDL

Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 207
Hi Friends,

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.






But even after this, when I test the web service, I can provide any string 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
Yogesh


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xs:restriction tag is not working in WSDL
 
Similar Threads
Generated WSDL with schema validation
Invalid type (xsi:type) is set when XML request is generated from web service client
Axis 1.4 throwing org.xml.sax.SAXException: Invalid element
in Schema Dynamic value for maxLength - help
axis