[jboss-svn-commits] JBL Code SVN: r6191 - in labs/jbossesb/workspace/rearchitecture/product/etc/schemas/xml: . common

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Sep 13 05:10:26 EDT 2006


Author: arvinder
Date: 2006-09-13 05:10:22 -0400 (Wed, 13 Sep 2006)
New Revision: 6191

Added:
   labs/jbossesb/workspace/rearchitecture/product/etc/schemas/xml/common/email.xsd
   labs/jbossesb/workspace/rearchitecture/product/etc/schemas/xml/email-epr.xsd
Log:
Initial version

Added: labs/jbossesb/workspace/rearchitecture/product/etc/schemas/xml/common/email.xsd
===================================================================
--- labs/jbossesb/workspace/rearchitecture/product/etc/schemas/xml/common/email.xsd	2006-09-13 08:58:45 UTC (rev 6190)
+++ labs/jbossesb/workspace/rearchitecture/product/etc/schemas/xml/common/email.xsd	2006-09-13 09:10:22 UTC (rev 6191)
@@ -0,0 +1,81 @@
+<?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/email"
+        targetNamespace="http://www.jboss.org/soa/endpoint/protocol/email" 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="email">
+        <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="destination-type">
+        <restriction base="string">
+            <enumeration value="smtp"/>
+            <enumeration value="pop"/>
+        </restriction>
+    </simpleType>
+
+    <element name="host" nillable="false">
+        <xs:annotation>
+            <xs:documentation>This host name</xs:documentation>
+        </xs:annotation>
+        <xs:simpleType>
+            <xs:restriction base="xs:string">
+                <xs:minLength value="1"/>
+                <xs:maxLength value="20"/>
+            </xs:restriction>
+        </xs:simpleType>
+    </element>
+
+    <element name="port" nillable="false">
+        <xs:annotation>
+            <xs:documentation>The port</xs:documentation>
+        </xs:annotation>
+        <xs:simpleType>
+            <xs:restriction base="xs:string">
+                <xs:minLength value="1"/>
+                <xs:maxLength value="2"/>
+            </xs:restriction>
+        </xs:simpleType>
+    </element>
+
+    <element name="username" nillable="false">
+        <xs:annotation>
+            <xs:documentation>The username</xs:documentation>
+        </xs:annotation>
+        <xs:simpleType>
+            <xs:restriction base="xs:string">
+                <xs:minLength value="1"/>
+                <xs:maxLength value="20"/>
+            </xs:restriction>
+        </xs:simpleType>
+    </element>
+
+     <element name="password" nillable="false">
+        <xs:annotation>
+            <xs:documentation>The password</xs:documentation>
+        </xs:annotation>
+        <xs:simpleType>
+            <xs:restriction base="xs:string">
+                <xs:minLength value="1"/>
+                <xs:maxLength value="20"/>
+            </xs:restriction>
+        </xs:simpleType>
+    </element>
+
+</schema>
\ No newline at end of file

Added: labs/jbossesb/workspace/rearchitecture/product/etc/schemas/xml/email-epr.xsd
===================================================================
--- labs/jbossesb/workspace/rearchitecture/product/etc/schemas/xml/email-epr.xsd	2006-09-13 08:58:45 UTC (rev 6190)
+++ labs/jbossesb/workspace/rearchitecture/product/etc/schemas/xml/email-epr.xsd	2006-09-13 09:10:22 UTC (rev 6191)
@@ -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 email epr destination.
+-->
+<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:email-epr="http://www.jboss.org/soa/endpoint/email-epr" xmlns:wsa="http://www.w3.org/2005/08/addressing"
+xmlns:email="http://www.jboss.org/soa/endpoint/protocol/email" targetNamespace="http://www.jboss.org/soa/endpoint/email-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/email" schemaLocation="common/email.xsd"/>
+  <complexType name="jms-epr">
+     <sequence>
+      <element name="epr" type="wsa:EndpointReferenceType"/>
+      <element name="email" type="email:email"/>
+     </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>
\ No newline at end of file




More information about the jboss-svn-commits mailing list