如何在Glassfish下运行的JAX-WS Web服务上查看WSDL? [英] How to view WSDL on a JAX-WS web service running under Glassfish?

查看:103
本文介绍了如何在Glassfish下运行的JAX-WS Web服务上查看WSDL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在Glassfish下运行它,如何查看我的JAX-WS Web服务的WSDL?我知道我可以使用wsgen生成WSDL文件,但是我想知道我是否可以在Glassfish上拥有运行时WSDL?

How can I view the WSDL of my JAX-WS web service if I'm running it under Glassfish? I know I can generate the WSDL file using wsgen, but I'm want to know if I can have a runtime WSDL on Glassfish?

我尝试在Tomcat上运行Web服务,并且能够通过访问在web.xml上指定的URL模式来获取运行时WSDL.但是,由于我在Glassfish的JAX-WS Web服务上没有web.xml,因此我不确定如何访问WSDL.

I've tried running my web service on Tomcat and I was able to get a runtime WSDL by accessing the URL pattern I specified on web.xml. However, since I don't have a web.xml on my JAX-WS web service on Glassfish, I'm not sure how I'm going to access my WSDL.

推荐答案

只要知道Web服务的端点URL,您就应该能够通过在URL末尾附加?wsdl来查看运行时WSDL.

As long as you know the endpoint URL of your web service you should be able to view the runtime WSDL by appending ?wsdl to the end of the URL.

这篇关于如何在Glassfish下运行的JAX-WS Web服务上查看WSDL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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