Web服务方法重载 [英] Webservice method overloading

查看:604
本文介绍了Web服务方法重载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能在超载的web服务的方法,但对获得其分类两种方法(与差异PARAMS同样的方法),为不同的操作。

I am able to overload the method in webservice, though on access it categorize both methods (same method with diff params) as different operations.

有什么优势?有没有什么办法可以实现调用从客户端相同的方法和基于参数调用一个我需要?

What is the advantage? Is there any way I can achieve calling same method from the client side and based on parameters it calls the one I need?

推荐答案

操作重载是面向对象编程语言提供的一个概念。但是,Web服务并不限于面向对象的平台。他们是面向消息的,在这里可以构建/解构您所选择的任何平台的消息。由于所有的平台不提供操作重载,而且由于网络服务都是为了跨平台的整合,这是非法的网络服务以支持操作重载。

Operation Overloading is a concept available in Object Oriented programming languages. However, WebServices are not limited to OO platforms. They are message oriented, where the message can be constructed/deconstructed in any platform of your choice. Since all platforms do not provide operation overloading, and since web-services are meant for integration across platforms, it is illegal for web-services to support operation overloading.

现在,现实的情况是略有不同。我可以在网上看到几篇文章,开发人员都做过这样的东西。 OASIS自己有一些困惑,似乎,但他们终于对操作重载(见-3.6)。

Now, the reality is slightly different. I can see several articles online where developers have done such stuff. OASIS themselves had some confusion it seems, but they finally ruled against operation overloading (see section-3.6) .

这篇关于Web服务方法重载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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