following is my code and i am not able to receive iq packet at psi client
public class POSClientIQ
{
public XMPPConnection connection;
public static void main(String args[])
{
POSClientIQ posclientiq = new POSClientIQ();
posclientiq.connectXMPPServer();
posclientiq.processMessage();
}
public void processMessage()
{ try{
final IQ iq1 = new IQ() {
public String getChildElementXML() {
return "<iq type='get' from ='sam@intime-hardik'><query xmlns='jabber:iq:roster'></query></iq>";
}
};
iq1.setType(IQ.Type.GET);
connection.sendPacket(iq1);
}
I am not receiving iq msg as i have 5 users conected at my XMPP server
I need to send an IQ stanza from client to server via smack and get back the response from server it is quite similar to your task. If you have got the solution to the above problem can you plz help me.