Presentation is loading. Please wait.

Presentation is loading. Please wait.

XML Datatype for list of child resource references Source: Sungchan Choi, Yong-Suk Park, Jaeho Kim (KETI) Data: 2015-01-12 PRO-2015-0637-Introducing_DataType_for_List_of_Child-Resource-Ref.

Similar presentations


Presentation on theme: "XML Datatype for list of child resource references Source: Sungchan Choi, Yong-Suk Park, Jaeho Kim (KETI) Data: 2015-01-12 PRO-2015-0637-Introducing_DataType_for_List_of_Child-Resource-Ref."— Presentation transcript:

1 XML Datatype for list of child resource references Source: Sungchan Choi, Yong-Suk Park, Jaeho Kim (KETI) Data: 2015-01-12 PRO-2015-0637-Introducing_DataType_for_List_of_Child-Resource-Ref

2 Scenario AECSE Request for contentInstance list retrieval Response including contentInstance list We can use Result Content parameter for a request message. But, in response message how can it be represented using xml data type for list of resources (-references) ?

3 TS-0001 Result Content: Indicates what are the expected components of the result of the requested operation. 1.attribute+child-resource-references –For example, if the request is to retrieve a resource, the resource and the address(es) of the child-resource(s) are provided. 2.child-resource-references –For example, if the request is to retrieve a resource, only the address(es) of the child-resource(s) is provided.

4 Case 1: attribute+child-resource-references Response message XML Example <m2m:container xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 3 /IN-CSE/APP01/CONT01 /IN-CSE/APP01 2014-10-22T10:23:21 2015-10-22T10:25:01 2014-10-22T10:23:21 label1 label2 0 //IN-CSEID.m2m.org/9125 5 104857600 2 6 /IN-CSEID/APP01/CONT01/instance1 /IN-CSEID/APP01/CONT01/instance2 DataType=m2m:childResourceRef

5 Case 2: child-resource-references Response message XML Example <m2m:listOfChildResourceRef name=CONT01 type=3 xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> /IN-CSEID/APP01/CONT01/instance1 /IN-CSEID/APP01/CONT01/instance2 <m2m:container xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> /IN-CSEID/APP01/CONT01/instance1 /IN-CSEID/APP01/CONT01/instance2 Container resource type needs mandatory attribute for container  If not, XSD validation error occurs E.g., resource type, resource ID, parent ID,.. Define new XML type only having a list of child-resource-references


Download ppt "XML Datatype for list of child resource references Source: Sungchan Choi, Yong-Suk Park, Jaeho Kim (KETI) Data: 2015-01-12 PRO-2015-0637-Introducing_DataType_for_List_of_Child-Resource-Ref."

Similar presentations


Ads by Google