Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate Java clases when WSDL imports XSD from the web #27

Open
Matej-Hlatky opened this issue Oct 26, 2023 · 1 comment
Open

Comments

@Matej-Hlatky
Copy link

When generating Java from WSDL file that contains

<xsd:schema targetNamespace="http://foo.bar/Imports">
    <xsd:import schemaLocation="http://foo.bar/xsd_file.xsd" namespace="http://foo.bar/Service" />
</xsd:schema>

this error occurs:

org.apache.cxf.BusException: No conduit initiator was found for the namespace http://cxf.apache.org/transports/http.
	at org.apache.cxf.bus.managers.ConduitInitiatorManagerImpl.getConduitInitiator(ConduitInitiatorManagerImpl.java:108)
	at org.apache.cxf.transport.TransportURIResolver.resolve(TransportURIResolver.java:105)
	at org.apache.cxf.wsdl11.CatalogWSDLLocator.getImportInputSource(CatalogWSDLLocator.java:111)
	at org.apache.cxf.wsdl11.AbstractWrapperWSDLLocator.getImportInputSource(AbstractWrapperWSDLLocator.java:108)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:388)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:312)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2352)

When manually downloaded and saved those XSD files and updated paths in source WSDL, this error no longer occur.

@karl-dpg
Copy link

Have you ever found a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants