Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Web services WS-IBP2012断言是什么意思?_Web Services_Wsdl_Ws I - Fatal编程技术网

Web services WS-IBP2012断言是什么意思?

Web services WS-IBP2012断言是什么意思?,web-services,wsdl,ws-i,Web Services,Wsdl,Ws I,有人能解释一下这到底意味着什么吗?举个例子会很有帮助 WS-I:(BP2012)文档文本绑定包含soapbind:body 引用消息部分元素的元素,这些元素没有 元素属性 此消息与相关,它试图澄清WSDL的子集和通常可互操作的其他规范 在这种情况下,BP2012与以下内容相关: 描述中的文档文字绑定必须在其每个 wsoap12:body元素,仅适用于已删除的wsdl:part元素 使用元素属性定义 如果web服务中使用的消息之一是根据类型而不是元素定义的,则通常会看到这种情况,例如: <w

有人能解释一下这到底意味着什么吗?举个例子会很有帮助

WS-I:(BP2012)文档文本绑定包含soapbind:body 引用消息部分元素的元素,这些元素没有 元素属性


此消息与相关,它试图澄清WSDL的子集和通常可互操作的其他规范

在这种情况下,BP2012与以下内容相关:

描述中的文档文字绑定必须在其每个 wsoap12:body元素,仅适用于已删除的wsdl:part元素 使用元素属性定义

如果web服务中使用的消息之一是根据
类型而不是
元素定义的,则通常会看到这种情况,例如:

<wsdl:message name="MyMessage">
    <wsdl:part name="MyPart" type="xsd:string"/>
</wsdl:message>
或者,您可能希望将web服务从使用
document/literal
绑定切换到使用
rpc/literal
绑定。使用
rpc/literal
绑定,部件是根据
类型而不是
元素来定义的

<wsdl:types>
    <xsd:schema targetNamespace="http://www.example.com/"
        xmlns:xsd="http://www.w3.org/1999/XMLSchema">
        <xsd:element name="MyElement" type="xsd:string"/>
    </xsd:schema>
</wsdl:types>

<wsdl:message name="MyMessage">
    <wsdl:part name="MyPart" element="tns:MyElement" xmlns:tns="http://www.example.com/"/>
</wsdl:message>