Added: incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/binding.wsdl URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/binding.wsdl?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/binding.wsdl (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/binding.wsdl Thu Oct 19 04:01:55 2006 @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- this document to be included into master document + (Shares targetnamespace with master) --> + +<description targetNamespace="http://example.com/bank" + xmlns="http://www.w3.org/2006/01/wsdl" + xmlns:tns="http://example.com/bank" + 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"> + + <binding name="BankSOAPBinding" type="http://www.w3.org/2005/12/wsdl/soap"> + <!-- This particular binding requires ISO9001 + compliance to be verifiable --> + <feature ref="http://example.com/ISO9001" + required="true"/> + <!-- This binding also requires notarization --> + <feature ref="http://example.com/notarization" + required="true"/> + </binding> +</description>
Added: incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/datatypes.dtd URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/datatypes.dtd?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/datatypes.dtd (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/datatypes.dtd Thu Oct 19 04:01:55 2006 @@ -0,0 +1,203 @@ +<!-- + DTD for XML Schemas: Part 2: Datatypes + $Id: datatypes.dtd,v 1.23 2001/03/16 17:36:30 ht Exp $ + Note this DTD is NOT normative, or even definitive. - - the + prose copy in the datatypes REC is the definitive version + (which shouldn't differ from this one except for this comment + and entity expansions, but just in case) + --> + +<!-- + This DTD cannot be used on its own, it is intended + only for incorporation in XMLSchema.dtd, q.v. + --> + +<!-- Define all the element names, with optional prefix --> +<!ENTITY % simpleType "%p;simpleType"> +<!ENTITY % restriction "%p;restriction"> +<!ENTITY % list "%p;list"> +<!ENTITY % union "%p;union"> +<!ENTITY % maxExclusive "%p;maxExclusive"> +<!ENTITY % minExclusive "%p;minExclusive"> +<!ENTITY % maxInclusive "%p;maxInclusive"> +<!ENTITY % minInclusive "%p;minInclusive"> +<!ENTITY % totalDigits "%p;totalDigits"> +<!ENTITY % fractionDigits "%p;fractionDigits"> +<!ENTITY % length "%p;length"> +<!ENTITY % minLength "%p;minLength"> +<!ENTITY % maxLength "%p;maxLength"> +<!ENTITY % enumeration "%p;enumeration"> +<!ENTITY % whiteSpace "%p;whiteSpace"> +<!ENTITY % pattern "%p;pattern"> + +<!-- + Customisation entities for the ATTLIST of each element + type. Define one of these if your schema takes advantage + of the anyAttribute='##other' in the schema for schemas + --> + +<!ENTITY % simpleTypeAttrs ""> +<!ENTITY % restrictionAttrs ""> +<!ENTITY % listAttrs ""> +<!ENTITY % unionAttrs ""> +<!ENTITY % maxExclusiveAttrs ""> +<!ENTITY % minExclusiveAttrs ""> +<!ENTITY % maxInclusiveAttrs ""> +<!ENTITY % minInclusiveAttrs ""> +<!ENTITY % totalDigitsAttrs ""> +<!ENTITY % fractionDigitsAttrs ""> +<!ENTITY % lengthAttrs ""> +<!ENTITY % minLengthAttrs ""> +<!ENTITY % maxLengthAttrs ""> +<!ENTITY % enumerationAttrs ""> +<!ENTITY % whiteSpaceAttrs ""> +<!ENTITY % patternAttrs ""> + +<!-- Define some entities for informative use as attribute + types --> +<!ENTITY % URIref "CDATA"> +<!ENTITY % XPathExpr "CDATA"> +<!ENTITY % QName "NMTOKEN"> +<!ENTITY % QNames "NMTOKENS"> +<!ENTITY % NCName "NMTOKEN"> +<!ENTITY % nonNegativeInteger "NMTOKEN"> +<!ENTITY % boolean "(true|false)"> +<!ENTITY % simpleDerivationSet "CDATA"> +<!-- + #all or space-separated list drawn from derivationChoice + --> + +<!-- + Note that the use of 'facet' below is less restrictive + than is really intended: There should in fact be no + more than one of each of minInclusive, minExclusive, + maxInclusive, maxExclusive, totalDigits, fractionDigits, + length, maxLength, minLength within datatype, + and the min- and max- variants of Inclusive and Exclusive + are mutually exclusive. On the other hand, pattern and + enumeration may repeat. + --> +<!ENTITY % minBound "(%minInclusive; | %minExclusive;)"> +<!ENTITY % maxBound "(%maxInclusive; | %maxExclusive;)"> +<!ENTITY % bounds "%minBound; | %maxBound;"> +<!ENTITY % numeric "%totalDigits; | %fractionDigits;"> +<!ENTITY % ordered "%bounds; | %numeric;"> +<!ENTITY % unordered + "%pattern; | %enumeration; | %whiteSpace; | %length; | + %maxLength; | %minLength;"> +<!ENTITY % facet "%ordered; | %unordered;"> +<!ENTITY % facetAttr + "value CDATA #REQUIRED + id ID #IMPLIED"> +<!ENTITY % fixedAttr "fixed %boolean; #IMPLIED"> +<!ENTITY % facetModel "(%annotation;)?"> +<!ELEMENT %simpleType; + ((%annotation;)?, (%restriction; | %list; | %union;))> +<!ATTLIST %simpleType; + name %NCName; #IMPLIED + final %simpleDerivationSet; #IMPLIED + id ID #IMPLIED + %simpleTypeAttrs;> +<!-- name is required at top level --> +<!ELEMENT %restriction; ((%annotation;)?, + (%restriction1; | + ((%simpleType;)?,(%facet;)*)), + (%attrDecls;))> +<!ATTLIST %restriction; + base %QName; #IMPLIED + id ID #IMPLIED + %restrictionAttrs;> +<!-- + base and simpleType child are mutually exclusive, + one is required. + + restriction is shared between simpleType and + simpleContent and complexContent (in XMLSchema.xsd). + restriction1 is for the latter cases, when this + is restricting a complex type, as is attrDecls. + --> +<!ELEMENT %list; ((%annotation;)?,(%simpleType;)?)> +<!ATTLIST %list; + itemType %QName; #IMPLIED + id ID #IMPLIED + %listAttrs;> +<!-- + itemType and simpleType child are mutually exclusive, + one is required + --> +<!ELEMENT %union; ((%annotation;)?,(%simpleType;)*)> +<!ATTLIST %union; + id ID #IMPLIED + memberTypes %QNames; #IMPLIED + %unionAttrs;> +<!-- + At least one item in memberTypes or one simpleType + child is required + --> + +<!ELEMENT %maxExclusive; %facetModel;> +<!ATTLIST %maxExclusive; + %facetAttr; + %fixedAttr; + %maxExclusiveAttrs;> +<!ELEMENT %minExclusive; %facetModel;> +<!ATTLIST %minExclusive; + %facetAttr; + %fixedAttr; + %minExclusiveAttrs;> + +<!ELEMENT %maxInclusive; %facetModel;> +<!ATTLIST %maxInclusive; + %facetAttr; + %fixedAttr; + %maxInclusiveAttrs;> +<!ELEMENT %minInclusive; %facetModel;> +<!ATTLIST %minInclusive; + %facetAttr; + %fixedAttr; + %minInclusiveAttrs;> + +<!ELEMENT %totalDigits; %facetModel;> +<!ATTLIST %totalDigits; + %facetAttr; + %fixedAttr; + %totalDigitsAttrs;> +<!ELEMENT %fractionDigits; %facetModel;> +<!ATTLIST %fractionDigits; + %facetAttr; + %fixedAttr; + %fractionDigitsAttrs;> + +<!ELEMENT %length; %facetModel;> +<!ATTLIST %length; + %facetAttr; + %fixedAttr; + %lengthAttrs;> +<!ELEMENT %minLength; %facetModel;> +<!ATTLIST %minLength; + %facetAttr; + %fixedAttr; + %minLengthAttrs;> +<!ELEMENT %maxLength; %facetModel;> +<!ATTLIST %maxLength; + %facetAttr; + %fixedAttr; + %maxLengthAttrs;> + +<!-- This one can be repeated --> +<!ELEMENT %enumeration; %facetModel;> +<!ATTLIST %enumeration; + %facetAttr; + %enumerationAttrs;> + +<!ELEMENT %whiteSpace; %facetModel;> +<!ATTLIST %whiteSpace; + %facetAttr; + %fixedAttr; + %whiteSpaceAttrs;> + +<!-- This one can be repeated --> +<!ELEMENT %pattern; %facetModel;> +<!ATTLIST %pattern; + %facetAttr; + %patternAttrs;> Added: incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/interface.wsdl URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/interface.wsdl?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/interface.wsdl (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/interface.wsdl Thu Oct 19 04:01:55 2006 @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- this document is imported by main wsdl document --> + +<description targetNamespace="http://example.com/bank" + xmlns="http://www.w3.org/2006/01/wsdl" + 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"> + + <!-- any old interface --> + <interface name="Bank"> + <!-- All implementations of this interface must be secure --> + <feature ref="http://example.com/secure-channel" + required="true"/> + <operation name="withdrawFunds" pattern="http://www.w3.org/2004/03/wsdl/in-out"> + <!-- This operation must have ACID properties --> + <feature ref="http://example.com/transaction" + required="true"/> + </operation> + <operation name="depositFunds" pattern="http://www.w3.org/2004/03/wsdl/in-out"> + <!-- This operation requires notarization --> + <feature ref="http://example.com/notarization" + required="true"/> + </operation> + </interface> + +</description> Added: incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/schemaImport.xsd URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/schemaImport.xsd?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/schemaImport.xsd (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/schemaImport.xsd Thu Oct 19 04:01:55 2006 @@ -0,0 +1,10 @@ +<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' + targetNamespace="http://example.org/getOverdraft"> + <xs:element name="aardvaark"> + <xs:complexType> + <xs:sequence> + <xs:element ref="population" minOccurs='1' maxOccurs='unbounded'/> + </xs:sequence> + </xs:complexType> + </xs:element> +</xs:schema> Added: incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/schemaInclude.xsd URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/schemaInclude.xsd?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/schemaInclude.xsd (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/schemaInclude.xsd Thu Oct 19 04:01:55 2006 @@ -0,0 +1,10 @@ +<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' + targetNamespace="http://example.org/getAccountDetails/"> + <xs:element name="personnel"> + <xs:complexType> + <xs:sequence> + <xs:element ref="person" minOccurs='1' maxOccurs='unbounded'/> + </xs:sequence> + </xs:complexType> + </xs:element> +</xs:schema> Added: incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/simpleresolver.catalog URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/simpleresolver.catalog?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/simpleresolver.catalog (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/simpleresolver.catalog Thu Oct 19 04:01:55 2006 @@ -0,0 +1,26 @@ +# {referenced URI}={actual location} +# +# standard resolutions for XML Schema: +http\://www.w3.org/2001/XMLSchema.xsd=XMLSchema.xsd +http\://www.w3.org/2000/08/XMLSchema.xsd=XMLSchema.xsd +http\://www.w3.org/2001/XMLSchema.dtd=XMLSchema.dtd +http\://www.w3.org/2001/xml.xsd=xml.xsd +# +# standard resolutions for wsdl20 +http\://www.w3.org/2006/01/wsdl/wsdl20.xsd=wsdl20.xsd +http\://www.w3.org/2006/01/wsdl/wsdl20-extensions.xsd=wsdl20-extensions.xsd +http\://www.w3.org/2006/01/wsdl/wsdl20-http.xsd=wsdl20-http.xsd +http\://www.w3.org/2006/01/wsdl/wsdl20-instance.xsd=wsdl20-instance.xsd +http\://www.w3.org/2006/01/wsdl/wsdl20-rpc.xsd=wsdl20-rpc.xsd +http\://www.w3.org/2006/01/wsdl/wsdl20-soap.xsd=wsdl20-soap.xsd +# +# resolutions for test case: +# (1) wsdl import / include +http\://test.com/importinterface.wsdl=interface.wsdl +http\://test.com/includebinding.wsdl=binding.wsdl +# +# (2)XML schema import/include: +http\://test.com/getBalance.xsd=schemaInclude.xsd +http\://test.com/getOverdraft.xsd=schemaImport.xsd + + Added: incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/woden14.wsdl URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/woden14.wsdl?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/woden14.wsdl (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/woden14.wsdl Thu Oct 19 04:01:55 2006 @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Tests resolving of : + description schemaLocation + wsdl:import location + wsdl:include location + wsdl:types xs:include schemaLocation + wsdl:types xs:include schemaLocation --> + +<description targetNamespace="http://example.com/bank" + xmlns="http://www.w3.org/2006/01/wsdl" + xmlns:tns="http://example.com/bank" + 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" > + + <types> + <xsd:schema targetNamespace="http://example.org/getAccountDetails/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <xsd:include schemaLocation="http://test.com/getBalance.xsd" /> + <xsd:import namespace="http://example.org/getOverdraft" + schemaLocation="http://test.com/getOverdraft.xsd" /> + </xsd:schema> + </types> + + + <import namespace="http://example.com/bank" location="http://test.com/importinterface.wsdl" /> + <!-- wsdl:import - expect location to be resolved. Namespace happens to be same in this ex --> + + <include location="http://test.com/includebinding.wsdl" /> + <!-- wsdl:include - expect location to be resolved --> + + <!-- need wsdl:types schema include and import --> + + <service name="BankService" + interface="tns:Bank"> + <endpoint name="BankSOAPEndpoint" binding="tns:BankSOAPBinding"/> + </service> +</description> Added: incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-extensions.xsd URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-extensions.xsd?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-extensions.xsd (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-extensions.xsd Thu Oct 19 04:01:55 2006 @@ -0,0 +1,52 @@ +<?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.3 2006/01/25 18:32:46 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/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-http.xsd URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-http.xsd?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-http.xsd (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-http.xsd Thu Oct 19 04:01:55 2006 @@ -0,0 +1,87 @@ +<?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="httpTokenType"> + <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/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-instance.xsd URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-instance.xsd?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-instance.xsd (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-instance.xsd Thu Oct 19 04:01:55 2006 @@ -0,0 +1,34 @@ +<?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.4 2006/01/25 18:32:46 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/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-rpc.xsd URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-rpc.xsd?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-rpc.xsd (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-rpc.xsd Thu Oct 19 04:01:55 2006 @@ -0,0 +1,48 @@ +<?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.5 2006/01/25 18:32:46 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/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-soap.xsd URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-soap.xsd?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-soap.xsd (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20-soap.xsd Thu Oct 19 04:01:55 2006 @@ -0,0 +1,79 @@ +<?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.6 2006/01/25 18:32:46 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/trunk/java/test/org/apache/woden/resolver/resources/wsdl20.xsd URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20.xsd?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20.xsd (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/wsdl20.xsd Thu Oct 19 04:01:55 2006 @@ -0,0 +1,407 @@ +<?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.11 2006/05/08 23:52:18 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"> + + <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="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> Added: incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/xml.xsd URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/xml.xsd?view=auto&rev=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/xml.xsd (added) +++ incubator/woden/trunk/java/test/org/apache/woden/resolver/resources/xml.xsd Thu Oct 19 04:01:55 2006 @@ -0,0 +1,146 @@ +<?xml version='1.0'?> +<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en"> + + <xs:annotation> + <xs:documentation> + See http://www.w3.org/XML/1998/namespace.html and + http://www.w3.org/TR/REC-xml for information about this namespace. + + This schema document describes the XML namespace, in a form + suitable for import by other schema documents. + + Note that local names in this namespace are intended to be defined + only by the World Wide Web Consortium or its subgroups. The + following names are currently defined in this namespace and should + not be used with conflicting semantics by any Working Group, + specification, or document instance: + + base (as an attribute name): denotes an attribute whose value + provides a URI to be used as the base for interpreting any + relative URIs in the scope of the element on which it + appears; its value is inherited. This name is reserved + by virtue of its definition in the XML Base specification. + + id (as an attribute name): denotes an attribute whose value + should be interpreted as if declared to be of type ID. + The xml:id specification is not yet a W3C Recommendation, + but this attribute is included here to facilitate experimentation + with the mechanisms it proposes. Note that it is _not_ included + in the specialAttrs attribute group. + + lang (as an attribute name): denotes an attribute whose value + is a language code for the natural language of the content of + any element; its value is inherited. This name is reserved + by virtue of its definition in the XML specification. + + space (as an attribute name): denotes an attribute whose + value is a keyword indicating what whitespace processing + discipline is intended for the content of the element; its + value is inherited. This name is reserved by virtue of its + definition in the XML specification. + + Father (in any context at all): denotes Jon Bosak, the chair of + the original XML Working Group. This name is reserved by + the following decision of the W3C XML Plenary and + XML Coordination groups: + + In appreciation for his vision, leadership and dedication + the W3C XML Plenary on this 10th day of February, 2000 + reserves for Jon Bosak in perpetuity the XML name + xml:Father + </xs:documentation> + </xs:annotation> + + <xs:annotation> + <xs:documentation>This schema defines attributes and an attribute group + suitable for use by + schemas wishing to allow xml:base, xml:lang, xml:space or xml:id + attributes on elements they define. + + To enable this, such a schema must import this schema + for the XML namespace, e.g. as follows: + <schema . . .> + . . . + <import namespace="http://www.w3.org/XML/1998/namespace" + schemaLocation="http://www.w3.org/2001/xml.xsd"/> + + Subsequently, qualified reference to any of the attributes + or the group defined below will have the desired effect, e.g. + + <type . . .> + . . . + <attributeGroup ref="xml:specialAttrs"/> + + will define a type which will schema-validate an instance + element with any of those attributes</xs:documentation> + </xs:annotation> + + <xs:annotation> + <xs:documentation>In keeping with the XML Schema WG's standard versioning + policy, this schema document will persist at + http://www.w3.org/2005/08/xml.xsd. + At the date of issue it can also be found at + http://www.w3.org/2001/xml.xsd. + The schema document at that URI may however change in the future, + in order to remain compatible with the latest version of XML Schema + itself, or with the XML namespace itself. In other words, if the XML + Schema or XML namespaces change, the version of this document at + http://www.w3.org/2001/xml.xsd will change + accordingly; the version at + http://www.w3.org/2005/08/xml.xsd will not change. + </xs:documentation> + </xs:annotation> + + <xs:attribute name="lang"> + <xs:annotation> + <xs:documentation>Attempting to install the relevant ISO 2- and 3-letter + codes as the enumerated possible values is probably never + going to be a realistic possibility. See + RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry + at http://www.iana.org/assignments/lang-tag-apps.htm for + further information. + + The union allows for the 'un-declaration' of xml:lang with + the empty string.</xs:documentation> + </xs:annotation> + <xs:simpleType> + <xs:union memberTypes="xs:language"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:enumeration value=""/> + </xs:restriction> + </xs:simpleType> + </xs:union> + </xs:simpleType> + </xs:attribute> + + <xs:attribute name="space"> + <xs:simpleType> + <xs:restriction base="xs:NCName"> + <xs:enumeration value="default"/> + <xs:enumeration value="preserve"/> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + + <xs:attribute name="base" type="xs:anyURI"> + <xs:annotation> + <xs:documentation>See http://www.w3.org/TR/xmlbase/ for + information about this attribute.</xs:documentation> + </xs:annotation> + </xs:attribute> + + <xs:attribute name="id" type="xs:ID"> + <xs:annotation> + <xs:documentation>See http://www.w3.org/TR/xml-id/ for + information about this attribute.</xs:documentation> + </xs:annotation> + </xs:attribute> + + <xs:attributeGroup name="specialAttrs"> + <xs:attribute ref="xml:base"/> + <xs:attribute ref="xml:lang"/> + <xs:attribute ref="xml:space"/> + </xs:attributeGroup> + +</xs:schema> Modified: incubator/woden/trunk/java/test/org/apache/woden/tests/AllWodenTestsDOM.java URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/tests/AllWodenTestsDOM.java?view=diff&rev=465571&r1=465570&r2=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/tests/AllWodenTestsDOM.java (original) +++ incubator/woden/trunk/java/test/org/apache/woden/tests/AllWodenTestsDOM.java Thu Oct 19 04:01:55 2006 @@ -25,6 +25,7 @@ import org.apache.woden.internal.ReaderFeaturesTest; import org.apache.woden.internal.wsdl20.validation.WSDLComponentValidatorTest; import org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidatorTest; +import org.apache.woden.resolver.SimpleURIResolverTest; import org.apache.woden.wsdl20.extensions.http.HTTPBindingExtensionsTest; import org.apache.woden.wsdl20.extensions.http.HTTPBindingFaultExtensionsTest; import org.apache.woden.wsdl20.extensions.http.HTTPBindingMessageReferenceExtensionsTest; @@ -97,6 +98,7 @@ addTest(HTTPBindingOperationExtensionsTest.suite()); addTest(HTTPBindingMessageReferenceExtensionsTest.suite()); addTest(HTTPEndpointExtensionsTest.suite()); + addTest(SimpleURIResolverTest.suite()); //TODO in-progress 30May06 tests for BindingOpExt and BindingMsgRefExt } Modified: incubator/woden/trunk/java/test/org/apache/woden/tests/AllWodenTestsOM.java URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/tests/AllWodenTestsOM.java?view=diff&rev=465571&r1=465570&r2=465571 ============================================================================== --- incubator/woden/trunk/java/test/org/apache/woden/tests/AllWodenTestsOM.java (original) +++ incubator/woden/trunk/java/test/org/apache/woden/tests/AllWodenTestsOM.java Thu Oct 19 04:01:55 2006 @@ -22,6 +22,7 @@ import org.apache.woden.OMWSDLFactoryTest; import org.apache.woden.OMWSDLReaderTest; +import org.apache.woden.resolver.OMSimpleURIResolverTest; import org.apache.woden.wsdl20.xml.OMEndpointElementTest; import org.apache.woden.wsdl20.xml.OMServiceElementTest; @@ -61,6 +62,7 @@ addTest(OMW3CTestSuiteTest.suite()); addTest(OMServiceElementTest.suite()); addTest(OMEndpointElementTest.suite()); + addTest(OMSimpleURIResolverTest.suite()); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
