cyn*_*axa 5 wsdl web-services jax-ws maven jaxws-maven-plugin
我使用生成网络服务客户端
<plugin>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.3</version>
<configuration>
<target>2.1</target>
<xnocompile>false</xnocompile>
</configuration>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
我的 EndpointService.wsdl 位于 src/main/wsdl 中。插件生成带注释的 EndointServiceService.java
@WebServiceClient(name = "EndpointServiceService", targetNamespace = "http://soap.endpoint.fsg.ftc/", wsdlLocation = "file:/D:/Source/java/branches/9.3.0/camel-smev/wscapi/src/wsdl/EndpointService.wsdl")
Run Code Online (Sandbox Code Playgroud)
所以如果 wsdl
D:/Source/java/branches/9.3.0/camel-smev/wscapi/src/wsdl/EndpointService.wsdl
Run Code Online (Sandbox Code Playgroud)
不存在(在另一台机器上),它在运行时抛出异常。如果我将 wsdl 复制到此目录,它会成功运行。我如何将 wsdl 包含到我的目标 jar 中并让客户端使用它?或者如何在运行时完全排除 wsdl 依赖性?也许尝试旧版本或其他插件?
| 归档时间: |
|
| 查看次数: |
3215 次 |
| 最近记录: |