[jdev] update on XMPP location (wherein beer is offered)

Helge Timenes helge at buddycloud.com
Mon Apr 6 14:40:49 CDT 2009


Waqas Hussain wrote:
> On Mon, Apr 6, 2009 at 11:33 PM, Helge Timenes <helge at buddycloud.com> wrote:
>   
>> Stephen Pendleton wrote:
>>     
>>> I can't seem to get this to work. For example I send:
>>>
>>> <iq to="butler.buddycloud.com" type="get" xml:lang="en" id="location1">
>>>       <locationquery xmlns="urn:xmpp:locationquery:0">
>>>               <timestamp>2009-04-05T08:09:56Z</timestamp>
>>>               <publish>true</publish>
>>>               <reference>
>>>                       <id>262:07:51520:34124757</id>
>>>                       <type>cell</type>
>>>                       <signalstrength>88</signalstrength>
>>>               </reference>
>>>       </locationquery>
>>>       <locationquery xmlns="urn:xmpp:locationquery:0">
>>>               <timestamp>2009-04-05T08:09:56Z</timestamp>
>>>               <reference>
>>>                       <id>262:07:51520:34104756</id>
>>>                       <type>cell</type>
>>>                       <signalstrength>88</signalstrength>
>>>               </reference>
>>>       </locationquery>
>>>       <locationquery xmlns="urn:xmpp:locationquery:0">
>>>               <timestamp>2009-04-05T08:09:56Z</timestamp>
>>>               <reference>
>>>                       <id>262:07:51520:34084753</id>
>>>                       <type>cell</type>
>>>                       <signalstrength>88</signalstrength>
>>>               </reference>
>>>       </locationquery>
>>> </iq>
>>>
>>>       
>> At the moment our server don't like multiple <locationquery> elements in
>> an <iq>. There is no particularly good reason for this and I will fix it.
>>
>>     
>
> There is a particularly good reason for this: IQ gets and sets are
> only allowed to have a single child.
>
> Don't 'fix' this, because accepting multiple IQ children would break
> the XMPP spec.
>
>   
Right, silly of me. Fix cancelled.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20090406/dd6fc296/attachment-0003.htm>


More information about the JDev mailing list