Thanks for your prompt reply Matt. I got the latest build and it’'s no different. Here is my code:
IMUser user=null;
try
{
user=new IMUser(“john”, “pass”, “machine”, 5222);
}
catch (XMPPException e) { e.printStackTrace(); }
IQ iqPacket=new IQ();
iqPacket.setType(IQ.Type.SET);
iqPacket.setPacketID(“humm”);
DefaultPacketExtension query=new DefaultPacketExtension(“query”, “hcl:iq:admin”);
query.setValue(“corpgroups”, “value”);
iqPacket.addExtension(query);
// sanity check…
System.out.println("query xml: "+query.toXML());
System.out.println("packet xml: "+iqPacket.toXML());
user.sendPacket(iqPacket);
// wait for packets to be processed
try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); }
user.logoff();
System.out.println(“Logged off.”);
IMUser is a class which just handles the connection object (creating, login etc), sendPacket calls same on XMPPConnection object.
From debug window and toXML method of packet, all that is being sent is:
Am I doing something wrong with this extension stuff? I want to send:
value