summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-05-07 23:48:19 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-05-07 23:48:19 +0000
commitf196b3fad7cc88801096f27141009c9c222a1089 (patch)
tree80f20e03366d4bffe7a0c1ff2640803326f8a5c8 /sca-java-2.x/trunk
parentc685be8042cee0ba78a223255727e71a60aa8125 (diff)
Adding schema for declarative headers
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@942271 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rest.xsd17
1 files changed, 17 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rest.xsd b/sca-java-2.x/trunk/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rest.xsd
index ea90a847a1..388cfdd0cc 100644
--- a/sca-java-2.x/trunk/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rest.xsd
+++ b/sca-java-2.x/trunk/modules/assembly-xsd/src/main/resources/tuscany-sca-1.1-binding-rest.xsd
@@ -26,11 +26,13 @@
<import namespace="http://docs.oasis-open.org/ns/opencsa/sca/200912" schemaLocation="sca-1.1-cd05.xsd"/>
<element name="binding.rest" type="t:RESTBinding" substitutionGroup="sca:binding"/>
+
<complexType name="RESTBinding">
<complexContent>
<extension base="sca:Binding">
<sequence>
+ <element ref="t:http-headers" minOccurs="0" maxOccurs="1"/>
<!-- any namespace="##targetNamespace" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/ -->
</sequence>
@@ -38,6 +40,21 @@
</extension>
</complexContent>
</complexType>
+
+ <complexType name="HTTPHeadersType">
+ <sequence>
+ <element ref="t:header" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <element name="http-headers" type="t:HTTPHeadersType"/>
+
+ <complexType name="HTTPHeaderType">
+ <attribute name="name" type="string" use="required" />
+ <attribute name="value" type="string" use="required" />
+ </complexType>
+
+ <element name="header" type="t:HTTPHeaderType" />
<!-- wire formats -->
<complexType name="WireFormatJSONType">