[Standards] querying for random services
Peter Saint-Andre
stpeter at jabber.org
Tue May 8 14:40:53 CDT 2007
Peter Saint-Andre wrote:
> Unnikrishnan V wrote:
>> another is standardisation of fields . The fields need to be designed
>> for accomadating multiple servers.
>>
>> example is like var='host should be more like field var='host1'' so
>> that can specify multiple servers use field var='host2"' .
>
> I think the server would return multiple items (one for each service
> that matches the query):
>
> <iq type='result' from='shakespeare.lit' to='bard at shakespeare.lit/globe'
> id='gotstun'>
> <query xmlns='http://jabber.org/protocol/disco#items'>
> <item jid='stun.shakespeare.lit'> <=== see below
> <x xmlns='jabber:x:data' type='result'>
> <field var='FORM_TYPE' type='hidden'>
> <value>http://www.xmpp.org/extensions/xep-xxxx.html#ns</value>
> </field>
> <field var='host'>
> <value>stun.shakespeare.lit</value>
> </field>
> <field var='port'>
> <value>9999</value>
> </field>
> <field var='username'>
> <value>someusername</value>
> </field>
> <field var='password'>
> <value>somepassword</value>
> </field>
> </x>
> </item>
> <item jid='192.0.2.1'> <=== see below
> <x xmlns='jabber:x:data' type='result'>
> <field var='FORM_TYPE' type='hidden'>
> <value>http://www.xmpp.org/extensions/xep-xxxx.html#ns</value>
> </field>
> <field var='host'>
> <value>192.0.2.1</value>
> </field>
> <field var='port'>
> <value>10001</value>
> </field>
> <field var='username'>
> <value>someusername</value>
> </field>
> <field var='password'>
> <value>somepassword</value>
> </field>
> </x>
> </item>
> </query>
> </iq>
Hmm, this is starting to look an awful lot like jabber:iq:browse, eh?
http://www.xmpp.org/extensions/xep-0011.html
/me ponders...
Peter
--
Peter Saint-Andre
XMPP Standards Foundation
http://www.xmpp.org/xsf/people/stpeter.shtml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7358 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.jabber.org/pipermail/standards/attachments/20070508/62dd05a2/smime.bin
More information about the Standards
mailing list