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

Waqas Hussain waqas20 at gmail.com
Mon Apr 6 14:27:08 CDT 2009


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.

--
Waqas Hussain



More information about the JDev mailing list