A Web Services Description Language (WSDL) binding style can be RPC or document. The use can be encoded or literal. The combination of style and use can be:
1. RPC/encoded
2. RPC/literal
3. Document/encoded
4. Document/literal
5. Dcoument/literal wrapper
1. RPC/encoded
feature: straightforward description, operation name in the message, there are type encoding info in the message,but not easily validation cause not all defined in the schema, not WS-I compliant
2. RPC/literal
feature: 与1相同除了soap消息中移除了type encoding info, WS-I compliant
3. Document/encoded
feature: not WS-I compliant
4. Document/literal
feature: no type encoding info in message, everything within soap:body defined in schema leads to easily validation,but operation name not occurring in message, soap:body could be multiple children not complying to WS-I
5. Dcoument/literal wrapper
该种方式用的比较多。
These are the basic characteristics of the document/literal wrapped pattern:
- The input message has a single part.
- The part is an element.
- The element has the same name as the operation.
- The element's complex type has no attributes.
feature: no type encoding info in message, everything defined in schema, message includes operation name, soap:body only includes one child complying to WS-I, but not supporting java overload
分享到:
相关推荐
在WSDL文档中,SOAP(Simple Object Access Protocol)绑定部分描述了如何将服务绑定到SOAP消息传递协议。SOAP绑定有两大数据样式:RPC(Remote Procedure Call)和Document。 1. RPC样式: - **RPC/Encoded**:此...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="sayHello"> <soap:operation soapAction="http://example.com/sayHello"/> <wsdl:input> <soap:body ...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <!-- 绑定定义 --> </wsdl:binding> <wsdl:service name="MyService"> <wsdl:port name="MyServicePort" binding="tns:...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="sum"> <soap:operation soapAction=""/> <wsdl:input> <soap:body use="encoded" encodingStyle=...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="sayHello"> <soap:operation soapAction="urn:sayHello"/> <wsdl:input> <soap:body use="encoded" ...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <!-- 操作的具体实现 --> <wsdl:operation name="sayHello"> <soap:operation soapAction="urn:sayHello"/> <wsdl:input> ...
文档风格绑定(Document-style binding)是SOAP消息的一种表示方式,其中消息的内容直接对应于服务操作的参数,而不是函数调用和返回值。 **Service和Port元素** Service元素定义了服务实例,Port元素提供了访问...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:operation soapAction="http://example.com/sayHello"/> <soap:body use="encoded" encodingStyle=...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> ... </wsdl:binding> <wsdl:service name="HelloService"> <wsdl:port name="HelloServiceSOAP" binding="tns:...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="sayHello"> <soap:operation soapAction="urn:sayHello"/> <wsdl:input name="sayHelloRequest"> ...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:operation soapAction="http://www.Monson-Haefel.com/jwsbook/BookQuote/getBookPrice"/> <soap:body use="encoded" ...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:operation soapAction="http://example.com/service/hello"/> <soap:body use="encoded" namespace=...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <!-- 绑定操作 --> </wsdl:binding> <wsdl:service name="UserService"> <wsdl:port name="UserServicePort" binding="tns:...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> ... </binding> <port name="MobilePhonePort" binding="tns:MobilePhoneBinding"> <soap:address location=...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:operation soapAction="http://example.com/phone/addPhone"/> <soap:body use="encoded" encodingStyle=...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:operation soapAction="http://example.com/sayHello"/> <soap:body use="encoded" encodingStyle=...
文档风格绑定(document-style binding)是指一种绑定方式,它使用文档来传递参数和返回值,而不仅仅是简单的RPC(远程过程调用)风格。 和元素在WSDL中用来定义服务的具体访问点。定义了一个或多个,每个定义了一...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:operation soapAction="http://tempuri.org/FooService/fooOperation"/> <soap:body use="encoded" encodingStyle=...