在哪里可以找到有关不支持 SOAP 方法重载的文档? [英] Where can I find documentation on not supporting SOAP method overloading?

查看:29
本文介绍了在哪里可以找到有关不支持 SOAP 方法重载的文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所做的大部分工作都是使用 RESTful Web 服务,但我们的一位客户拥有传统的 SOAP 接口.我们是一家 Java 商店,目前正在将东西转移到 Grails 并支持他们的旧 SOAP 服务,正在为我们的增强功能添加自定义"开发.

Most of the work I do is with RESTful web services but one of our customers has a legacy SOAP interface. We're a Java shop and currently moving things to Grails and supporting their old SOAP service is adding "custom" development to our enhancements.

基本上,它们的 WSDL 包含多个引用不同方法的同名操作.这会导致我想使用的库出现问题,因为它们不支持重载.因此,我一直在修改他们的 WSDL 以使其正常工作,每次我们添加新方法或进行更改时,我都会提出清理他们的 WSDL 以删除重载的操作.

Basically, their WSDL contains multiple operations with the same name that reference different methods. This causes problems with the libraries I'd like to use since they don't support overloading. So I've been modifying their WSDL to get things to work and each time we add new methods or make changes, I bring up cleaning up their WSDL to remove the overloaded operations.

示例:

<wsdl:operation name="GetOrder">
  <wsdl:input message="tns:GetOrderSoapIn" />
  <wsdl:output message="tns:GetOrderSoapOut" />
</wsdl:operation>
<wsdl:operation name="GetOrder">
  <wsdl:input name="GetByAlternateOrderID" message="tns:GetByAlternateOrderIDSoapIn" />
  <wsdl:output name="GetByAlternateOrderID" message="tns:GetByAlternateOrderIDSoapOut" />
</wsdl:operation>
<wsdl:operation name="GetOrder">
  <wsdl:input name="GetOrderByID" message="tns:GetOrderByIDSoapIn" />
  <wsdl:output name="GetOrderByID" message="tns:GetOrderByIDSoapOut" />
</wsdl:operation>

我想展示一些很好的文章和文档,说明他们为什么应该更新他们的 WSDL,并且如果他们不这样做,还可以证明我们这边所需的额外工作是合理的.仅仅告诉他们似乎还不够.我相信他们应该能够毫不费力地修改他们的 WSDL,但没有专业知识告诉他们如何或为什么.

I'd like to present good articles and documentation on why they should update their WSDL and also to justify the addition work required on our side if they don't. Simply telling them doesn't seem to be enough. I believe they should be able to modify their WSDL without too much difficulty, but don't have the expertise to tell them how or why.

关于何时删除重载以及为什么这会导致当前工具出现问题的一些好的参考资料在哪里?

Where are some good references on when overloading was dropped and why this causes issues with current tools?

推荐答案

WSDL 工作组从 WSDL 1.2/2.0 标准中删除操作重载(WSDL 1.1 中存在)这一事实应该清楚地表明此功能过去和现在都有问题.

Just the fact that the WSDL working group removed operation overloading (which was present in WSDL 1.1) from the WSDL 1.2/2.0 standards should be a clear indication that this feature was and is problematic.

见:

  • Web Services Description Language (WSDL) Version 1.2 (Draft 9 July 2002)
  • What's New in WSDL 2.0 (May 20, 2004) (by Arulazi Dhesiaseelan)

这篇关于在哪里可以找到有关不支持 SOAP 方法重载的文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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