Originally posted by Beno�t d'Oncieu:
Hi again Roopa,
By using the same code you submitted earlier![]()
The schema location is:
http://schemas.xmlsoap.org/wsdl/
Hope this helps
[ December 16, 2002: Message edited by: Beno�t d'Oncieu ]
Originally posted by Beno�t d'Oncieu:
Hi again Roopa,
By using the same code you submitted earlier![]()
The schema location is:
http://schemas.xmlsoap.org/wsdl/
Hope this helps
[ December 16, 2002: Message edited by: Beno�t d'Oncieu ]
Originally posted by Beno�t d'Oncieu:
I think I have it right now. Look at the main method to see how to use it. It's really a first attempt (using Xerces), but it still needs improving.
If your wsdl is using more namespaces, you can register them using the registerNamespace method before calling the validateSchema.
I also removed the verbose stuff for the ErrorHandler for the sake of simplicity![]()
Originally posted by Roopa Bagur:
Can anybody tell me whether one can validate an WSDL file..if so where can I find the WSDL schema that I can use for validation & also please suggest any good WSDL websites I could go to.
Thanks,
Roopa
Originally posted by Beno�t d'Oncieu:
Balaji,
Nice link, however, most ideas from the article can only be applied when using Microsoft .NET
Thanks
Originally posted by Beno�t d'Oncieu:
Hi Ropa,
Here is the result of the validation of your XML Schema:
I had to change a bit the code to adapt it to schema validation (as opposed to WSDL validation). Here it goes:
Cheers
Originally posted by Beno�t d'Oncieu:
You may be using a transparent proxy, i.e. no direct access to the web resource. In that case, I suggest you store the XMLSchema locally and then replace the line:
by:
Other than that, the following line shows a package that does not exist in Xerces 2.2.1:
This shouldn't be the cause of your problem, but if you absolutely need to use version 2.2.1, try to see if there is no version conflict between you jar files.
Cheers
Originally posted by Beno�t d'Oncieu:
OK, for this one, you'll have to find it by yourself ;-)
The exception say: MalformedURLException
You have to write the location of the XML Schema as a URL (hint: the protocol is file).
Good luck
Hang a left on main. Then read this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|