[JDEV] JUD Example

Migs Paraz map at internet.org.ph
Thu Dec 20 02:21:35 CST 2001


On Wed, Dec 19, 2001 at 01:23:32PM -0500, Michael Bauer wrote:
> Anyone have a simple on how to query a JUD, either using Perl or PHP?
> Something using DJ's new Perl tools would be most cool.

here's an XML exchange between my simple JUD using DJ's Perl module, and
Gabber:

RECV: <iq id='A3' to='jud.localhost' type='get' from='baloney at localhost/Gabber'><query xmlns='jabber:iq:search'/></iq>
SEND: <iq id='A3' to='baloney at localhost/Gabber' from='jud.localhost' type='result'><query xmlns='jabber:iq:search'><first/><last/><nick/><email/><key>1008836398</key><instructions>juddi search</instructions></query></iq>
RECV: <iq id='A4' to='jud.localhost' type='set' from='baloney at localhost/Gabber'><query xmlns='jabber:iq:search'><key>1008836398</key><first>first</first><last>last</last><nick>nick</nick><email>email</email></query></iq>
SEND: <iq id='A4' to='baloney at localhost/Gabber' from='jud.localhost' type='result'><query xmlns='jabber:iq:search'/></iq>


My JUD is here:
http://www.internet.org.ph/download/juddi-20011112.tar.gz

Hope this helps...



More information about the JDev mailing list