[jdev] is this a legal XMPP packet? - server edits it!?
Tobias Thierer
lists-2006 at tobias-thierer.de
Sun May 14 20:58:00 CDT 2006
Dear Jabber experts,
Is the following a legal XMPP packet (linebreaks inserted for readability)?
<iq id="rpc-0wLET-8" to="rpc_b at jabber.meta.net.nz/Biomatters" type="set">
<query xmlns="jabber:iq:biomatters:rpc" version="1.0">
<methodCall>
<methodName>add</methodName>
<params>
<int>23</int>
<int>42</int>
</params>
</methodCall>
</query>
</iq>
When I send it (e.g. through jabber.meta.net.nz), it seems to be modified by
the server: The method name "add" is replaced by an additional close tag
"</methodName>", i.e. it arrives as follows at its destination:
<iq id="rpc-WRH8A-8" to="rpc_b at jabber.meta.net.nz/Biomatters"
from="rpc_a at jabber.meta.net.nz/Biomatters" type="set">
<query version="1.0" xmlns="jabber:iq:biomatters:rpc">
<methodCall>
<methodName></methodName></methodName>
<params>
<int>23</int>
<int>42</int>
</params>
</methodCall>
</query>
</iq>
My format is very close to the official jabber:iq:rpc, so I don't see why it
would not be legal to put the plain string "add" inside the methodname tags.
If anybody could drop me a hint why the server edits my packet or what XML
is legal inside an IQ package, i'd be very grateful.
I'm using Smack as my Jabber API. jabber.meta.net.nz uses jabberd, but the
same happens if I locally run Wildfire.
Thanks a lot in advance,
Tobias
More information about the JDev
mailing list