Developers,
I’‘m working with data forms, JEP-0004. I can send my form request "<iq type=’‘get’’><command node=’‘mynode’’ action=’‘execute’’>" to my remote client. The client responds correctly, I can see that it sends the form, the smack debug ‘‘Raw Received Packets’’ shows receiption of the form. However, my packet listener receives the iq packet with element stripped out.
From smack “Raw Received Packets”
<iq to=’‘holla@t/XMPPTestApp’’ type=’‘result’’ id=’‘ouX3z-6’’ from=’‘gate@t/gate’’>
<command xmlns=’‘http://jabber.org/protocol/commands’’ node=’’/Gate/Setting/GateWidth’’ status=’‘executing’’>
<x xmlns=’‘jabber:x:data’’ type=’‘form’’>
Gate Width<field var=’‘GateWidth’’ type=’‘text-single’’ label=’‘Gate Widht’’>
245470
What my packet listener receives is
You can see that the id’'s match but the element has been removed.
The stripping occurs with both a FromContainsFilter and my custom filter
allPacketsFilter = new PacketFilter() {
public boolean accept(Packet packet) {
return true;
}
Can someone please tell me what’'s going on here? Or tell me how to get smack to return IQ packets without any processing.
Thanks,
Craig