Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Validating web service input  RSS feed

 
Saumitra Tiwari
Ranch Hand
Posts: 39
Java PHP Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys, I am new to web-services.Is there any way to validate input in web services. I came across validation schema.
But is there any other way..
Thanks.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML Schema is something the WS implementation would use, not your code. If you're talking about validating individual inputs, maybe Apache Commons Validator fits the bill. Personally, I would probably roll my own one-off for WS.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!