Hi,
I am getting add request from aany user that not in my contacts list ,in response is i am accepting request i am getting 400 badrequest,Modify type error.
Code that i am using to accpet request is :
Presence presence = new Presence(Presence.Type.subscribed);
presence.setTo(userName+"@openfire1.virtual.xl-data.nl");
presence.setFrom(Utility.loginName+"@openfire1.virtual.xl-data.nl");
Login.connection.sendPacket(presence);
Please help .
Regards,
Monika.