diff --git a/CDT-requestPrimitive-v0_8_0.xsd b/CDT-requestPrimitive-v0_8_0.xsd new file mode 100644 index 0000000000000000000000000000000000000000..c4d362a8dbb1b2ff1673546397c5ce965f35b2fb --- /dev/null +++ b/CDT-requestPrimitive-v0_8_0.xsd @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright Notification + + +The oneM2M Partners authorize you to copy this document, provided that you retain all copyright and other proprietary notices +contained in the original materials on any copies of the materials and that you comply strictly with these terms. +This copyright permission does not constitute an endorsement of the products or services, nor does it encompass the granting of +any patent rights. The oneM2M Partners assume no responsibility for errors or omissions in this document. +© 2014, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TTA, TTC). All rights reserved. + +Notice of Disclaimer & Limitation of Liability + +The information provided in this document is directed solely to professionals who have the appropriate degree of experience +to understand and interpret its contents in accordance with generally accepted engineering or other professional standards +and applicable regulations. No recommendation as to products or vendors is made or should be implied. + +NO REPRESENTATION OR WARRANTY IS MADE THAT THE INFORMATION IS TECHNICALLY ACCURATE OR SUFFICIENT OR CONFORMS TO ANY STATUTE, +GOVERNMENTAL RULE OR REGULATION, AND FURTHER, NO REPRESENTATION OR WARRANTY IS MADE OF MERCHANTABILITY OR FITNESS FOR ANY +PARTICULAR PURPOSE OR AGAINST INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS. +NO oneM2M PARTNER TYPE 1 SHALL BE LIABLE, BEYOND THE AMOUNT OF ANY SUM RECEIVED IN PAYMENT BY THAT PARTNER FOR THIS DOCUMENT, +WITH RESPECT TO ANY CLAIM, AND IN NO EVENT SHALL oneM2M BE LIABLE FOR LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES. +oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PROVIDED IN THIS DOCUMENT IS AT THE RISK OF THE USER. + +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://www.onem2m.org/xml/protocols" + xmlns:m2m="http://www.onem2m.org/xml/protocols" + elementFormDefault="unqualified" attributeFormDefault="unqualified" > + + <xs:include schemaLocation="CDT-commonTypes-v0_8_0.xsd" /> + + <xs:element name="requestPrimitive" > + <xs:complexType> + <xs:sequence> + <!-- parameter "Operation" --> + <xs:element name="operation" type="m2m:operation" minOccurs="1"/> + <!-- parameter "To" --> + <xs:element name="to" type="xs:anyURI" minOccurs="1"/> + <!-- parameter "From" --> + <xs:element name="from" type="m2m:ID" minOccurs="1"/> + <!-- parameter "Request Identifier" --> + <xs:element name="requestIdentifier" type="m2m:requestID" minOccurs="0"/> + <!-- parameter "ResourceType" --> + <xs:element name="resourceType" type="m2m:resourceType" minOccurs="0"/> + <!-- parameter "Name" --> + <xs:element name="name" type="xs:string" minOccurs="0"/> + <!-- TODO: data type m2m:primitiveContent needs to be agreed and added into commonTypes --> + <!-- parameter "Content" (of the primitive)--> + <xs:element name="content" type="m2m:primitiveContent" minOccurs="0"/> + <!-- parameter "Originating Timestamp" --> + <xs:element name="originatingTimestamp" type="m2m:timestamp" minOccurs="0"/> + <!-- parameter "Request Expiration Timestamp" --> + <xs:element name="requestExpirationTimestamp" type="m2m:timestamp" minOccurs="0"/> + <!-- parameter "Result Expiration Timestamp" --> + <xs:element name="resultExpirationTimestamp" type="m2m:timestamp" minOccurs="0"/> + <!-- parameter "Operation Execution Time" --> + <xs:element name="operationExecutionTime" type="m2m:timestamp" minOccurs="0"/> + <!-- parameter "Response Type" --> + <xs:element name="responseType" type="m2m:resourceType" minOccurs="0"/> + <!-- TODO: check if the old names Response Persistense and responsePersistence have been replaced everywhere in TS-0004 --> + <!-- parameter "Result Persistence" --> + <xs:element name="resultPersistence" type="xs:duration" minOccurs="0"/> + <!-- parameter "Result Content" --> + <xs:element name="resultContent" type="m2m:resultContent" minOccurs="0"/> + <!-- parameter "Event Category" --> + <xs:element name="eventCategory" type="m2m:eventCatType" minOccurs="0"/> + <!-- parameter "Delivery Aggregation" --> + <xs:element name="deliveryAggregation" type="xs:boolean" minOccurs="0"/> + <!-- parameter "Group Request Identifier" --> + <xs:element name="groupRequestIdentifier" type="xs:string" minOccurs="0"/> + <!-- parameter "Filter Criteria" --> + <xs:element name="filterCriteria" type="m2m:filterCriteria" minOccurs="0"/> + <!-- parameter "Discovery Result Type" --> + <xs:element name="discoveryResultType" type="m2m:discResType" minOccurs="0"/> + + <!-- TODO: Role is still included in TS-0004v081, it was removed in TS-0001. Proposal: remove it from XSD and TS-0004--> + <!-- parameter "Role" --> + <!-- <xs:element name="role" type="xs:string" minOccurs="0"/> --> + </xs:sequence> + </xs:complexType> + </xs:element> +</xs:schema> + diff --git a/CDT-responsePrimitive-v0_8_0.xsd b/CDT-responsePrimitive-v0_8_0.xsd new file mode 100644 index 0000000000000000000000000000000000000000..593963f49876d48cae2ef034334d97fd38681abc --- /dev/null +++ b/CDT-responsePrimitive-v0_8_0.xsd @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright Notification + + +The oneM2M Partners authorize you to copy this document, provided that you retain all copyright and other proprietary notices +contained in the original materials on any copies of the materials and that you comply strictly with these terms. +This copyright permission does not constitute an endorsement of the products or services, nor does it encompass the granting of +any patent rights. The oneM2M Partners assume no responsibility for errors or omissions in this document. +© 2014, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TTA, TTC). All rights reserved. + +Notice of Disclaimer & Limitation of Liability + +The information provided in this document is directed solely to professionals who have the appropriate degree of experience +to understand and interpret its contents in accordance with generally accepted engineering or other professional standards +and applicable regulations. No recommendation as to products or vendors is made or should be implied. + +NO REPRESENTATION OR WARRANTY IS MADE THAT THE INFORMATION IS TECHNICALLY ACCURATE OR SUFFICIENT OR CONFORMS TO ANY STATUTE, +GOVERNMENTAL RULE OR REGULATION, AND FURTHER, NO REPRESENTATION OR WARRANTY IS MADE OF MERCHANTABILITY OR FITNESS FOR ANY +PARTICULAR PURPOSE OR AGAINST INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS. +NO oneM2M PARTNER TYPE 1 SHALL BE LIABLE, BEYOND THE AMOUNT OF ANY SUM RECEIVED IN PAYMENT BY THAT PARTNER FOR THIS DOCUMENT, +WITH RESPECT TO ANY CLAIM, AND IN NO EVENT SHALL oneM2M BE LIABLE FOR LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES. +oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PROVIDED IN THIS DOCUMENT IS AT THE RISK OF THE USER. + +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://www.onem2m.org/xml/protocols" + xmlns:m2m="http://www.onem2m.org/xml/protocols" + elementFormDefault="unqualified" attributeFormDefault="unqualified" > + + <xs:include schemaLocation="CDT-commonTypes-v0_8_0.xsd" /> + + <xs:element name="responsePrimitive" > + <xs:complexType> + <!-- TODO: check if the sequence of elements is adequate --> + <xs:sequence> + <!-- parameter "To" --> + <xs:element name="to" type="xs:anyURI" minOccurs="0"/> + <!-- parameter "From" --> + <xs:element name="from" type="m2m:ID" minOccurs="0"/> + <!-- parameter "Request Identifier" --> + <xs:element name="requestIdentifier" type="m2m:requestID" minOccurs="0"/> + <!-- parameter "Content" (of the primitive) --> + <xs:element name="content" type="m2m:primitiveContent" minOccurs="0"/> + <!-- parameter "Originating Timestamp" --> + <xs:element name="originatingTimestamp" type="m2m:timestamp" minOccurs="0"/> + <!-- parameter "Result Expiration Timestamp" --> + <xs:element name="resultExpirationTimestamp" type="m2m:timestamp" minOccurs="0"/> + <!-- parameter "Event Category" --> + <xs:element name="eventCategory" type="m2m:eventCatType" minOccurs="0"/> + + <!-- TODO: TS-0001 defines Response Code and Status Code primitive parameters rather than Response Status Code used in TS-0004 --> + <!-- parameter "Response Status Code" --> + <xs:element name="responseStatusCode" type="m2m:responseStatus" minOccurs="0"/> + + <!-- TODO: Pending Request primitive parameter is not defined in TS-0001 (and probably never was) + Has it been defined by PRO WG? --> + <!-- parameter "Pending Requests" --> + <!-- TOTO: the data type for this parameter is currently undefined in TS-0004 --> + <xs:element name="pendingRequests" type="xs:boolean" minOccurs="0"/> + </xs:sequence> + </xs:complexType> + </xs:element> +</xs:schema> +