Waqas Hussain wrote:
On Mon, Apr 6, 2009 at 11:33 PM, Helge Timenes <[email protected]> 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.
_______________________________________________
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________

Reply via email to