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

Stephen Pendleton pendleto at movsoftware.com
Mon Apr 6 15:12:09 CDT 2009


My mistake. I meant to say I sent:

<iq to="butler.buddycloud.com" type="get" xml:lang="en" id="location1">
	<locationquery xmlns="urn:xmpp:locationquery:0">
		<reference>
			<id>262:07:51520:34124757</id>
			<type>cell</type>
			<signalstrength>88</signalstrength>
		</reference>		
		<reference>
			<id>262:07:51520:34104756</id>
			<type>cell</type>
			<signalstrength>88</signalstrength>
		</reference>		
		<reference>
			<id>262:07:51520:34084753</id>
			<type>cell</type>
			<signalstrength>88</signalstrength>
		</reference>		
	</locationquery>
</iq>

-----Original Message-----
From: jdev-bounces at jabber.org [mailto:jdev-bounces at jabber.org] On Behalf Of
Waqas Hussain
Sent: 04/06/2009 3:27 PM
To: Jabber/XMPP software development list
Subject: Re: [jdev] update on XMPP location (wherein beer is offered)


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
_______________________________________________
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: JDev-unsubscribe at jabber.org
_______________________________________________





More information about the JDev mailing list