Axis2 with WSDL 2.0 Tutorial

痞子三分冷 提交于 2019-12-10 20:26:25

问题


I used Axis2 to create a web service. Axis2 is creating a WSDL which is version 1.1?

How can I create a WSDL version 2.0 for my web service?

Note: I know how to create a web service with Axis2 and Eclipse. So please share a tutorial for a WSDL 2.0 web service.


回答1:


Axis2 added support for WSDL 2.0 but it didn't make big news because WSDL 1.1 is still the de facto standard for describing SOAP web services.

Having said that, if I remember correctly, you need to add ?wsdl2 to the URL to get back a WSDL 2.0 description of your service. Using ?wsdl gets you back the WSDL 1.1 version.

Since they have support for WSDL 2.0 it should make sense that Wsdl2Java has also been upgraded to support generating code from WSDL 2.0.

So basically, developing the web service should be the same, it's just that now they have two ways of exposing the web service description.



来源:https://stackoverflow.com/questions/20795719/axis2-with-wsdl-2-0-tutorial

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!