[jdev] is this a legal XMPP packet? - server edits it!?

Trejkaz trejkaz at trypticon.org
Sun May 14 23:02:43 CDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 15/05/2006, at 11:58 AM, Tobias Thierer wrote:
> 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>

It is.

> <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>

Are you sure this is what's actually coming out of the server?  My  
bet is that whatever library you're using to print that packet out  
has either parsed it incorrectly, or is formatting it incorrectly.   
If you run tcpdump or similar, you should be able to see what the  
server is actually sending.

TX

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEZ/1nuMe8iwN+6nMRAidkAKCAs+3hCtM6E/nSM87B2M8iIKCZWwCgjA/6
bbbW3aYDS371V1g6a7AA6MU=
=Pvje
-----END PGP SIGNATURE-----



More information about the JDev mailing list