Hi everyone,

I'm trying to use cxf-codegen-plugin to produce Java classes based on
a WSDL file. I get an error complaining that some of the types are not
found in the schemas:

Part <parameters> in Message
<{http://www.foo.com/bar}PushCommandSoapIn> referenced Type
<{http://www.foo.com/bar}CommandMessage> can not be found in the
schemas

I have an XSD file that defines this type, but I'm not sure how to
tell the plugin where to find it. Based on an example I found online
somewhere (lost the link, sadly), I tried the following:

      <configuration>
        <wsdlOptions>
          <wsdlOption>
            <wsdl>${basedir}/src/main/resources/wsdl/SomeService.wsdl</wsdl>
            <dependencies>
              <!-- Here I try to reference the XSD -->
              
<dependency>${basedir}/src/main/resources/wsdl/SomeTypes.xsd</dependency>
            </dependencies>
          </wsdlOption>
        </wsdlOptions>
      </configuration>

But it hasn't changed the error message. In case it's useful, I've
included a slightly longer description within this Stack Overflow
question: 
http://stackoverflow.com/questions/23391397/how-do-i-link-to-xsd-files-using-the-apache-cxf-maven-plugin.

Kind regards,

Duncan

Reply via email to