This is the sample IQ stanza for getting the Roster
<iq from="alice@wonderland.lit/pda" id="rr82a1z7"
type="get">
<query xmlns="jabber:iq:roster"/>
</iq>
From this standard specification, Iq stanzas can be directed to certain user by setting the "TO" attribute so that xmpp server will forward the IQ stanza to the JID(Full Jabber ID) specified in the "TO" attribute, check specification
But when i query the IQ stanza to suit my needs to this
<iq from="alice@wonderland.lit/pda" id="rr82a1z7"
to="alice@wonderland.lit/Smack"
type="get">
<UserDetails xmlns="http://www.test.org/User/">
<userName>username</username>
</UserDetails>
</iq>
Stanza is forwarded to "alice@wonderland.lit" but I receive an IQ Stanzs with error condition "feature-not-implemented" from the Openfire Server.
Is there any way to get rid of this error and get the result ?
I followed this tutorial to generate clients.
I could see the wireshark traces of custom Stanza being received but could not see "myIQListener" being called ?
Questions :
This is how I solved my own problem.
Use Full jabber ID (including resource)
As smack library does not understand the Custom IQ Stanzas implement own IQProvider , Filter and add it your connection as exactly explained here