| By removing multipart responses, all GetObject responses MUST contain only one object. This means only one object may be requested per transaction. However, the ability to retrieve all objects for a resource entity (using an object ID of "*") is still desired. Rather than return the actual objects, an object ID of "*" returns a list of valid objects in an XML response. The client will the be responsible for issuing a new GetObject transaction per object returned.
Section 5.3 shall be changed to:
ID = resource-set
resource-set = resource-entity [ ":" object-id ]
resource-entity = 1*ALPHANUM
object-id = 1*DIGIT | "*"
Notable changes from 1.5:
- Only one resource-set
- Only one object-id (no object-id-list)
For transactions with an object-id with a number, the server MUST respond with the appropriate Content-Type.
For transaction with an object-id of "*", the server MUST respond with the following XML response:
<?xml version="1.0" ?>
<RETS ReplyCode=quoted-reply-code
ReplyText=quoted-string>
<GetObjectResponse>
<ObjectList>
*(object-tag)
</ObjectList>
</GetObjectResponse>
</RETS>
object-tag =
<Object>
<Id>1*DIGIT</Id>
*<Location>URL</Location>
*<Default/>
</Object>
An example response for 3 objects is as follows:
<?xml version="1.0" ?>
<RETS ReplyCode="0" ReplyText="Success"
<GetObjectResponse>
<ObjectList>
<Object>
<Id>1</Id>
<Location>http://www.example.com/property.jpg</Location>
</Object>
<Object>
<Id>2</Id>
<Default/>
</Object>
<Object>
<Id>3</Id>
</Object>
</ObjectList>
</GetObjectResponse>
</RETS>
|