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

Avoid downloading the WSDL schema from schemas.xmlsoap.org for every web service call  RSS feed

 
Tanja Sialevri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 [1] 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 [1] 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.

[1] http://schemas.xmlsoap.org/wsdl/
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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.
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!