如何使用JAXB2 Maven插件创建绑定服务类

时间:2014-01-06 23:53:38

标签: wsdl wsdl2java

我正在尝试为ColdFusion服务创建客户端。因为WSDL使用了一些旧类型,所以我必须使用Maven插件maven-jaxb2-plugin来生成类,如下所述。我遇到的问题是我得到的只是在WSDL中定义的模式对象。我缺少创建和分派请求到ColdFusion服务的类。你能帮我理解如何创建服务类吗?

<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<executions>
  <execution>
    <id>wsdl-generate</id>
    <configuration>
      <schemaIncludes>
        <include>*.wsdl</include>
      </schemaIncludes>
      <catalog>${project.basedir}/src/main/resources/catalog.cat</catalog>
    </configuration>
    <goals>
      <goal>generate</goal>
    </goals>
  </execution>
</executions>
<configuration>
    <generateDirectory>src/main/coldfusion-generated</generateDirectory>
    <xnocompile>false</xnocompile>
    <extension>true</extension>
    <genJWS>true</genJWS>
    <keep>true</keep>
</configuration>

0 个答案:

没有答案