Along the lines of this question, I have a WSDL that imports a schema

  <wsdl:types>
    <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema";>

      <import namespace="http://www.areva.com/mmi/xml";
              schemaLocation="mmi.xsd" />

    </xsd:schema>
  </wsdl:types>
  
The mmi.xsd can be found "jared" up in a library (mmischema.jar), but when I
try to start the app, I get:

Caused by: javax.wsdl.WSDLException: WSDLException (at
/wsdl:definitions/wsdl:types/xsd:schema): faultCode=PARSER_ERROR: Problem
parsing 'jndi:/localhost/mmi/WEB-INF/mmi.xsd'.:
java.io.FileNotFoundException

How can CXF be told to look in the classpath for the mmi.xsd file when
resolving the import?

Thanks,

Juan


Goga, Murtaza wrote:
> 
> Is there a way to configure the endpoint and the CXFServlet so that a
> client consuming a dynamically generated WSDL receives all the imported
> and included schemas.   
> 
> The generated WSDL only generates the schema import with the namespace
> without the schemaLocation.  I was hoping to have the WSDL writer render
> the schemaLocation value relative to the Servlet so that the client
> consuming the WSDL can look it up.  Added a jax-ws-catalog as well to
> resolve some of the relative paths on the imports.  
> 
>  
> 
> Any configuration ideas would be appreciated.
> 
>  
> 
> Using CXF 2.1.2 to prototype this.
> 
>  
> 
> Thanks,
> 
> Murtaza. 
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/WSDL-Schema-Imports-tp19575815p20464602.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to