zoukankan      html  css  js  c++  java
  • WSDL Style和use的组合方式说明

    原文地址:http://www.ibm.com/developerworks/cn/webservices/ws-whichwsdl/#listing9

    use属性可以为literal,encoded;

    style可以为rpc,document,我们来对五种类型的style/use决定的binding作一比较,分别是

    rpc/encoded,rpc/literal,document/literal none-wrapper,document/literal with wrapper,document/encoded。


    从生成soap消息的角度看,rpc和document的差别在于方法的操作名是否出现在生成的Soap消息中。literal和encoded编码方式的差别在于参数类型是否出现在生成的Soap消息中。

    • rpc/encoded能够完整地表示一个方法调用,但性能很差,而且不能校验Soap消息的有效性。
    • rpc/literal不对参数类型进行编码,但仍然无法对Soap消息进行校验。
    • document/literal none-wrapper无法生成操作名,适用于完整的文档作为参数传递给方法的场景。
    • document/literal with wrapper应该是目前使用最多的方式。
    • document/encoded没有意义,因为没有方法名,对参数类型编码没有什么意义。
  • 相关阅读:
    luogu P3804 【模板】后缀自动机 (SAM)
    莫队
    luogu P4688 [Ynoi2016]掉进兔子洞
    FZOJ 2331 LYK loves graph
    字典树
    luogu P6623 [省选联考 2020 A 卷] 树
    luogu P6018 [Ynoi2010]Fusion tree
    luogu P3264 [JLOI2015]管道连接
    最小斯坦纳树
    9. 回文数
  • 原文地址:https://www.cnblogs.com/rigid/p/4286547.html
Copyright © 2011-2022 走看看