powered by Jive Software

Not able to get response from server for custom IQ

I am working on one project which having group and private user chat i have completed both. Now i am creating one custom IQ like

<query xmlns’http://jabber.org/protocol/muc#admin’>

But not able to get the response from server, but same request my co developer who is working on iPhone getting the response. I have added ProviderManager.addIQProvider(“query”, “http://jabber.org/protocol/muc#admin”, new MUCAdminProvider()); but not able to get response.

Here is my android implementation:-

ProviderManager.addIQProvider(“query”, “http://jabber.org/protocol/muc#admin”, new MUCAdminProvider());

IQ iqObj = new IQ()

{

@Override

public CharSequence getChildElementXML()

{

return “<query xmlns’http://jabber.org/protocol/muc#admin’><item sharing=’” + Constant.joinmeetingList.get(0).getConferenceID()

  • @___.com’/>”;

}

};

iqObj.setFrom(connectionXmpp.getUser());

iqObj.setPacketID(“getcontentsharing1”);

iqObj.setTo(Constant.joinmeetingList.get(0).getConferenceID() + “@____.com”);

iqObj.setType(IQ.Type.GET);

connectionXmpp.addPacketListener(new PacketListener()

{

@Override

public void processPacket(Packet arg0) throws NotConnectedException

{

arg0.getPacketID();

}

}, new PacketTypeFilter(IQ.class));

connectionXmpp.addPacketSendingListener(new PacketListener()

{

@Override

public void processPacket(Packet arg0) throws NotConnectedException

{

arg0.getPacketID();

}

}, new PacketTypeFilter(IQ.class));

connectionXmpp.addPacketInterceptor(new PacketInterceptor()

{

@Override

public void interceptPacket(Packet arg0)

{

arg0.getPacketID();

}

}, new PacketTypeFilter(IQ.class));

connectionXmpp.sendPacket(iqObj);

Please help me guyz.