[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Simple] Clarification on XCAP



Jonathan,

	Let us consider this particular use case:

	Suppose the user wants to add a set of members to an existing
group, say 10 members. Instead of sending a single request we will have
to do with multiple requests [10 in this case]. Some of the drawbacks
could be 

	1. The network might get clogged
	2. The user experience will be bad due to the delay in
responses.


Is it feasible to achieve addition of multiple members, if we do it in
the following fashion?

	1. We create a resource list containing the 10 members. Now with
a single HTTP PUT, we upload the document to the shared XDMS with the
document URI, say mylist at server.com 

	2. Now we send a HTTP PUT to PoC XDMS, which takes care of
Groups with the reference to mylist at server.com in it's payload as an
<external> reference.


Using this we can manage with only two requests/responses. 



Regards,
John / Achuth

Kodiak Networks
	

	

-----Original Message-----
From: simple-bounces at ietf.org [mailto:simple-bounces at ietf.org] On Behalf
Of Jonathan Rosenberg
Sent: Wednesday, November 16, 2005 8:19 AM
To: Anurag Chakravarti
Cc: Jari Urpalainen; simple at ietf.org
Subject: Re: [Simple] Clarification on XCAP

Correct. This was a concious decision during the design of xcap. There 
were a limited number of use cases people had for multiple insert; 
nothing that couldn't be handled by a series of single inserts.

-Jonathan R.

Anurag Chakravarti wrote:

> Looks like the following path as been taken:
> Single inserts in XCAP would make things simpler for now with the
draft
> cleaner. Extensions I guess could be revived or worked upon for other
> purposes.
> 
> Regards
> -Anurag
> 
> 
> On Tue, 2005-11-15 at 10:38 +0200, Jari Urpalainen wrote:
> 
>>On Tue, 2005-11-15 at 12:09 +0530, ext Chooracken John wrote:
>>
>>>Hi,
>>>
>>> 
>>>
>>>            After going though the XCAP draft, I have a query to be
>>>cleared.
>>>
>>> 
>>>
>>>1.       How do I add multiple elements into a document? Is it
>>>supported in the current release?
>>>
>>> 
>>
>>No. There's an expired draft called multi-insert, where unions could
be
>>used to add several elements at the same time.
>>
>>>For e.g.:
>>>
>>> 
>>>
>>>Consider that, the following document is available on the server:
>>>
>>> 
>>>
>>><service uri="sip:correctname at example.com">
>>>
>>><list name="family">
>>>
>>><rl:entry uri="sip:vernon.keel at example.com"/>
>>>
>>></list>
>>>
>>><packages>
>>>
>>><package>presence</package>
>>>
>>></packages>
>>>
>>></service>
>>>
>>> 
>>>
>>>a.      How do I add new entries [multiple] in <list name =
>>>"family">. 
>>>
>>>My XML payload would be something like this:
>>>
>>> 
>>>
>>><rl:entry uri="sip:johnc at example.com"/>
>>>
>>><rl:entry uri="sip:a19500 at example.com"/>
>>>
>>> 
>>>
>>>            
>>>
>>>b.     What should be the XCAP URI?
>>>
>>> 
>>>
>>> 
>>>
>>>Thanks,
>>>
>>>John
>>>
>>> 
>>>
>>
>>with multi-insert it would be (without escaping of course):
>>...~~/service/list[ at name="family"]/rl:entry[ at uri="sip:johnc at example.co
m"]|/service/list[ at name="family"]/rl:entry[ at uri="sip:a19500 at example.com"
]?xmlns(rl=urn:...)
>>with payload:
>><rl:entry uri="sip:johnc at example.com"/><rl:entry
>>uri="sip:a19500 at example.com"/>
>>
>>an alternative with xml-patch-ops if there were a controversial http
>>patch-method:
>>xmlns="urn:..."
>>xmlns:rl="urn:..."
>><add sel='service/list[ at name="family"]'>
>>  <rl:entry uri="sip:johnc at example.com"/>
>>  <rl:entry uri="sip:a19500 at example.com"/>
>></add>
>>
>>So instead in practice, you'll have to resort to multiple, perhaps
>>pipelined requests to do what you want.
>>br,
>>Jari
>>
>>
>>
>>_______________________________________________
>>Simple mailing list
>>Simple at ietf.org
>>https://www1.ietf.org/mailman/listinfo/simple
> 
> 
> _______________________________________________
> Simple mailing list
> Simple at ietf.org
> https://www1.ietf.org/mailman/listinfo/simple
> 

-- 
Jonathan D. Rosenberg, Ph.D.                   600 Lanidex Plaza
Director, Service Provider VoIP Architecture   Parsippany, NJ 07054-2711
Cisco Systems
jdrosen at cisco.com                              FAX:   (973) 952-5050
http://www.jdrosen.net                         PHONE: (973) 952-5000
http://www.cisco.com

_______________________________________________
Simple mailing list
Simple at ietf.org
https://www1.ietf.org/mailman/listinfo/simple


_______________________________________________
Simple mailing list
Simple at ietf.org
https://www1.ietf.org/mailman/listinfo/simple