问题描述
如果我在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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!