WSDL 能否指示 Web 服务的 SOAP 版本(1.1 或 1.2)? [英] Can a WSDL indicate the SOAP version (1.1 or 1.2) of the web service?

查看:30
本文介绍了WSDL 能否指示 Web 服务的 SOAP 版本(1.1 或 1.2)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以根据 WSDL 中的信息查看 Web 服务是使用 SOAP 1.1 还是 1.2?

Is it possible to see if a web service uses SOAP 1.1 or 1.2, based on the information in the WSDL?

推荐答案

SOAP 1.1 使用命名空间 http://schemas.xmlsoap.org/wsdl/soap/

SOAP 1.1 uses namespace http://schemas.xmlsoap.org/wsdl/soap/

SOAP 1.2 使用命名空间 http://schemas.xmlsoap.org/wsdl/soap12/

SOAP 1.2 uses namespace http://schemas.xmlsoap.org/wsdl/soap12/

wsdl 能够在同一 wsdl 中同时定义soap 1.1 和soap 1.2 下的操作.如果您需要改进 wsdl 以支持需要 soap 1.2 的新功能(例如 MTOM),这将非常有用,在这种情况下,您不需要创建新服务而只需改进原始服务.

The wsdl is able to define operations under soap 1.1 and soap 1.2 at the same time in the same wsdl. Thats useful if you need to evolve your wsdl to support new functionality that requires soap 1.2 (eg. MTOM), in this case you dont need to create a new service but just evolve the original one.

这篇关于WSDL 能否指示 Web 服务的 SOAP 版本(1.1 或 1.2)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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