how to send info query packet to xmpp server, in other words how to send "..." to server to query some information?
<iq type='set' id='123'>
<push xmlns='p1:push'>
<keepalive max="30"/>
<session duration="60"/>
<body send="all" groupchat="true" from="jid"/>
<status type="xa">Text Message when in push mode</status>
<offline>false</offline>
<notification>
<type>applepush</type>
<id>DeviceToken</id>
</notification>
<appid>application1</appid>
</push>
</iq>
The iq headers and the namespace,element are handled or filled in the xml by smack itself. A sample IQ packet in xml and its implementation by extending IQ packet are given below.