Validating call to web service against schema before sending request

Posted by Cen on Stack Overflow See other posts from Stack Overflow or by Cen
Published on 2010-04-21T21:00:29Z Indexed on 2010/04/21 21:03 UTC
Read the original article Hit count: 198

Filed under:
|
|
|

I am calling a web service (written in Java) in my web app. I use the WSDL to generate proxy classes using the wsdl.exe command line tool.

Everything is working fine.

However, I have found out that the web service is not doing any data validation at all when they receive a request from my app. Hence, if I happen to send one minute piece of data that isn't exactly what they want, I receive a general fault error in return, with no specifics at all of what the incorrect (if any) piece of data is.

So, before I make the request, I'd like to validate my request against the schema they have provided. Is this possible, and if so, how do I go about this?

Thanks in advance

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about web-services