我可以更改WebService Client的Java包吗?
因此,我的 JAVA 应用程序连接到内部开发的不同 WebServices,并且所有 3 个 WebServices 都打包在 org.tempuri 下。
我相信这是默认名称空间,当向导创建 Java 包时,它将它们放置在 org.tempuri 下。 我想更改它们以赋予它们有意义的名称,但后来我的应用程序崩溃了:(
我可以进入 .wsdl 并更改命名空间并重新打包所有内容吗?或者我可以通过某种方式将包“org.tempuri”更改为“com .abc.ws.imageservices”
我会在空闲时间进行尝试和错误,但这需要我几天的时间,因为该工作有其他优先事项......,所以我希望答案更快。
So, my JAVA application is connected to different WebServices that were developed inhouse and all 3 of them are packaged under org.tempuri
This is the default namespace I believe and when the wizard creates the Java packages it places them under org.tempuri..
I wanted to change them to give them meaningful names but then my app exploded :(
Can I just go into the .wsdl and change the namespace and repackage it all? Or some way that I can change package "org.tempuri" to "com.abc.ws.imageservices"
I would do a trial and error on my free time, but it would take me a couple of days since the job has other priorities..., so I'm hoping that an answer is faster.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该查看 wsimport。
Wsimport 将允许您直接从 WSDL 和输出项目中的参数之一导入。
You should look into wsimport.
Wsimport will allow you to import directly from a WSDL and one of the parameters in the output project.
如果您使用 RAD 或 WID,是的.. 如果您重构名称空间(这将更改 WSDL)然后您只需重新生成,那么可以非常快地完成。
If you're using RAD or WID, yes.. it can be done really fast if you refactor the namespace (which would change the WSDL) and then you just have to regen.