I have a small app running in JBoss that uses web services and every time they are called, it parses the WSDL and tries to fetch the schema from xmlsoap.org  in order to validate it (the WSDL).
Is there a way to avoid this validations? The problem is that:
1. It's slowing down the system and
2. Many times xmlsoap.org  doesn't return correctly (returns broken HTML instead of XML).
I could make schemas.xmlsoap.org point to localhost and serve the schema from there, but it seems like a very dirty solution. There must be a way to run JBoss/xerces in non-validating mode or something.
If you are developing a JAX-WS web service or web service client, then you may want to consider using Oasis XML Catalog, which is mandated by the JAX-WS specification.
For a first introduction, see JAX-WS 2.1 Specification, section 4.4.
This way you can enclose the XML schemas and WSDLs with the application and redirect any lookups to access the local files.
How do they get the deer to cross at the signs? Or to read this tiny ad?