Thanks, got this working. However I was under the impression that if I pass "null" to setURIResolver(), it would use the default resolver and the default resolver would just treat URN == URL. Guess this needed to be more specific.
Now the question is, will this bypass the resolver if a schemaLocation attribute was indeed present and pointed to some other location i.e. URN != URL. Thanks Anyway, -- Harshawardhan -----Original Message----- From: Keith Visco [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 2:36 PM To: [email protected] Subject: Re: [castor-user] Error creating schema 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 ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-user
