新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   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的几个问题?请高人赐教 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 3360 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 关于这段wsdl的几个问题?请高人赐教 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     whoopee 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:16
      积分:115
      门派:XML.ORG.CN
      注册:2006/7/18

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

    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="WeatherService"
       targetNamespace="http://www.ecerami.com/wsdl/WeatherService.wsdl"
       xmlns="http://schemas.xmlsoap.org/wsdl/"
       xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
       xmlns:tns="http://www.ecerami.com/wsdl/WeatherService.wsdl"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema">

       <message name="getWeatherRequest">
          <part name="zipcode" type="xsd:string"/>
       </message>
       <message name="getWeatherResponse">
          <part name="temperature" type="xsd:int"/>
       </message>

       <portType name="Weather_PortType">
          <operation name="getWeather">
             <input message="tns:getWeatherRequest"/>
             <output message="tns:getWeatherResponse"/>
          </operation>
       </portType>
       
       <binding name="Weather_Binding" type="tns:Weather_PortType">
          <soap:binding style="rpc"
             transport="http://schemas.xmlsoap.org/soap/http"/>
          <operation name="getWeather">
             <soap:operation soapAction=""/>
             <input>
                <soap:body
                   encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
                   namespace="urn:examples:weatherservice"
                   use="encoded"/>
             </input>
             <output>
                <soap:body
                   encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
                   namespace="urn:examples:weatherservice"
                   use="encoded"/>
             </output>
          </operation>
       </binding>

       <service name="Weather_Service">
          <documentation>WSDL File for Weather Service</documentation>
          <port binding="tns:Weather_Binding" name="Weather_Port">
             <soap:address
                location="http://localhost:8080/soap/servlet/rpcrouter"/>
          </port>
       </service>
    </definitions>
    1.targetNamespace="http://www.ecerami.com/wsdl/WeatherService.wsdl"是不是就是定义本文件的空间的?那还要那个xmlns:tns="http://www.ecerami.com/wsdl/WeatherService.wsdl"干嘛?那个tns是干什么用的哪?
    2.xmlns:xsd="http://www.w3.org/2001/XMLSchema",后面那段URI由谁来验证正确性哪?java的xml解析器?
    我怎么知道该写2001还是1999哪?
    3.encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"为何要这样写?在此文件开头定义好不行吗?也有解析器来识别这个吗?匹配成什么阿?


       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/7/28 9:50:00
     
     whoopee 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:16
      积分:115
      门派:XML.ORG.CN
      注册:2006/7/18

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给whoopee发送一个短消息 把whoopee加入好友 查看whoopee的个人资料 搜索whoopee在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看whoopee的博客2
    发贴心情 
    就没人会吗?
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/8/10 17:53: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/2/20 2:25:37

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

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