当然,我试图用我自己的WSDL来遵循http://spring.io/guides/gs/consuming-web-service给出的示例。然而,我看不到任何正在生成的JAXB类。也没有错误或有用的调试信息。
上述示例不起作用的限制或WSDL结构是什么?
如果你需要任何进一步的信息,请告诉我。
谢谢你
检查你的pom,应该有沿着这些线的东西:
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.8.1</version> <!-- I used version 0.8.1 since 0.8.2 is bugged and it throws the Exception
"Illegal pattern character 'g' "when using italian locale -->
<executions>
<execution>
<id>wsdl-generation</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaDirectory>src/main/resources/wsdl</schemaDirectory>
<schemaIncludes>
<include>*.xsd</include>
</schemaIncludes>
<extension>true</extension>
<!-- Specify binding directory where we put customization for the
generated classes -->
<bindingDirectory>src/main/resources/binding</bindingDirectory>
<bindingIncludes>
<include>*.xjb</include>
</bindingIncludes>
</configuration>
</execution>
</executions>
</plugin>
与您的wsdl位置/绑定(如果有)/etc…类是在target下生成的,因此请确保将它们添加到类路径中(只需在运行生成源后,执行maven-