Improve batch mechanism - 2nd try

Revision History:
1st attempt:
 . Fixed Issue #91 and #95 

2nd attempt:
 . Fixed Issue #94 and #98
 . Provided docs/BATCH.md
Sure! I will add "4242" port number in the test scripts and resend it in the next PR attempt.

However, it is for demonstration purpose so it contains some invalid sub request such as watch.pollChanges and expects an error contract. To this end, the test script needs to furhter analyse the batchOut contract, which is exactly what Tyler has been doing now and I believe he has been developing unit test cases for different scenarios.

Cheers,
Harry

How did I do? 1-click feedback: https://secure.teamhively.com/welcome/rate/7672
________________________________
From: Andrew Ross [notifications@github.com]
Sent: Wednesday, October 29, 2014 1:37 PM
To: ONEDC/obix
Cc: Harry Cao
Subject: Re: [obix] Improve batch mechanism - 2nd try (#99)


In tests/scripts/batchIn:

> -     <uri is="obix:Write" val="/obix/deviceRoot/example/parent/reset">
> -             <bool val="illegal"/>
> -     </uri>
> -
> -     <uri is="obix:Write" val="/obix/deviceRoot/notexist/reset">
> -             <bool val="true"/>
> -     </uri>
> -
> -     <uri val="/obix/deviceRoot/example/"/>
> -
> -     <uri is="obix:Write">
> -             <bool val="true"/>
> -     </uri>
> -</list>
> -' http://localhost:4242/obix/batch
> +curl -XPOST --data '@batch_in.xml' -H "Expect: " http://localhost/obix/batch


Can we change this to http://localhost:4242/obix/batch so that it can be used in the cmake tests?

—
Reply to this email directly or view it on GitHub<https://github.com/ONEDC/obix/pull/99/files#r19518918>.


The information contained in this email and any attachments may be confidential. This email and any attachments are also subject to copyright. No part of them may be reproduced, adapted or transmitted without the written permission of the copyright owner. If you are not the intended recipient, any use, interference with, disclosure or copying of this information is unauthorised and prohibited. If you have received this email in error, please immediately advise the sender by return email and delete the message from your system. All email communications to and from NEXTDC Limited are recorded for the purposes of archival and storage.