[JDEV] Custom messages/extensions

Richard Dobson richard at dobson-i.net
Wed Jul 31 10:10:23 CDT 2002


But arnt extensions supposed to normally be in an X element in the message?
Thats how it always used to be wasnt it?

----- Original Message -----
From: "Peter Millard" <me at pgmillard.com>
To: <jdev at jabber.org>
Sent: Wednesday, July 31, 2002 3:43 PM
Subject: Re: [JDEV] Custom messages/extensions


> Richard Dobson wrote:
> > Hi Mark,
> >
> > Message is not really appropriate for what you want to use it for, IQ
> > is the place you should be putting your extensions, in messages you
> > can only add x elements into the message and you certainly shouldnt
> > be defining new message types.
>
> Richard & Mark -
>
> You can totally use any elements you want inside of a message provided
that
> it is namespaced properly (which your example seemed to be). This is the
> nature of XML and namespaces. If you're application is more of a
> "transactional" flow type of thing, you may want to use something more
> standardized like Jabber-RPC, or just use IQ's since it has the implied
> "request-result" type of transactional flow built into the protocol. If
> you're just transporting bulk payloads, messages will work fine as you
> showed in your example XML.
>
> Peter M.
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
>





More information about the JDev mailing list