如何获取我的WSDL的URL? [英] How to get the URL of my WSDL?

查看:1778
本文介绍了如何获取我的WSDL的URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Netbeans,Java EE6,JAX-WS和TomCat创建了一个非常简单的Web服务。
它只有一个@WebMethod getWsdlURL(),它应该返回我的wsdl的URL,它应该类似于:

I have created a very simple web service using Netbeans, Java EE6, JAX-WS and TomCat. It just have one @WebMethod getWsdlURL(), which is supposed to return the URL of my wsdl, and it should be something similar to:

http://192.168.70.44:8088/SimpleWebService/WebService?wsdl

但是我不知道如何做到这一点。

However I don't have any idea on how to do that.

任何人都可以帮助我吗?

Can anyone help me?

推荐答案

不要添加自己的服务来返回URL。取决于已经提供它的运行时。

Don't add your own service to return the URL. Depend on the runtime, that already supplies it.

只需在浏览器中打开网址即可。该网址将是....

Just open the url in a browser. The url would be....

http://<hostname>:<port>/<webappname>/<servletEndpoint>?wsdl

这篇关于如何获取我的WSDL的URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆