You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by ry...@apache.org on 2006/02/02 18:16:38 UTC
svn commit: r374438 - in /incubator/woden/java/ant-test: ./ Interface.wsdl
XSDImport.wsdl XSDImport2.wsdl build.xml name.xsd test.wsdl
wsdl20-extensions.xsd wsdl20-http.xsd wsdl20-instance.xsd wsdl20-rpc.xsd
wsdl20-soap.xsd wsdl20.xsd
Author: ryman
Date: Thu Feb 2 09:16:34 2006
New Revision: 374438
URL: http://svn.apache.org/viewcvs?rev=374438&view=rev
Log:
Add directory to test validatewsdl20 Ant task
Added:
incubator/woden/java/ant-test/
incubator/woden/java/ant-test/Interface.wsdl
incubator/woden/java/ant-test/XSDImport.wsdl
incubator/woden/java/ant-test/XSDImport2.wsdl
incubator/woden/java/ant-test/build.xml
incubator/woden/java/ant-test/name.xsd
incubator/woden/java/ant-test/test.wsdl
incubator/woden/java/ant-test/wsdl20-extensions.xsd
incubator/woden/java/ant-test/wsdl20-http.xsd
incubator/woden/java/ant-test/wsdl20-instance.xsd
incubator/woden/java/ant-test/wsdl20-rpc.xsd
incubator/woden/java/ant-test/wsdl20-soap.xsd
incubator/woden/java/ant-test/wsdl20.xsd
Added: incubator/woden/java/ant-test/Interface.wsdl
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/Interface.wsdl?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/Interface.wsdl (added)
+++ incubator/woden/java/ant-test/Interface.wsdl Thu Feb 2 09:16:34 2006
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:description targetNamespace="http://example.org/"
+ xmlns:wsdl="http://www.w3.org/2006/01/wsdl"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2006/01/wsdl wsdl20.xsd">
+
+ <wsdl:documentation>
+ This test shows a valid use of a WSDL 2.0 interface.
+ </wsdl:documentation>
+
+ <wsdl:interface name="myInterface"></wsdl:interface>
+</wsdl:description>
Added: incubator/woden/java/ant-test/XSDImport.wsdl
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/XSDImport.wsdl?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/XSDImport.wsdl (added)
+++ incubator/woden/java/ant-test/XSDImport.wsdl Thu Feb 2 09:16:34 2006
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:description targetNamespace="http://example.org/XSDImport"
+ xmlns:name="http://example.org/name"
+ xmlns:wsdl="http://www.w3.org/2006/01/wsdl"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2006/01/wsdl
+http://www.w3.org/2006/01/wsdl/wsdl20.xsd http://www.w3.org/2001/XMLSchema
+http://www.w3.org/2001/XMLSchema.xsd">
+
+ <wsdl:documentation>
+ This test shows a valid use of an XML schema import.
+ </wsdl:documentation>
+
+ <wsdl:types>
+ <xs:import schemaLocation="name.xsd"
+ namespace="http://example.org/name" />
+ </wsdl:types>
+
+ <wsdl:interface name="Names">
+ <wsdl:operation name="getNameFromSIN"
+ pattern="http://www.w3.org/2006/01/wsdl/in-out">
+ <wsdl:input element="name:SIN" />
+ <wsdl:output element="name:Name" />
+ </wsdl:operation>
+ </wsdl:interface>
+</wsdl:description>
Added: incubator/woden/java/ant-test/XSDImport2.wsdl
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/XSDImport2.wsdl?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/XSDImport2.wsdl (added)
+++ incubator/woden/java/ant-test/XSDImport2.wsdl Thu Feb 2 09:16:34 2006
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:description targetNamespace="http://example.org/XSDImport"
+ xmlns:name="http://example.org/name"
+ xmlns:wsdl="http://www.w3.org/2006/01/wsdl"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2006/01/wsdl
+http://www.w3.org/2006/01/wsdl/wsdl20.xsd http://www.w3.org/2001/XMLSchema
+http://www.w3.org/2001/XMLSchema.xsd">
+
+ <wsdl:documentation>
+ This test shows that the XML schema import is valid when it is
+ imported in both this document and the document this imports.
+ </wsdl:documentation>
+
+ <wsdl:include location="XSDImport.wsdl" />
+
+ <wsdl:types>
+ <xs:import schemaLocation="name.xsd"
+ namespace="http://example.org/name" />
+ </wsdl:types>
+
+ <wsdl:interface name="Names">
+ <wsdl:operation name="getNameFromSIN"
+ pattern="http://www.w3.org/2006/01/wsdl/in-out">
+ <wsdl:input element="name:SIN" />
+ <wsdl:output element="name:Name" />
+ </wsdl:operation>
+ </wsdl:interface>
+</wsdl:description>
Added: incubator/woden/java/ant-test/build.xml
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/build.xml?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/build.xml (added)
+++ incubator/woden/java/ant-test/build.xml Thu Feb 2 09:16:34 2006
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<project default="main" basedir=".">
+ <property file="../build.properties" />
+
+ <property name="libdir" location="../build"/>
+ <property name="downloadslibdir" location="../downloads/lib"/>
+
+
+ <target name="main">
+ <taskdef name="validatewsdl20" classname="org.apache.woden.ant.ValidateWSDL20" classpath="${libdir}/woden.jar;${downloadslibdir}/${XmlSchemaFile}" />
+ <validatewsdl20 dir="." includes="**/*.wsdl">
+ </validatewsdl20>
+ </target>
+
+ <target name="update-ns" description="Updates the WSDL namespaces.">
+ <replace dir="." includes="*.wsdl, *.xsd" token="http://www.w3.org/2005/08/" value="http://www.w3.org/2006/01/" />
+ </target>
+
+</project>
\ No newline at end of file
Added: incubator/woden/java/ant-test/name.xsd
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/name.xsd?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/name.xsd (added)
+++ incubator/woden/java/ant-test/name.xsd Thu Feb 2 09:16:34 2006
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.org/name" xmlns:tns="http://example.org/name">
+ <!-- This document is used as a sample XML schema document. -->
+ <element name="Name">
+ <complexType>
+ <sequence>
+ <element name="FirstName" type="string"></element>
+ <element name="LastName" type="string"></element>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="SIN" type="string"/>
+
+</schema>
\ No newline at end of file
Added: incubator/woden/java/ant-test/test.wsdl
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/test.wsdl?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/test.wsdl (added)
+++ incubator/woden/java/ant-test/test.wsdl Thu Feb 2 09:16:34 2006
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:description targetNamespace="http://example.org/name"
+ xmlns:name="http://example.org/name"
+ xmlns:wsdl="http://www.w3.org/2006/01/wsdl"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2006/01/wsdl http://www.w3.org/2006/01/wsdl/wsdl20.xsd http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd">
+
+ <wsdl:documentation>
+ This test shows a valid use of an XML schema import.
+ </wsdl:documentation>
+
+ <wsdl:types>
+ <schema xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://example.org/name"
+ xmlns:tns="http://example.org/name">
+
+ <element name="Name">
+ <complexType>
+ <sequence>
+ <element name="FirstName" type="string"></element>
+ <element name="LastName" type="string"></element>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="SIN" type="string" />
+
+ </schema>
+ </wsdl:types>
+
+ <wsdl:interface name="NameInterface">
+ <wsdl:operation name="getNameFromSIN"
+ pattern="http://www.w3.org/2006/01/wsdl/in-out">
+ <wsdl:input element="name:SIN" />
+ <wsdl:output element="name:Name" />
+ </wsdl:operation>
+ </wsdl:interface>
+
+ <wsdl:binding name="NamesBinding" interface="name:NameInterface">
+ </wsdl:binding>
+
+ <wsdl:service name="NamesService" interface="name:NameInterface">
+ <wsdl:endpoint name="NamesSOAPHTTPEndpoint"
+ binding="name:NamesBinding" />
+ </wsdl:service>
+
+</wsdl:description>
Added: incubator/woden/java/ant-test/wsdl20-extensions.xsd
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/wsdl20-extensions.xsd?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/wsdl20-extensions.xsd (added)
+++ incubator/woden/java/ant-test/wsdl20-extensions.xsd Thu Feb 2 09:16:34 2006
@@ -0,0 +1,59 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+ W3C XML Schema defined in the Web Services Description (WSDL)
+ Version 2.0 specifications
+ http://www.w3.org/TR/wsdl20
+ http://www.w3.org/TR/wsdl20-adjuncts
+
+ Copyright © 2005 World Wide Web Consortium,
+
+ (Massachusetts Institute of Technology, European Research Consortium for
+ Informatics and Mathematics, Keio University). All Rights Reserved. This
+ work is distributed under the W3C® Software License [1] in the hope that
+ it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ $Id: wsdl20-extensions.xsd,v 1.2 2005/11/09 19:36:34 aryman Exp $
+-->
+
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
+ targetNamespace='http://www.w3.org/2006/01/wsdl-extensions'
+ xmlns:wsdlx="http://www.w3.org/2006/01/wsdl-extensions"
+ attributeFormDefault="qualified"
+ elementFormDefault='qualified'
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema ../xsd/XMLSchema.xsd">
+
+ <xs:attribute name='safe' type="xs:boolean">
+ <xs:annotation>
+ <xs:documentation>
+ This attribute may be used to annotate an
+ interface operation to indicate that it
+ provides a safe interaction.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+
+ <xs:attribute name="interface" type="xs:QName">
+ <xs:annotation>
+ <xs:documentation>
+ This attribute may be used to annotate element or
+ attribute definitions to indicate that the content refers
+ to Web service that implements the specified interface.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+
+ <xs:attribute name="binding" type="xs:QName">
+ <xs:annotation>
+ <xs:documentation>
+ This attribute may be used to annotate element or
+ attribute definitions to indicate that the content refers
+ to Web service that implements the specified binding.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+
+</xs:schema>
Added: incubator/woden/java/ant-test/wsdl20-http.xsd
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/wsdl20-http.xsd?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/wsdl20-http.xsd (added)
+++ incubator/woden/java/ant-test/wsdl20-http.xsd Thu Feb 2 09:16:34 2006
@@ -0,0 +1,95 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+ W3C XML Schema defined in the Web Services Description (WSDL)
+ Version 2.0 Part 2: Adjuncts specification
+ http://www.w3.org/TR/wsdl20-adjuncts
+
+ Copyright © 2005 World Wide Web Consortium,
+
+ (Massachusetts Institute of Technology, European Research Consortium for
+ Informatics and Mathematics, Keio University). All Rights Reserved. This
+ work is distributed under the W3C® Software License [1] in the hope that
+ it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ $Id$
+-->
+
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
+ targetNamespace='http://www.w3.org/2006/01/wsdl/http'
+ xmlns:wsdl='http://www.w3.org/2006/01/wsdl'
+ xmlns:whttp='http://www.w3.org/2006/01/wsdl/http'
+ attributeFormDefault='qualified'
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema ../xsd/XMLSchema.xsd">
+
+ <xs:import namespace='http://www.w3.org/2006/01/wsdl'
+ schemaLocation="wsdl20.xsd" />
+
+ <xs:attribute name='methodDefault' type='xs:string'/>
+ <xs:attribute name='method' type='xs:string'/>
+
+ <xs:attribute name='version' type='whttp:versionType'/>
+
+ <xs:attribute name='location' type='xs:anyURI'/>
+
+ <xs:attribute name="code">
+ <xs:simpleType>
+ <xs:union memberTypes="xs:int">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="#any"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attribute name='inputSerialization' type='xs:string'/>
+ <xs:attribute name='outputSerialization' type='xs:string'/>
+ <xs:attribute name='faultSerialization' type='xs:string'/>
+
+ <xs:attribute name='queryParameterSeparatorDefault' type='xs:string'/>
+
+ <xs:attribute name='defaultTransferCoding' type='xs:string'/>
+ <xs:attribute name='transferCoding' type='xs:string'/>
+
+ <xs:attribute name='cookies' type='xs:boolean'/>
+
+ <xs:attribute name='authenticationType'>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="basic"/>
+ <xs:enumeration value="digest"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name='authenticationRealm' type='xs:string'/>
+
+ <xs:simpleType name="versionType">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="[0-9]+\.[0-9]+"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="httpTopkenType">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="[!#-'*+\-.0-9A-Z^-z|~]+"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:element name="header">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:attribute name="name" type="whttp:httpTokenType" use="required"/>
+ <xs:attribute name="type" type="xs:QName" use="required" />
+ <xs:attribute name="required" type="xs:boolean" />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
Added: incubator/woden/java/ant-test/wsdl20-instance.xsd
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/wsdl20-instance.xsd?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/wsdl20-instance.xsd (added)
+++ incubator/woden/java/ant-test/wsdl20-instance.xsd Thu Feb 2 09:16:34 2006
@@ -0,0 +1,40 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+ W3C XML Schema defined in the Web Services Description (WSDL)
+ Version 2.0 specification
+ http://www.w3.org/TR/wsdl20
+
+ Copyright © 2005 World Wide Web Consortium,
+
+ (Massachusetts Institute of Technology, European Research Consortium for
+ Informatics and Mathematics, Keio University). All Rights Reserved. This
+ work is distributed under the W3C® Software License [1] in the hope that
+ it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ $Id: wsdl20-instance.xsd,v 1.3 2005/11/09 19:36:34 aryman Exp $
+-->
+
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
+ targetNamespace='http://www.w3.org/2006/01/wsdl-instance'
+ xmlns:wsdli='http://www.w3.org/2006/01/wsdl-instance'
+ elementFormDefault='qualified'
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema ../xsd/XMLSchema.xsd">
+
+ <xs:attribute name="wsdlLocation">
+ <xs:annotation>
+ <xs:documentation>
+ This attribute can be used to provide some hints on where
+ additional WSDL information for a given namespace can be
+ found in order to help with QName resolution
+ </xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:list itemType="xs:anyURI"/>
+ </xs:simpleType>
+ </xs:attribute>
+
+</xs:schema>
Added: incubator/woden/java/ant-test/wsdl20-rpc.xsd
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/wsdl20-rpc.xsd?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/wsdl20-rpc.xsd (added)
+++ incubator/woden/java/ant-test/wsdl20-rpc.xsd Thu Feb 2 09:16:34 2006
@@ -0,0 +1,54 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+ W3C XML Schema defined in the Web Services Description (WSDL)
+ Version 2.0 Adjuncts specification
+ http://www.w3.org/TR/wsdl20-adjuncts
+
+ Copyright © 2005 World Wide Web Consortium,
+
+ (Massachusetts Institute of Technology, European Research Consortium for
+ Informatics and Mathematics, Keio University). All Rights Reserved. This
+ work is distributed under the W3C® Software License [1] in the hope that
+ it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ $Id: wsdl20-rpc.xsd,v 1.4 2005/11/09 19:36:34 aryman Exp $
+-->
+
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
+ targetNamespace="http://www.w3.org/2006/01/wsdl/rpc"
+ xmlns:wrpc="http://www.w3.org/2006/01/wsdl/rpc"
+ elementFormDefault='qualified'
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema ../xsd/XMLSchema.xsd">
+
+ <xs:attribute name="signature" type="wrpc:signatureType">
+ <xs:annotation>
+ <xs:documentation>
+ This attribute can be used as an extension to describe
+ the RPC signature associated with an operation that uses
+ the RPC style.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+
+ <xs:simpleType name="signatureType">
+ <xs:list itemType="wrpc:signatureItemType" />
+ </xs:simpleType>
+
+ <xs:simpleType name="signatureItemType">
+ <xs:union memberTypes="xs:QName wrpc:directionToken" />
+ </xs:simpleType>
+
+ <xs:simpleType name="directionToken">
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="#in" />
+ <xs:enumeration value="#out" />
+ <xs:enumeration value="#inout" />
+ <xs:enumeration value="#return" />
+ </xs:restriction>
+ </xs:simpleType>
+
+</xs:schema>
Added: incubator/woden/java/ant-test/wsdl20-soap.xsd
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/wsdl20-soap.xsd?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/wsdl20-soap.xsd (added)
+++ incubator/woden/java/ant-test/wsdl20-soap.xsd Thu Feb 2 09:16:34 2006
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ W3C XML Schema defined in the Web Services Description Language
+ (WSDL) Version 2.0 Part 2: Adjuncts specification
+ http://www.w3.org/TR/wsdl20-adjuncts
+
+ Copyright © 2005 World Wide Web Consortium,
+
+ (Massachusetts Institute of Technology, European Research Consortium for
+ Informatics and Mathematics, Keio University). All Rights Reserved. This
+ work is distributed under the W3C® Software License [1] in the hope that
+ it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ $Id: wsdl20-soap.xsd,v 1.5 2005/11/09 19:36:34 aryman Exp $
+-->
+
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
+ targetNamespace="http://www.w3.org/2006/01/wsdl/soap"
+ xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap"
+ xmlns:wsdl="http://www.w3.org/2006/01/wsdl"
+ elementFormDefault="qualified" attributeFormDefault="unqualified"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema ../xsd/XMLSchema.xsd">
+
+ <xs:import namespace="http://www.w3.org/2006/01/wsdl"
+ schemaLocation="wsdl20.xsd" />
+
+ <xs:attribute name="version" type="xs:string" />
+ <xs:attribute name="protocol" type="xs:anyURI" />
+
+ <xs:attribute name="mepDefault" type="xs:anyURI" />
+ <xs:attribute name="mep" type="xs:anyURI" />
+
+ <xs:attribute name="action" type="xs:anyURI" />
+
+ <xs:element name="module">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType'>
+ <xs:sequence>
+ <xs:element ref="wsdl:property" minOccurs="0"
+ maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:attribute name="uri" type="xs:anyURI"
+ use="required" />
+ <xs:attribute name="required" type="xs:boolean" />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="header">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType'>
+ <xs:attribute name="element" type="xs:QName"
+ use="required" />
+ <xs:attribute name="mustUnderstand"
+ type="xs:boolean" />
+ <xs:attribute name="required" type="xs:boolean" />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:simpleType name="TokenAny">
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="#any"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:attribute name="code">
+ <xs:simpleType>
+ <xs:union memberTypes="xs:QName wsoap:TokenAny"/>
+ </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attribute name="subcodes">
+ <xs:simpleType>
+ <xs:union memberTypes="wsoap:TokenAny">
+ <xs:simpleType>
+ <xs:list itemType="xs:QName" />
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+
+</xs:schema>
Added: incubator/woden/java/ant-test/wsdl20.xsd
URL: http://svn.apache.org/viewcvs/incubator/woden/java/ant-test/wsdl20.xsd?rev=374438&view=auto
==============================================================================
--- incubator/woden/java/ant-test/wsdl20.xsd (added)
+++ incubator/woden/java/ant-test/wsdl20.xsd Thu Feb 2 09:16:34 2006
@@ -0,0 +1,417 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+ W3C XML Schema defined in the Web Services Description (WSDL)
+ Version 2.0 specification
+ http://www.w3.org/TR/wsdl20
+
+ Copyright © 2005 World Wide Web Consortium,
+
+ (Massachusetts Institute of Technology, European Research Consortium for
+ Informatics and Mathematics, Keio University). All Rights Reserved. This
+ work is distributed under the W3C® Software License [1] in the hope that
+ it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+ $Id: wsdl20.xsd,v 1.8 2005/11/09 19:36:34 aryman Exp $
+-->
+
+
+<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
+ targetNamespace='http://www.w3.org/2006/01/wsdl'
+ elementFormDefault='qualified' xmlns:wsdl='http://www.w3.org/2006/01/wsdl'
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.w3.org/2001/XMLSchema ../xsd/XMLSchema.xsd">
+
+ <xs:element name='documentation' type='wsdl:DocumentationType' />
+ <xs:complexType name='DocumentationType' mixed='true' >
+ <xs:sequence>
+ <xs:any processContents='lax' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:complexType>
+
+ <xs:complexType name='DocumentedType' >
+ <xs:annotation>
+ <xs:documentation>
+ This type is extended by component types to allow them to be documented.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element ref='wsdl:documentation' minOccurs='0' maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name='ExtensibleDocumentedType' abstract='true' >
+ <xs:annotation>
+ <xs:documentation>
+ This type is extended by component types to allow
+ attributes from other namespaces to be added.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base='wsdl:DocumentedType' >
+ <xs:anyAttribute namespace='##other' processContents='lax' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <!-- description element decl and type def -->
+ <xs:element name='description' type='wsdl:DescriptionType' >
+ <xs:unique name='interface' >
+ <xs:selector xpath='wsdl:interface' />
+ <xs:field xpath='@name' />
+ </xs:unique>
+ <xs:unique name='binding' >
+ <xs:selector xpath='wsdl:binding' />
+ <xs:field xpath='@name' />
+ </xs:unique>
+ <xs:unique name='service' >
+ <xs:selector xpath='wsdl:service' />
+ <xs:field xpath='@name' />
+ </xs:unique>
+ </xs:element>
+
+ <xs:complexType name='DescriptionType' >
+ <xs:annotation>
+ <xs:documentation>
+ Although correct, this type declaration does not capture
+ all the constraints on the contents of the wsdl:description
+ element as defined by the WSDL 2.0 specification.
+
+ In particular, the ordering constraints wrt elements preceding
+ and following the wsdl:types child element are not captured, as
+ attempts to incorporate such restrictions in the schema
+ ran afoul of the UPA (Unique Particle Attribution) rule
+ in the XML Schema language.
+
+ Please refer to the WSDL 2.0 specification for
+ additional information on the contents of this type.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element ref='wsdl:import' />
+ <xs:element ref='wsdl:include' />
+ <xs:element ref='wsdl:types'/>
+ <xs:element ref='wsdl:interface' />
+ <xs:element ref='wsdl:binding' />
+ <xs:element ref='wsdl:service' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='targetNamespace' type='xs:anyURI' use='required' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <!-- types for import and include elements -->
+ <xs:element name='import' type='wsdl:ImportType' />
+ <xs:complexType name='ImportType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:attribute name='namespace' type='xs:anyURI' use='required' />
+ <xs:attribute name='location' type='xs:anyURI' use='optional' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:element name='include' type='wsdl:IncludeType' />
+ <xs:complexType name='IncludeType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:attribute name='location' type='xs:anyURI' use='required' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:element name='types' type='wsdl:TypesType' />
+ <xs:complexType name='TypesType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:sequence>
+ <xs:any namespace='##other' minOccurs='0' maxOccurs='unbounded' />
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <!-- parts related to wsdl:interface -->
+ <xs:element name='interface' type='wsdl:InterfaceType' >
+ <xs:unique name='operation' >
+ <xs:selector xpath='wsdl:operation' />
+ <xs:field xpath='@name' />
+ </xs:unique>
+ <xs:unique name='fault' >
+ <xs:selector xpath='wsdl:fault' />
+ <xs:field xpath='@name' />
+ </xs:unique>
+ </xs:element>
+ <xs:complexType name='InterfaceType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element name='operation' type='wsdl:InterfaceOperationType' />
+ <xs:element name='fault' type='wsdl:InterfaceFaultType' />
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='name' type='xs:NCName' use='required' />
+ <xs:attribute name='extends' use='optional' >
+ <xs:simpleType>
+ <xs:list itemType='xs:QName' />
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name='styleDefault' use='optional'>
+ <xs:simpleType>
+ <xs:list itemType='xs:anyURI' />
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name='InterfaceOperationType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element name='input' type='wsdl:MessageRefType' />
+ <xs:element name='output' type='wsdl:MessageRefType' />
+ <xs:element name='infault' type='wsdl:MessageRefFaultType' />
+ <xs:element name='outfault' type='wsdl:MessageRefFaultType' />
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='name' type='xs:NCName' use='required' />
+ <xs:attribute name='pattern' type='xs:anyURI' use='required' />
+ <xs:attribute name='safe' type="xs:boolean" use='optional' />
+ <xs:attribute name='style' type='xs:anyURI' use='optional' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name='MessageRefType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='messageLabel' type='xs:NCName' use='optional' />
+ <xs:attribute name='element' type='wsdl:ElementReferenceType' use='optional' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:simpleType name="ElementReferenceType">
+ <xs:annotation>
+ <xs:documentation>
+ Use the QName of a GED that describes the content,
+ #any for any content,
+ #none for empty content, or
+ #other for content described by some other extension attribute that references a declaration in a non-XML extension type system.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:union memberTypes="xs:QName">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="#any"/>
+ <xs:enumeration value="#none"/>
+ <xs:enumeration value="#other"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+
+ <xs:complexType name='MessageRefFaultType'>
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='ref' type='xs:QName' use='required' />
+ <xs:attribute name='messageLabel' type='xs:NCName' use='optional' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name='InterfaceFaultType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='name' type='xs:NCName' use='required' />
+ <xs:attribute name='element' type='xs:QName' use='optional' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:element name='feature' type='wsdl:FeatureType' />
+ <xs:complexType name='FeatureType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='ref' type="xs:anyURI" use='required' />
+ <xs:attribute name='required' type='xs:boolean' use='optional' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:element name='property' type='wsdl:PropertyType' />
+ <xs:complexType name='PropertyType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element name='value'/>
+ <xs:element name='constraint' type='xs:QName' />
+ </xs:choice>
+ <xs:any namespace='##other'
+ processContents='lax'
+ minOccurs='0'
+ maxOccurs='unbounded' />
+ </xs:sequence>
+ <xs:attribute name='ref' type="xs:anyURI" use='required' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <!-- types related to wsdl:binding -->
+ <xs:element name='binding' type='wsdl:BindingType' />
+ <xs:complexType name='BindingType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element name='operation' type='wsdl:BindingOperationType' />
+ <xs:element name='fault' type='wsdl:BindingFaultType' />
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='name' type='xs:NCName' use='required' />
+ <xs:attribute name='type' type='xs:anyURI' use='required' />
+ <xs:attribute name='interface' type='xs:QName' use='optional' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name='BindingOperationType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element name='input' type='wsdl:BindingOperationMessageType' />
+ <xs:element name='output' type='wsdl:BindingOperationMessageType' />
+ <xs:element name='infault' type='wsdl:BindingOperationFaultType' />
+ <xs:element name='outfault' type='wsdl:BindingOperationFaultType' />
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='ref' type='xs:QName' use='required' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name='BindingOperationMessageType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='messageLabel' type='xs:NCName' use='optional' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name='BindingOperationFaultType'>
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='ref' type='xs:QName' use='required' />
+ <xs:attribute name='messageLabel' type='xs:NCName' use='optional' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name='BindingFaultType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='ref' type='xs:QName' use='required' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <!-- types related to service -->
+ <xs:element name='service' type='wsdl:ServiceType' >
+ <xs:unique name='endpoint' >
+ <xs:selector xpath='wsdl:endpoint' />
+ <xs:field xpath='@name' />
+ </xs:unique>
+ </xs:element>
+ <xs:complexType name='ServiceType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='1' maxOccurs='unbounded' >
+ <xs:element ref='wsdl:endpoint' />
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='name' type='xs:NCName' use='required' />
+ <xs:attribute name='interface' type='xs:QName' use='required' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:element name='endpoint' type='wsdl:EndpointType' />
+ <xs:complexType name='EndpointType' >
+ <xs:complexContent>
+ <xs:extension base='wsdl:ExtensibleDocumentedType' >
+ <xs:choice minOccurs='0' maxOccurs='unbounded' >
+ <xs:element ref='wsdl:feature' />
+ <xs:element ref='wsdl:property' />
+ <xs:any namespace='##other' processContents='lax' />
+ </xs:choice>
+ <xs:attribute name='name' type='xs:NCName' use='required' />
+ <xs:attribute name='binding' type='xs:QName' use='required' />
+ <xs:attribute name='address' type='xs:anyURI' use='optional' />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:attribute name='required' type='xs:boolean' />
+
+ <xs:complexType name='ExtensibilityElement' abstract='true' >
+ <xs:annotation>
+ <xs:documentation>
+ This abstract type is intended to serve as the base type for
+ extensibility elements. It includes the wsdl:required attribute
+ which it is anticipated will be used by most extension elements
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute ref='wsdl:required' use='optional' />
+ </xs:complexType>
+
+</xs:schema>
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org