[JDEV] Browseing

DJ Adams dj.adams at pobox.com
Mon Mar 26 11:01:39 CST 2001


On Mon, Mar 26, 2001 at 05:44:12PM +0100, Thomas Parslow (PatRat) wrote:
> Hi,
> I know this is probably a bit of a silly question but how do I browse
> a servers services. I've tried various variations on:
> <iq id="services" type="get" xmlns="jabber:iq:browse"><service/></iq>
> I tried quite a few variations including using <query> as with
> jabber:iq:agents but none worked (I either got a <user> element or and
> error).
> How should I be doing it?
> Thomas Parslow (PatRat) ICQ #:26359483
> Rat Software
> http://www.rat-software.com/
> Please leave quoted text in place when replying

Specify a to address in the iq-get, and use a query child element with
the iq:browse namespace, like this example:

<iq type='get' to='jabber.org'>
  <query xmlns='jabber:iq:browse'/>
</iq>

which is a browse request for the (top level) services on the jabber.org
server.

http://docs.jabber.org/draft-proto/html/browsing.html may help too.

cheerio
dj






More information about the JDev mailing list