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绑定样式:RPC/encoded、RPC/literal、Document/encoded、Document/literal及Document/literal wrapper的特点及适用场景。重点讨论了每种绑定方式下SOAP消息的构造、验证便利性及是否符合WS-I规范等问题。
659

被折叠的 条评论
为什么被折叠?



