[JDEV] (no subject)
Igor Borisovsky
igor at datanaut.sci-nnov.ru
Fri Jan 12 10:13:50 CST 2001
Hi all!
I have a own java client for jabber server.
I use jabberbeans api (http://www.jabberbeans.com).
I can't to obtain the searchable fields.
See example of the source code:
------------------------------------------------------------------
public void sendSearchRequest()
{
InfoQueryBuilder iqb = new InfoQueryBuilder();
IQSearchRequestBuilder srb = new IQSearchRequestBuilder();
try
{
iqb.addExtension(srb.build());
iqb.setType("get");
iqb.setFromAddress(new
JID(getUser(),getHostName(),getResource()));
iqb.setToAddress(JID.fromString(getHostName()));
InfoQuery iq = (InfoQuery)iqb.build();
cb.send(iq);
}
catch(Exception e)
{
System.out.println(e.toString());
}
}
-----------------------------------------------------
The responce from the server is:
<iq to="test35 at jabber.org/ag" from="jabber.org" id="3" type="error">
<error code="404">Not Found</error>
<query xmlns="jabber:iq:search"></query>
</iq>
-----------------------------------------------------
Can anyone help me?
---------------------------
Igor Borisovsky
Nizhny Novgorod
DataNaut Inc.
More information about the JDev
mailing list