|
From: <jbo...@li...> - 2006-06-06 11:52:32
|
Author: mar...@jb... Date: 2006-06-06 07:52:27 -0400 (Tue, 06 Jun 2006) New Revision: 4641 Modified: labs/jbossesb/trunk/xml/common/contract.xsd Log: updated contract definition. Modified: labs/jbossesb/trunk/xml/common/contract.xsd =================================================================== --- labs/jbossesb/trunk/xml/common/contract.xsd 2006-06-06 10:59:26 UTC (rev 4640) +++ labs/jbossesb/trunk/xml/common/contract.xsd 2006-06-06 11:52:27 UTC (rev 4641) @@ -1,8 +1,24 @@ <?xml version="1.0" encoding="UTF-8"?> - -<!-- -<contracts> - <wsdl-location></wsdl-location> -</contracts> ---> - \ No newline at end of file +<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/esb/contract" xmlns:tns="http://www.example.org/esb/contract" xmlns:wsa="http://www.w3.org/2005/08/addressing"> + <xs:import namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"/> + <xs:complexType name="ContractDefinition"> + <xs:sequence> + <xs:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="lax"/> + <xs:element name="serviceType" type="xs:anyURI"/> + <xs:element minOccurs="0" name="serviceSubType" type="xs:anyURI"/> + <xs:element minOccurs="0" name="version" type="xs:anyURI"/> + <xs:element minOccurs="0" name="protocols" type="ProtocolData"/> + <!-- + <xs:element minOccurs="0" name="policies" type="wsp:Policy"/> + --> + </xs:sequence> + <xs:attribute ref="wsu:Id" use="optional"/> + </xs:complexType> + + <xs:complexType name="ProtocolData"> + <xs:sequence> + <xs:element name="epr" type="wsa:EndpointReferenceType"/> + <xs:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="lax"/> + </xs:sequence> + </xs:complexType> +</schema> \ No newline at end of file |