[JDEV] Custom messages/extensions
Peter Millard
me at pgmillard.com
Wed Jul 31 09:43:32 CDT 2002
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.
More information about the JDev
mailing list