Hi!
I set up a URL Protocol handler to load the wsdl from a database on the
CXFEndpoint.
    cxfEndpoint.setWsdlURL("db:///...")
That works fine, but the schema files referenced by the wsdl need to be
resolved in the database as
well.  They are relative imports:
            <xsd:import namespace="http://test.xxx";
schemaLocation="some.xsd"/>
I was wondering if there is a way to define a reference resolver that would
look for the schema files
in some alternate location (in the database) and get the cxf endpoint to use
the reference resolver.
Thanks,


Caused by: org.apache.camel.RuntimeCamelException: javax.wsdl.WSDLException:
WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
faultCode=PARSER_ERROR: Problem parsing 'fault.xsd'.:
java.io.FileNotFoundException: D:\test\apache-servicemix-6.0.0\some.xsd (The
system cannot find the file specified)
        at
org.apache.camel.component.cxf.WSDLServiceFactoryBean.getDefinition(WSDLServiceFactoryBean.java:66)
        at
org.apache.camel.component.cxf.WSDLServiceFactoryBean.buildServiceFromWSDL(WSDLServiceFactoryBean.java:101)
        at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:525)
        at
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:261)
        at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
        at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
        at
org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:91)
        at
org.apache.camel.component.cxf.CxfEndpoint.createClient(CxfEndpoint.java:634)
        at 
org.apache.camel.component.cxf.CxfProducer.doStart(CxfProducer.java:76)



--
View this message in context: 
http://camel.465427.n5.nabble.com/reference-resolver-for-WSDL-on-CXF-Endpoint-tp5772354.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to