带有WSDL 2.0教程的Axis2 [英] Axis2 with WSDL 2.0 Tutorial

查看:104
本文介绍了带有WSDL 2.0教程的Axis2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Axis2创建了一个Web服务. Axis2正在创建一个版本为1.1的WSDL?

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

如何为我的Web服务创建WSDL 2.0版?

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

注意:我知道如何使用Axis2和Eclipse创建Web服务.因此,请共享WSDL 2.0 Web服务的教程.

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.

推荐答案

Axis2添加了对WSDL的支持2.0 ,但这并没有什么大新闻,因为 WSDL 1.1仍然是描述SOAP Web服务的事实上的标准.

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.

话虽如此,如果我没记错的话,您需要在URL中添加?wsdl2以获取服务的WSDL 2.0描述.使用?wsdl可以使您恢复WSDL 1.1版本.

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.

由于它们支持WSDL 2.0,因此 Wsdl2Java 也已升级为支持从WSDL 2.0生成代码.

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.

因此,基本上,开发Web服务应该是相同的,只是现在他们有两种公开Web服务描述的方式.

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.

这篇关于带有WSDL 2.0教程的Axis2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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