This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

xs:restriction tag is not working in WSDL

 
Yogesh Gandhi
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!