新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     >>计算机科学论坛<<     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> Web服务(Web Services,WS), 语义Web服务(Semantic Web Services, SWS)讨论区: WSDL, SOAP, UDDI, DAML-S, OWL-S, SWSF, SWSL, WSMO, WSML,BPEL, BPEL4WS, WSFL, WS-*,REST, PSL, Pi-calculus(Pi演算), Petri-net,WSRF,
    [返回] 计算机科学论坛W3CHINA.ORG讨论区 - Web新技术讨论『 Web Services & Semantic Web Services 』 → 关于wsdl消息绑定多个part的问题。 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 5653 个阅读者  浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 关于wsdl消息绑定多个part的问题。 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     vcshcn 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:1
      积分:52
      门派:XML.ORG.CN
      注册:2008/11/13

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给vcshcn发送一个短消息 把vcshcn加入好友 查看vcshcn的个人资料 搜索vcshcn在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看vcshcn的博客楼主
    发贴心情 关于wsdl消息绑定多个part的问题。

    我写了一个wsdl,部分内容如下
    <wsdl:message name="loginRequest">
     <wsdl:part name="name" element="xsd:string" />
     <wsdl:part name="password" element="xsd:string"/>
    </wsdl:message>

    <wsdl:portType name="UserService">
        <wsdl:operation name="login" parameterOrder="name password">
         <wsdl:input message="user:loginRequest"></wsdl:input>
         <wsdl:output message="user:loginResponse"></wsdl:output>
         </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding name="UserServiceBind" type="user:UserService">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="login">
        <soap:operation soapAction="http://localhost/book/UserService/login" />
            <wsdl:input>
         <soap:body use="literal" />
           </wsdl:input>
          <wsdl:output>
             <soap:body use="literal" />
          </wsdl:output>
      </wsdl:operation>
    </wsdl:binding>

    但是wsdl 校验器报告:WS-I: (BP2119) A document-literal binding which does not specify the parts attribute, has more than one wsdl:part in the associated wsdl:message element.

    google上搜索:當您在定義 document/literal 服務時,只能為輸入與輸出訊息各自設計一個本文 part。因此,您的 Web services傳遞給方法的參數不能超過一個。如果您想要使用具有超過一個參數的方法,則必須改用 Document Wrapped 編碼以符合標準。

    ?是不是违反了ws-i 规定,除了把类型添加到type外,有什么方法实现一个message有多个part,ws-i 的资料哪里有


       收藏   分享  
    顶(0)
      





    关闭广告显示
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2008/11/13 22:11:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 Web Services & Semantic Web Services 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2025/7/30 7:36:39

    本主题贴数1,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    78.125ms