Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web service validation

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May i know if there is any validation framework exclusively or inclusively for web services?


if not, may i know how to do validations in web services.


 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by "validation"?
 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have no idea about web services, but i was given a work to find any framework or another thing which can be used to validate the web services.


thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest to find out what whoever suggested to "use a framework" or "validate a web service" meant by that, because neither phrase has a clear, well-defined meaning in the web service world.
 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey, did you mean there is nothing like validation in the web services world? as in we have both client side and server side validations in the web tier , business tier.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course data being sent to a web service needs validation just like any other input data. But, the term "validate a web service", doesn't bring that to mind.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rauhl Roy wrote:did you mean there is nothing like validation in the web services world?

For performance reasons validation only occurs between a consumer and provider when a trust boundary is crossed. If you control both the consumer and provider it makes more sense to sanitize any input on the consumer side before it is included in a web service request. When a trust boundary is crossed a document/literal (Which style of WSDL should I use?) SOAP web service can simply use a validating parser in a handler hooked into the incoming message handler chain to verify that the SOAP payload is valid in reference to the XML Schema that used is in the WSDL (the web services contract).

See also Axis 1.4 does not validate input parameters?.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic