From: <jbo...@li...> - 2006-06-06 01:41:58
|
Author: arvinder Date: 2006-06-05 14:12:42 -0400 (Mon, 05 Jun 2006) New Revision: 4617 Added: labs/jbossesb/trunk/xml/ labs/jbossesb/trunk/xml/README.txt labs/jbossesb/trunk/xml/common/ labs/jbossesb/trunk/xml/common/common.xsd labs/jbossesb/trunk/xml/common/contract.xsd labs/jbossesb/trunk/xml/common/dispatcher.xsd labs/jbossesb/trunk/xml/common/jms.xsd labs/jbossesb/trunk/xml/common/plugin.xsd labs/jbossesb/trunk/xml/common/routing.xsd labs/jbossesb/trunk/xml/common/ws-addr.xsd labs/jbossesb/trunk/xml/jms-epr.xsd Log: Initial code drop for epr defintions Added: labs/jbossesb/trunk/xml/README.txt =================================================================== --- labs/jbossesb/trunk/xml/README.txt 2006-06-05 17:47:08 UTC (rev 4616) +++ labs/jbossesb/trunk/xml/README.txt 2006-06-05 18:12:42 UTC (rev 4617) @@ -0,0 +1,6 @@ +This directory contains the start of xml/schema/epr +definitions. In most cases they are simply ideas +comming together and therefore are subject to change. + +NOTE: These current set of XSD's are not valid yet. +They are in the process of being built then validated. \ No newline at end of file Added: labs/jbossesb/trunk/xml/common/common.xsd =================================================================== --- labs/jbossesb/trunk/xml/common/common.xsd 2006-06-05 17:47:08 UTC (rev 4616) +++ labs/jbossesb/trunk/xml/common/common.xsd 2006-06-05 18:12:42 UTC (rev 4617) @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +This schema contains common definitions required by all +eprs. +--> +<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.jboss.org/soa/endpoint/common" elementFormDefault="unqualified" attributeFormDefault="unqualified"> + <annotation> + <documentation> + JBoss Inc JMS SOA Schema Definition Copyright 2006 + </documentation> + </annotation> + <simpleType name="service-name"> + <restriction base="string"/> + </simpleType> + <simpleType name="service-type"> + <restriction base="string"> + <enumeration value="http"/> + <enumeration value="jms"/> + <enumeration value="file"/> + <enumeration value="jdbc"/> + <enumeration value="jxta"/> + <enumeration value="javaspace"/> + <enumeration value="ftp"/> + <enumeration value="email"/> + <enumeration value="xmpp"/> + </restriction> + </simpleType> + <simpleType name="gateway-type"> + <restriction base="string"> + <enumeration value="consumer"/> + <enumeration value="provider"/> + </restriction> + </simpleType> +</schema> Added: labs/jbossesb/trunk/xml/common/contract.xsd =================================================================== --- labs/jbossesb/trunk/xml/common/contract.xsd 2006-06-05 17:47:08 UTC (rev 4616) +++ labs/jbossesb/trunk/xml/common/contract.xsd 2006-06-05 18:12:42 UTC (rev 4617) @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +<contracts> + <wsdl-location></wsdl-location> +</contracts> +--> + \ No newline at end of file Added: labs/jbossesb/trunk/xml/common/dispatcher.xsd =================================================================== --- labs/jbossesb/trunk/xml/common/dispatcher.xsd 2006-06-05 17:47:08 UTC (rev 4616) +++ labs/jbossesb/trunk/xml/common/dispatcher.xsd 2006-06-05 18:12:42 UTC (rev 4617) @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +<dispatchers> + <dispatcher-set> + <dispatcher></dispatcher> + <dispatcher></dispatcher> + </dispatcher-set> + + + <dispatcher> + <name></name> + <apply-rule-set></apply-rule-set> + </dispatcher> +</dispatchers> +--> \ No newline at end of file Added: labs/jbossesb/trunk/xml/common/jms.xsd =================================================================== --- labs/jbossesb/trunk/xml/common/jms.xsd 2006-06-05 17:47:08 UTC (rev 4616) +++ labs/jbossesb/trunk/xml/common/jms.xsd 2006-06-05 18:12:42 UTC (rev 4617) @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<schema xmlns="http://www.w3.org/2001/XMLSchema" +xmlns:common="http://www.jboss.org/soa/endpoint/common" +xmlns:jms="http://www.jboss.org/soa/endpoint/protocol/jms" +targetNamespace="http://www.jboss.org/soa/endpoint/protocol/jms" elementFormDefault="unqualified" attributeFormDefault="unqualified"> + <annotation> + <documentation> + JBoss Inc JMS SOA Schema Definition Copyright 2006 + </documentation> + </annotation> + + <!-- import common --> + <import namespace="http://www.jboss.org/soa/endpoint/common" schemaLocation="common.xsd" /> + + <complexType name="jms"> + <sequence> + <element name="service-name" type="common:service-name"/> + <element name="service-type" type="common:service-type"/> + <element name="gateway-type" type="common:gateway-type" /> + <element name="connection-factory" type="string"/> + <element name="destination-name" type="string"/> + </sequence> + </complexType> + + <simpleType name="specification-version"> + <restriction base="string"> + <enumeration value="1.1"/> + <enumeration value="1.0.2b"/> + </restriction> + </simpleType> + + <simpleType name="destination-type"> + <restriction base="string"> + <enumeration value="queue"/> + <enumeration value="topic"/> + </restriction> + </simpleType> + +</schema> \ No newline at end of file Added: labs/jbossesb/trunk/xml/common/plugin.xsd =================================================================== --- labs/jbossesb/trunk/xml/common/plugin.xsd 2006-06-05 17:47:08 UTC (rev 4616) +++ labs/jbossesb/trunk/xml/common/plugin.xsd 2006-06-05 18:12:42 UTC (rev 4617) @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +<plugins> + <plugin-set> + <set-name></set-name> + <plugin-name></plugin-name> + </plugin-set> + + <plugin> + <name></name> + <class></class> + <parameters> + <name></name> + <value></value> + ... + ... + </parameters> + </plugin> +</plugins> +--> \ No newline at end of file Added: labs/jbossesb/trunk/xml/common/routing.xsd =================================================================== --- labs/jbossesb/trunk/xml/common/routing.xsd 2006-06-05 17:47:08 UTC (rev 4616) +++ labs/jbossesb/trunk/xml/common/routing.xsd 2006-06-05 18:12:42 UTC (rev 4617) @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +<routing> + <route> + <source></source> + <destination> + <type></type> + <name></name> + </destination> + </route> +</routing> +--> \ No newline at end of file Added: labs/jbossesb/trunk/xml/common/ws-addr.xsd =================================================================== --- labs/jbossesb/trunk/xml/common/ws-addr.xsd 2006-06-05 17:47:08 UTC (rev 4616) +++ labs/jbossesb/trunk/xml/common/ws-addr.xsd 2006-06-05 18:12:42 UTC (rev 4617) @@ -0,0 +1,118 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"> +<!-- + W3C XML Schema defined in the Web Services Addressing 1.0 specification + http://www.w3.org/TR/ws-addr-core + + 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 +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2005/08/addressing" targetNamespace="http://www.w3.org/2005/08/addressing" elementFormDefault="qualified" attributeFormDefault="unqualified" blockDefault="#all"> + <!-- Constructs from the WS-Addressing Core --> + <xs:element name="EndpointReference" type="tns:EndpointReferenceType"/> + <xs:complexType name="EndpointReferenceType" mixed="false"> + <xs:sequence> + <xs:element name="Address" type="tns:AttributedURIType"/> + <xs:element ref="tns:ReferenceParameters" minOccurs="0"/> + <xs:element ref="tns:Metadata" minOccurs="0"/> + <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:complexType> + <xs:element name="ReferenceParameters" type="tns:ReferenceParametersType"/> + <xs:complexType name="ReferenceParametersType" mixed="false"> + <xs:sequence> + <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:complexType> + <xs:element name="Metadata" type="tns:MetadataType"/> + <xs:complexType name="MetadataType" mixed="false"> + <xs:sequence> + <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:complexType> + <xs:element name="MessageID" type="tns:AttributedURIType"/> + <xs:element name="RelatesTo" type="tns:RelatesToType"/> + <xs:complexType name="RelatesToType" mixed="false"> + <xs:simpleContent> + <xs:extension base="xs:anyURI"> + <xs:attribute name="RelationshipType" type="tns:RelationshipTypeOpenEnum" use="optional" default="http://www.w3.org/2005/08/addressing/reply"/> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <xs:simpleType name="RelationshipTypeOpenEnum"> + <xs:union memberTypes="tns:RelationshipType xs:anyURI"/> + </xs:simpleType> + <xs:simpleType name="RelationshipType"> + <xs:restriction base="xs:anyURI"> + <xs:enumeration value="http://www.w3.org/2005/08/addressing/reply"/> + </xs:restriction> + </xs:simpleType> + <xs:element name="ReplyTo" type="tns:EndpointReferenceType"/> + <xs:element name="From" type="tns:EndpointReferenceType"/> + <xs:element name="FaultTo" type="tns:EndpointReferenceType"/> + <xs:element name="To" type="tns:AttributedURIType"/> + <xs:element name="Action" type="tns:AttributedURIType"/> + <xs:complexType name="AttributedURIType" mixed="false"> + <xs:simpleContent> + <xs:extension base="xs:anyURI"> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <!-- Constructs from the WS-Addressing SOAP binding --> + <xs:attribute name="IsReferenceParameter" type="xs:boolean"/> + <xs:simpleType name="FaultCodesOpenEnumType"> + <xs:union memberTypes="tns:FaultCodesType xs:QName"/> + </xs:simpleType> + <xs:simpleType name="FaultCodesType"> + <xs:restriction base="xs:QName"> + <xs:enumeration value="tns:InvalidAddressingHeader"/> + <xs:enumeration value="tns:InvalidAddress"/> + <xs:enumeration value="tns:InvalidEPR"/> + <xs:enumeration value="tns:InvalidCardinality"/> + <xs:enumeration value="tns:MissingAddressInEPR"/> + <xs:enumeration value="tns:DuplicateMessageID"/> + <xs:enumeration value="tns:ActionMismatch"/> + <xs:enumeration value="tns:MessageAddressingHeaderRequired"/> + <xs:enumeration value="tns:DestinationUnreachable"/> + <xs:enumeration value="tns:ActionNotSupported"/> + <xs:enumeration value="tns:EndpointUnavailable"/> + </xs:restriction> + </xs:simpleType> + <xs:element name="RetryAfter" type="tns:AttributedUnsignedLongType"/> + <xs:complexType name="AttributedUnsignedLongType" mixed="false"> + <xs:simpleContent> + <xs:extension base="xs:unsignedLong"> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <xs:element name="ProblemHeaderQName" type="tns:AttributedQNameType"/> + <xs:complexType name="AttributedQNameType" mixed="false"> + <xs:simpleContent> + <xs:extension base="xs:QName"> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <xs:element name="ProblemIRI" type="tns:AttributedURIType"/> + <xs:element name="ProblemAction" type="tns:ProblemActionType"/> + <xs:complexType name="ProblemActionType" mixed="false"> + <xs:sequence> + <xs:element ref="tns:Action" minOccurs="0"/> + <xs:element name="SoapAction" type="xs:anyURI" minOccurs="0"/> + </xs:sequence> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:complexType> +</xs:schema> Added: labs/jbossesb/trunk/xml/jms-epr.xsd =================================================================== --- labs/jbossesb/trunk/xml/jms-epr.xsd 2006-06-05 17:47:08 UTC (rev 4616) +++ labs/jbossesb/trunk/xml/jms-epr.xsd 2006-06-05 18:12:42 UTC (rev 4617) @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- This is the first cut at defining a standard jms-eps for jboss soa, what is happening here is + the assembling of xsds into our jms epr destination. +--> +<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:jms-epr="http://www.jboss.org/soa/endpoint/jms-epr" xmlns:wsa="http://www.w3.org/2005/08/addressing" +xmlns:jms="http://www.jboss.org/soa/endpoint/protocol/jms" targetNamespace="http://www.jboss.org/soa/endpoint/jms-epr" elementFormDefault="qualified"> + + <import namespace="http://www.w3.org/2005/08/addressing" schemaLocation="common/ws-addr.xsd"/> + <import namespace="http://www.jboss.org/soa/endpoint/protocol/jms" schemaLocation="common/jms.xsd"/> + <complexType name="jms-epr"> + <sequence> + <element name="epr" type="wsa:EndpointReferenceType"/> + <element name="jms" type="jms:jms/> + </sequence> + </complexType> + + + <!-- + NOTE: + The next set of stuff here is purely to provoke thoughts about defining these aspects and their + configuration etc. But if the general feeling is this should not be here, it can be deleted. + --> + <!-- + Plugins (aka interceptors?) Would the dispatcher send requests through the plugins? And would they + be configured for each endpoint instance? + <xs:include namespace="http://www.jboss.org/soa/endpoint/plugin" schemaLocation="common/plugin.xsd"/> + --> + <!-- + Contract defintions? We 'may' want this here. Mark? Unless this is delegated to the dispatcher layer, but + what if we include the dispatching defintions here/interceptors - I'm guessing you may not like this.. +<xs:include namespace="http://www.jboss.org/soa/endpoint/contract" schemaLocation="common/contract.xsd"/> + --> + <!-- + We can define a dispatcher(s) configuration which may also encompass routing, this is now relevant to + what ever task is assigned. If the dispatcher layer is forced to process the message before dumping it + on the bus? In this case could we say that the dispatchers.xsd contains/imports routing based information ? +<xs:include namespace="http://www.jboss.org/soa/endpoint/dispatcher" schemaLocation="common/dispatcher.xsd"/> + --> + <!-- + Ok I know routing was briefly discussed on the transformation thread, this can be deleted. The point + is to combine thoughts to a common definition. +<xs:include namespace="http://www.jboss.org/soa/endpoint/routing" schemaLocation="common/routing.xsd"/> + --> +</schema> |