[JDEV] How to create a new protocol?
Peter Saint-Andre
stpeter at jabber.org
Tue Jan 15 11:52:10 CST 2002
The namespaces starting wtih 'jabber:' are reserved for accepted parts of
the protocol. Try a different namespace (e.g., 'gabauer:party' or
whatever).
Peter
--
Peter Saint-Andre
email+jabber: stpeter at jabber.org
web: http://www.saint-andre.com/
On Tue, 15 Jan 2002, Peter Gebauer wrote:
> Hello!
>
> I want to create my own protocol, but there is no documentation on how to
> do this.
>
> Client sends:
> <iq type="get" from="client at server" to="mycomponent.server">
> <query xmlns="jabber:mycomponent:party"/>
> </iq>
>
> Server returns:
> <iq type="result" from="mycomponent.server" to="client at server">
> <query xmlns="jabber:mycomponents:party">
> <party type="hacker party">
> <participant>
> <name>John Carmack</name>
> </participant>
> <participant>
> <name>Alan Cox</name>
> </participant>
> </party>
> </query>
> </iq>
>
> But no matter what data I send back to the client, Jabber strips any
> elements (subnodes to query) that are not included in an already existing
> XML name space.
>
> How do I define my own name space and tell Jabber what data is valid in
> that name space.
>
> When I test this Jabber returns my query with TWO instances of
> the attribute xmlns="jabber:mycomponents:party" in the query element and
> none of the subnodes in the query element.
>
> I can return vcards, time, last and other data in already defined name
> spaces, how do I create my own?
>
> /P
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
More information about the JDev
mailing list