How to send / receive customize item on pubsub node with payload, I am using qsmack lib.
here is my code.
StringBuilder strBuffer = new StringBuilder();
strBuffer.append("<x xmlns=");
strBuffer.append("jabber:x:data");
strBuffer.append(">Test</x>");
String xml = strBuffer.toString();
SimplePayload item = new SimplePayload("test1111","pubsub_test_book", xml);
// Publish an Item with payload
leafNode.send(new PayloadItem<SimplePayload>("test123", item));
when I am trying to send payload item on node, I got an error message from server no response from server and connection disconnected.