新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   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讨论区 - 语义网·描述逻辑·本体·RDF·OWLW3CHINA.ORG讨论区 - Web新技术讨论『 Web Services & Semantic Web Services 』 → WSDL有没有对应的schema,或者DTD 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 4840 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: WSDL有没有对应的schema,或者DTD 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     flyfoxs 帅哥哟,离线,有人找我吗?
      
      
      威望:5
      等级:研一(Artificial Intelligence期期不放过)
      文章:550
      积分:3935
      门派:XML.ORG.CN
      注册:2005/1/8

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给flyfoxs发送一个短消息 把flyfoxs加入好友 查看flyfoxs的个人资料 搜索flyfoxs在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看flyfoxs的博客楼主
    发贴心情 WSDL有没有对应的schema,或者DTD

    想更仔细的看一下WSDL是如何规定的,但没找到对应的schema,或者是DTD。


    不知道是没有呢,还是我没找到。


       收藏   分享  
    顶(0)
      




    ----------------------------------------------
    存在即是被搜索!

    BLOG =>  http://www.OpenJ.cn

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/6/20 14:53:00
     
     admin 帅哥哟,离线,有人找我吗?
      
      
      
      威望:9
      头衔:W3China站长
      等级:计算机硕士学位(管理员)
      文章:5255
      积分:18406
      门派:W3CHINA.ORG
      注册:2003/10/5

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给admin发送一个短消息 把admin加入好友 查看admin的个人资料 搜索admin在『 Web Services & Semantic Web Services 』的所有贴子 点击这里发送电邮给admin  访问admin的主页 引用回复这个贴子 回复这个贴子 查看admin的博客2
    发贴心情 
    这是WSDL 1.1的Schema:

    (摘自http://www.w3.org/TR/wsdl#A4)

    A 4.1 WSDL Schema
    <schema xmlns="http://www.w3.org/2000/10/XMLSchema"
            xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
            targetNamespace="http://schemas.xmlsoap.org/wsdl/"
            elementFormDefault="qualified">
       <element name="documentation">
          <complexType mixed="true">
             <choice minOccurs="0" maxOccurs="unbounded">
                <any minOccurs="0" maxOccurs="unbounded"/>
             </choice>
             <anyAttribute/>
          </complexType>
       </element>
       <complexType name="documented" abstract="true">
          <sequence>
             <element ref="wsdl:documentation" minOccurs="0"/>
          </sequence>
       </complexType>
       <complexType name="openAtts" abstract="true">
          <annotation>
             <documentation>
             This type is extended by  component types
             to allow attributes from other namespaces to be added.
             </documentation>
          </annotation>
          <sequence>
             <element ref="wsdl:documentation" minOccurs="0"/>
          </sequence>
          <anyAttribute namespace="##other"/>
       </complexType>
       <element name="definitions" type="wsdl:definitionsType">
          <key name="message">
             <selector xpath="message"/>
             <field xpath="@name"/>
          </key>
          <key name="portType">
             <selector xpath="portType"/>
             <field xpath="@name"/>
          </key>
          <key name="binding">
             <selector xpath="binding"/>
             <field xpath="@name"/>
          </key>
          <key name="service">
             <selector xpath="service"/>
             <field xpath="@name"/>
          </key>
          <key name="import">
                <selector xpath="import"/>
                <field xpath="@namespace"/>
             </key>
          <key name="port">
             <selector xpath="service/port"/>
             <field xpath="@name"/>
          </key>
       </element>
       <complexType name="definitionsType">
          <complexContent>
             <extension base="wsdl:documented">
                <sequence>
                   <element ref="wsdl:import" minOccurs="0" maxOccurs="unbounded"/>
                   <element ref="wsdl:types" minOccurs="0"/>
                   <element ref="wsdl:message" minOccurs="0" maxOccurs="unbounded"/>
                   <element ref="wsdl:portType" minOccurs="0" maxOccurs="unbounded"/>
                   <element ref="wsdl:binding" minOccurs="0" maxOccurs="unbounded"/>
                   <element ref="wsdl:service" minOccurs="0" maxOccurs="unbounded"/>
                   <any namespace="##other" minOccurs="0" maxOccurs="unbounded">
                      <annotation>
                         <documentation>to support extensibility elements </documentation>
                      </annotation>
                   </any>
                </sequence>
                <attribute name="targetNamespace" type="uriReference" use="optional"/>
                <attribute name="name" type="NMTOKEN" use="optional"/>
             </extension>
          </complexContent>
      </complexType>
       <element name="import" type="wsdl:importType"/>
       <complexType name="importType">
          <complexContent>
       <extension base="wsdl:documented">
       <attribute name="namespace" type="uriReference" use="required"/>
          <attribute name="location" type="uriReference" use="required"/>
       </extension>
      </complexContent>
      </complexType>
       <element name="types" type="wsdl:typesType"/>
       <complexType name="typesType">
          <complexContent>
       <extension base="wsdl:documented">
       <sequence>
       <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
      </sequence>
       </extension>
      </complexContent>
      </complexType>
       <element name="message" type="wsdl:messageType">
          <unique name="part">
             <selector xpath="part"/>
             <field xpath="@name"/>
          </unique>
       </element>
       <complexType name="messageType">
          <complexContent>
       <extension base="wsdl:documented">
       <sequence>
       <element ref="wsdl:part" minOccurs="0" maxOccurs="unbounded"/>
      </sequence>
          <attribute name="name" type="NCName" use="required"/>
       </extension>
      </complexContent>
      </complexType>
       <element name="part" type="wsdl:partType"/>
       <complexType name="partType">
          <complexContent>
       <extension base="wsdl:openAtts">
       <attribute name="name" type="NMTOKEN" use="optional"/>
          <attribute name="type" type="QName" use="optional"/>
          <attribute name="element" type="QName" use="optional"/>
       </extension>
      </complexContent>
      </complexType>
       <element name="portType" type="wsdl:portTypeType"/>
       <complexType name="portTypeType">
          <complexContent>
       <extension base="wsdl:documented">
       <sequence>
       <element ref="wsdl:operation" minOccurs="0" maxOccurs="unbounded"/>
      </sequence>
          <attribute name="name" type="NCName" use="required"/>
       </extension>
      </complexContent>
      </complexType>
       <element name="operation" type="wsdl:operationType"/>
       <complexType name="operationType">
          <complexContent>
       <extension base="wsdl:documented">
          <choice>
             <group ref="wsdl:one-way-operation"/>
             <group ref="wsdl:request-response-operation"/>
             <group ref="wsdl:solicit-response-operation"/>
             <group ref="wsdl:notification-operation"/>
          </choice>
          <attribute name="name" type="NCName" use="required"/>
       </extension>
      </complexContent>
      </complexType>
       <group name="one-way-operation">
          <sequence>
             <element ref="wsdl:input"/>
          </sequence>
       </group>
       <group name="request-response-operation">
          <sequence>
             <element ref="wsdl:input"/>
             <element ref="wsdl:output"/>
             <element ref="wsdl:fault" minOccurs="0" maxOccurs="unbounded"/>
          </sequence>
       </group>
       <group name="solicit-response-operation">
          <sequence>
             <element ref="wsdl:output"/>
             <element ref="wsdl:input"/>
             <element ref="wsdl:fault" minOccurs="0" maxOccurs="unbounded"/>
          </sequence>
       </group>
       <group name="notification-operation">
          <sequence>
             <element ref="wsdl:output"/>
          </sequence>
       </group>
       <element name="input" type="wsdl:paramType"/>
       <element name="output" type="wsdl:paramType"/>
       <element name="fault" type="wsdl:faultType"/>
       <complexType name="paramType">
          <complexContent>
       <extension base="wsdl:documented">
       <attribute name="name" type="NMTOKEN" use="optional"/>
          <attribute name="message" type="QName" use="required"/>
       </extension>
      </complexContent>
      </complexType>
       <complexType name="faultType">
          <complexContent>
       <extension base="wsdl:documented">
       <attribute name="name" type="NMTOKEN" use="required"/>
          <attribute name="message" type="QName" use="required"/>
       </extension>
      </complexContent>
      </complexType>
       <complexType name="startWithExtensionsType" abstract="true">
          <complexContent>
       <extension base="wsdl:documented">
       <sequence>
       <any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
      </sequence>
       </extension>
      </complexContent>
      </complexType>
       <element name="binding" type="wsdl:bindingType"/>
       <complexType name="bindingType">
          <complexContent>
       <extension base="wsdl:startWithExtensionsType">
       <sequence>
       <element name="operation" type="wsdl:binding_operationType" minOccurs="0" maxOccurs="unbounded"/>
      </sequence>
          <attribute name="name" type="NCName" use="required"/>
          <attribute name="type" type="QName" use="required"/>
       </extension>
      </complexContent>
      </complexType>
       <complexType name="binding_operationType">
          <complexContent>
       <extension base="wsdl:startWithExtensionsType">
       <sequence>
       <element name="input" type="wsdl:startWithExtensionsType" minOccurs="0"/>
          <element name="output" type="wsdl:startWithExtensionsType" minOccurs="0"/>
          <element name="fault" minOccurs="0" maxOccurs="unbounded">
             <complexType>
                <complexContent>
       <extension base="wsdl:startWithExtensionsType">
       <attribute name="name" type="NMTOKEN" use="required"/>
             </extension>
      </complexContent>
      </complexType>
          </element>
      </sequence>
          <attribute name="name" type="NCName" use="required"/>
       </extension>
      </complexContent>
      </complexType>
       <element name="service" type="wsdl:serviceType"/>
       <complexType name="serviceType">
          <complexContent>
       <extension base="wsdl:documented">
       <sequence>
       <element ref="wsdl:port" minOccurs="0" maxOccurs="unbounded"/>
          <any namespace="##other" minOccurs="0"/>
      </sequence>
          <attribute name="name" type="NCName" use="required"/>
       </extension>
      </complexContent>
      </complexType>
       <element name="port" type="wsdl:portType"/>
       <complexType name="portType">
          <complexContent>
       <extension base="wsdl:documented">
       <sequence>
       <any namespace="##other" minOccurs="0"/>
      </sequence>
          <attribute name="name" type="NCName" use="required"/>
          <attribute name="binding" type="QName" use="required"/>
       </extension>
      </complexContent>
      </complexType>
      <attribute name="arrayType" type="string"/>
    </schema>

    A 4.2 SOAP Binding Schema
    <schema xmlns="http://www.w3.org/2000/10/XMLSchema"
            xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
            targetNamespace="http://schemas.xmlsoap.org/wsdl/soap/">
       <element name="binding" type="soap:bindingType"/>
       <complexType name="bindingType">
          <attribute name="transport" type="uriReference" use="optional"/>
          <attribute name="style" type="soap:styleChoice" use="optional"/>
       </complexType>
       <simpleType name="styleChoice">
          <restriction base="string">
       <enumeration value="rpc"/>
          <enumeration value="document"/>
      </restriction>
       </simpleType>
       <element name="operation" type="soap:operationType"/>
       <complexType name="operationType">
          <attribute name="soapAction" type="uriReference" use="optional"/>
          <attribute name="style" type="soap:styleChoice" use="optional"/>
       </complexType>
       <element name="body" type="soap:bodyType"/>
       <complexType name="bodyType">
          <attribute name="encodingStyle" type="uriReference" use="optional"/>
          <attribute name="parts" type="NMTOKENS" use="optional"/>
          <attribute name="use" type="soap:useChoice" use="optional"/>
          <attribute name="namespace" type="uriReference" use="optional"/>
       </complexType>
       <simpleType name="useChoice">
          <restriction base="string">
       <enumeration value="literal"/>
          <enumeration value="encoded"/>
      </restriction>
       </simpleType>
       <element name="fault" type="soap:faultType"/>
       <complexType name="faultType">
          <complexContent>
       <restriction base="soap:bodyType">
       <attribute name="parts" type="NMTOKENS" use="prohibited"/>
       </restriction>
      </complexContent>
      </complexType>
       <element name="header" type="soap:headerType"/>
       <complexType name="headerType">            
          <all>
              <element ref="soap:headerfault">
          </all>
          <attribute name="message" type="QName" use="required"/>
          <attribute name="parts" type="NMTOKENS" use="required"/>
          <attribute name="use" type="soap:useChoice" use="required"/>
          <attribute name="encodingStyle" type="uriReference" use="optional"/>
          <attribute name="namespace" type="uriReference" use="optional"/>      
       </complexType>
       <element name="headerfault" type="soap:headerfaultType"/>
       <complexType name="headerfaultType">            
          <attribute name="message" type="QName" use="required"/>
          <attribute name="parts" type="NMTOKENS" use="required"/>
          <attribute name="use" type="soap:useChoice" use="required"/>
          <attribute name="encodingStyle" type="uriReference" use="optional"/>
          <attribute name="namespace" type="uriReference" use="optional"/>      
       </complexType>
       <element name="address" type="soap:addressType"/>
       <complexType name="addressType">
          <attribute name="location" type="uriReference" use="required"/>
       </complexType>
    </schema>


    A 4.3 HTTP Binding Schema
    <schema xmlns="http://www.w3.org/2000/10/XMLSchema"
            xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
            targetNamespace="http://schemas.xmlsoap.org/wsdl/http/">
       <element name="address" type="http:addressType"/>
       <complexType name="addressType">
          <attribute name="location" type="uriReference" use="required"/>
       </complexType>
       <element name="binding" type="http:bindingType"/>
       <complexType name="bindingType">
          <attribute name="verb" type="NMTOKEN" use="required"/>
       </complexType>
       <element name="operation" type="http:operationType"/>
       <complexType name="operationType">
          <attribute name="location" type="uriReference" use="required"/>
       </complexType>
       <element name="urlEncoded">
          <complexType>
      </complexType>
       </element>
       <element name="urlReplacement">
          <complexType>
      </complexType>
       </element>
    </schema>

    A 4.4 MIME Binding Schema
    <schema  targetNamespace="http://schemas.xmlsoap.org/wsdl/mime/"
             xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
             xmlns="http://www.w3.org/2000/10/XMLSchema">
       <element name="content" type="mime:contentType"/>
       <complexType name="contentType" content="empty">
          <attribute name="type" type="string" use="optional"/>
          <attribute name="part" type="NMTOKEN" use="optional"/>
       </complexType>
       <element name="multipartRelated" type="mime:multipartRelatedType"/>
       <complexType name="multipartRelatedType" content="elementOnly">
          <element ref="mime:part" minOccurs="0" maxOccurs="unbounded"/>
       </complexType>
       <element name="part" type="mime:partType"/>
       <complexType name="partType" content="elementOnly">
          <any namespace="targetNamespace" minOccurs="0" maxOccurs="unbounded"/>
          <attribute name="name" type="NMTOKEN" use="required"/>
       </complexType>
       <element name="mimeXml" type="mime:mimeXmlType"/>
       <complexType name="mimeXmlType" content="empty">
          <attribute name="part" type="NMTOKEN" use="optional"/>
       </complexType>
    </schema>

    ----------------------------------------------

    -----------------------------------------------

    第十二章第一节《用ROR创建面向资源的服务》
    第十二章第二节《用Restlet创建面向资源的服务》
    第三章《REST式服务有什么不同》
    InfoQ SOA首席编辑胡键评《RESTful Web Services中文版》
    [InfoQ文章]解答有关REST的十点疑惑

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2006/6/20 15:33:00
     
     flyfoxs 帅哥哟,离线,有人找我吗?
      
      
      威望:5
      等级:研一(Artificial Intelligence期期不放过)
      文章:550
      积分:3935
      门派:XML.ORG.CN
      注册:2005/1/8

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给flyfoxs发送一个短消息 把flyfoxs加入好友 查看flyfoxs的个人资料 搜索flyfoxs在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看flyfoxs的博客3
    发贴心情 
    首先多谢坛主


    还是入行太浅,看标准的规范太少了。

    现在知道了,这类东西应该放到附录里面,并且我以后也文档也可以这样做。

    再次谢谢坛主。

    ----------------------------------------------
    存在即是被搜索!

    BLOG =>  http://www.OpenJ.cn

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

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

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