powered by Jive Software

Custom error IQ stanza

Hello,

I am implementing a client/server project that uses XMPP to comunicate. On the client side I am using Smack. I am sending from the server an IQ stanza of type error with custom children inside the error element, and have also written a custom xml namespace as an attribute of this element. Here’s a template:

By some reason, my XMPP server sends the message correctly, but Smack receives the packet without the specific xml namespace:

I know I can listen for the packet using packet.getError() != null in my filter, that’s what I’m currently using, but I really need that namespace. I’ve already tried to use an IQ provider I made, but the packet is not parsed by it. How do I receive this packet, preserving the namespace?

Best regards