maven、wsgen 和动态 url
实施此处描述的测试解决方案后:
使用Maven触发wsgen &使用 wsdlLocation 连续 wsimport
我想知道是否有一种方法可以在不知道 WS URL 的情况下生成客户端 jar,这样它就可以用于部署在其他地方的任何类似的 ws。
有什么想法吗?
After implementing a test solution described here :
Use Maven to trigger a wsgen & wsimport in a row, using wsdlLocation
I wonder if there is a way to generate the client jar without knowing the WS URL, so that it would be usable against any similar ws deployed somewhere else.
Any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无论使用什么 WSDL URI 来生成 JAX-WS 客户端工件,您都可以使用适当的构造函数从客户端代码覆盖服务端点地址:
相关问题
另请参阅
Whatever WSDL URI has been used to generate the JAX-WS client artifacts, you can override a service endpoint address from the client code by using the appropriate constructor:
Related question
See also