SwitchYard fails to include / import other WSDL or XSD files from separate JARs in SOAP binding
Issue
- We are making a SwitchYard integration project. However, we are having trouble with our WSDL file when we are trying to include our XSD files that are stored in a JAR file.
- When we try to deploy WSDL that includes or imports XSD files from another JAR in a SOAP binding, SwitchYard throws an error like the following:
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: SWITCHYARD035405: Unable to read WSDL at META-INF/sample.wsdl: javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at '/mySchemas_1.0.xsd', relative to 'vfs:/C:/opt/fsw/jboss-eap-6.1/bin/content/sampleapp-1.0.0-SNAPSHOT.war/META-INF/sample.wsdl'.: java.io.FileNotFoundException: This file was not found: vfs:/mySchemas_1.0.xsd
at org.switchyard.component.soap.util.WSDLUtil.readWSDL(WSDLUtil.java:152)
at org.switchyard.component.soap.InboundHandler.doStart(InboundHandler.java:145)
... 10 more
- How do we load XSD files into our project?
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.