`
echohfut
  • 浏览: 233002 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

WSDL binding style for SOAP

    博客分类:
  • SOA
阅读更多

 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中Rpc和Document的区别

    在WSDL文档中,SOAP(Simple Object Access Protocol)绑定部分描述了如何将服务绑定到SOAP消息传递协议。SOAP绑定有两大数据样式:RPC(Remote Procedure Call)和Document。 1. RPC样式: - **RPC/Encoded**:此...

    简单WSDL实例

    <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 ...

    WebService描述语言WSDL详解

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <!-- 绑定定义 --> </wsdl:binding> <wsdl:service name="MyService"> <wsdl:port name="MyServicePort" binding="tns:...

    WSDL文件简介-本文介绍了如何编写一个简单的WSDL文件,并根据WSDL文件编写服务器端和客户端代码,并发布Web Service服务的过程

    <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=...

    WSDL(Web服务描述语言)详细解析

    <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" ...

    wsdl文件解读

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <!-- 操作的具体实现 --> <wsdl:operation name="sayHello"> <soap:operation soapAction="urn:sayHello"/> <wsdl:input> ...

    Web Service描述语言,WSDL 详细解释

    文档风格绑定(Document-style binding)是SOAP消息的一种表示方式,其中消息的内容直接对应于服务操作的参数,而不是函数调用和返回值。 **Service和Port元素** Service元素定义了服务实例,Port元素提供了访问...

    wsdl文件详解 web wervices

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:operation soapAction="http://example.com/sayHello"/> <soap:body use="encoded" encodingStyle=...

    wsdl文件结构详细分析

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> ... </wsdl:binding> <wsdl:service name="HelloService"> <wsdl:port name="HelloServiceSOAP" binding="tns:...

    Web Service描述语言 WSDL 详解(转)

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="sayHello"> <soap:operation soapAction="urn:sayHello"/> <wsdl:input name="sayHelloRequest"> ...

    WebService之WSDL文件讲解

    <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" ...

    WSDL文件详解.doc

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:operation soapAction="http://example.com/service/hello"/> <soap:body use="encoded" namespace=...

    php soap 实用例子

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <!-- 绑定操作 --> </wsdl:binding> <wsdl:service name="UserService"> <wsdl:port name="UserServicePort" binding="tns:...

    使用 WSDL 部署 Web 服务.pdf

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> ... </binding> <port name="MobilePhonePort" binding="tns:MobilePhoneBinding"> <soap:address location=...

    初探WSDL2JAVA工具的使用

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:operation soapAction="http://example.com/phone/addPhone"/> <soap:body use="encoded" encodingStyle=...

    java的wsdl语言实现web service的服务创建和调用实例

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:operation soapAction="http://example.com/sayHello"/> <soap:body use="encoded" encodingStyle=...

    WebService描述语言WSDL详解【免费】

    文档风格绑定(document-style binding)是指一种绑定方式,它使用文档来传递参数和返回值,而不仅仅是简单的RPC(远程过程调用)风格。 和元素在WSDL中用来定义服务的具体访问点。定义了一个或多个,每个定义了一...

    Web Service描述语言 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=...

Global site tag (gtag.js) - Google Analytics