A namespace is a URI, not a URL. You need to specify where the "soap" schema is by specifying either a "schemaLocation" attribute on the import or by specifying a URIResolver that can return the proper URL for the provided URI.
--Keith
Harshawardhan Gadgil wrote:
Hi,
I'm trying to use the castor's SchemaReader to read a schema (which is part of a WSDL file). This schema imports the namespace http://schemas.xmlsoap.org/soap/encoding/
I'm using the following code
// create the schema reader SchemaReader schemaReader = new SchemaReader(inputSource); schemaReader.setValidation(false); schemaReader.setURIResolver(null); schemaReader.setEntityResolver(null);
// read the schema from the source Schema schema = schemaReader.read(); The last statement pops up an error
Unable to resolve Schema corresponding to namespace 'http://schemas.xmlsoap.org/soap/encoding/'
Any solution to this problem ?
The WSDL file itself if anybody wants to take a look is at http://webis.lcse.umn.edu/webis1/MyWebVTKService.wsdl
The Castor's SourceGenerator however works perfectly fine with this WSDL.
Thanks, -- Harshawardhan
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
