Hi,

I have a wsdl document which uses external xsd elements via an import statement.
My service configuration looks like:

<service>
                <name>MCMDemandV1</name>
                <serviceBean>#mcmDemandServiceV1</serviceBean>
                <serviceFactory>#jaxbServiceFactory</serviceFactory>
                <schemas>
                        <schema>xsd/common/RequestReplyTemplateV1.xsd</schema>
                        <schema>xsd/mcm/DemandV1.xsd</schema>
                </schemas>
                <wsdlURL>classpath:wsdl/mcm/DemandV1.wsdl</wsdlURL>
                <inHandlers>
                        <handler
                                
handlerClass="be.securex.ws.xfire.JaxbValidationEnablingHandler" />
                </inHandlers>
                <faultHandlers>
                        <handler
                                
handlerClass="be.securex.ws.xfire.JaxbValidationFaultHandler" />
                </faultHandlers>
        </service>

When I do not set the wsdl url the server starts and xsd validation works, but
the wsdl generation does not give a WS-I compliant wsdl.
When I start up the server with the wsdlurl I get the following:

Retrieving document at 'null'.
Retrieving schema at '../../xsd/mcm/DemandV1.xsd'.
2007-02-26 13:34:04,953 [main] WARN 
org.codehaus.xfire.wsdl11.ResolverWSDLLocator - Source:
../../xsd/mcm/DemandV1.xsd failed to find input source with exception: 
java.io.IOException: Could not find resource '../../xsd/mcm/DemandV1.xsd
        at org.codehaus.xfire.util.Resolver.<init>(Resolver.java:53)
        at
org.codehaus.xfire.wsdl11.ResolverWSDLLocator.getImportInputSource
(ResolverWSDLLocator.java:72)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        ...

And a bit further:

2007-02-26 13:34:04,984 [main] ERROR
org.codehaus.xfire.transport.http.XFireServlet - Error initializing 
XFireServlet.
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.codehaus.xfire.spring.ServiceBean' defined in class path resource
[META-INF/xfire/services.xml]: Initialization of bean failed; nested exception
is org.codehaus.xfire.XFireRuntimeException: Could not load WSDL.. Nested
exception is
javax.wsdl.WSDLException: WSDLException (at
/wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: Unable to
locate with a locator the schema referenced at '../../xsd/mcm/DemandV1.xsd'
relative to document base 'null'
org.codehaus.xfire.XFireRuntimeException: Could not load WSDL.. Nested exception
is javax.wsdl.WSDLException: WSDLException (at
/wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: Unable to
locate with a locator the schema referenced at '../../xsd/mcm/DemandV1.xsd'
relative to document base 'null'
WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at
'../../xsd/mcm/DemandV1.xsd' relative to document base 'null': 
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        ...

How can I make this work?

regards,
Jeroen


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to