|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Web reference schema validation. Can it be disabled?I have a web service client application written in VB.Net. The application connects to a web service to download files. A web reference is added to the client application that exposes the classes/methods etc for the web service that the client is connecting to. The problem I face is that although most files are downloaded OK, some are failing due to validation reasons. This is because for example, the XML file downloaded may contain an empty element when really it should contain a default value. The effect of this is that although it is robust and accurate, there are some cases where this validation is proving to be a nuisance. Of course the answer would be to rectify the schemas, but unfortunaltely I do not have access to the schemas. Is there any way of specifying in a .Net application (that has a web reference) that I do not want to validate against the schemas in a web reference? Is there some way of telling the application to continue even if there is a validation error? Many thanks in advance. Jimmy |
|||||||||||||||||||||||