[jdev] my problem about the support of "XEP-0013 Flexible Offline Message Retrieval"

sunng solar-sunng at 163.com
Fri Apr 13 03:24:10 CDT 2007


hi

I have a similar problem.

i'm trying out the feature of "XEP-0013 Flexible Offline Message Retrieval", and I wish the Server will keep the offline messages .

I wrote the following codes is function "XmppCon_OnRosterEnd" of agsXMPP 

            //Send Request of Offline Message Headers
            IQ offLineIQ = new IQ(IqType.get);
            Element el = new Element() ;
            el.TagName = "query";
            el.SetNamespace("http://jabber.org/protocol/disco#item");
            el.SetAttribute("node", "http://jabber.org/protocol/offline");
            offLineIQ.Query = el;
            XmppCon.Send(offLineIQ);    

and here is the messages between client and server when login(the Client is Using agsXMPP lib I modified):

...................
SEND: <iq xmlns="jabber:client" id="agsXMPP_6" type="get" to="sunxiaodong"><query xmlns="http://jabber.org/protocol/disco#info" /></iq>
.............
SEND: <iq xmlns="jabber:client" type="get"><query xmlns="http://jabber.org/protocol/disco#item" node="http://jabber.org/protocol/offline" /></iq>

SEND: <presence xmlns="jabber:client"><status /><priority>10</priority></presence>
................
RECV: <iq xmlns="jabber:client" from="sunxiaodong" to="offmsg at sunxiaodong/MiniClient" type="result" id="agsXMPP_6"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="Wildfire Server" category="server" type="im" /><feature var="http://jabber.org/protocol/disco#info" /><feature var="http://jabber.org/protocol/address" /><feature var="vcard-temp" /><feature var="jabber:iq:private" /><feature var="jabber:iq:register" /><feature var="jabber:iq:roster" /><feature var="jabber:iq:time" /><feature var="jabber:iq:version" /><feature var="jabber:iq:last" /><feature var="http://jabber.org/protocol/disco#items" /><feature var="http://jabber.org/protocol/offline"/><feature var="http://jabber.org/protocol/commands" /><feature var="jabber:iq:privacy" /></query></iq>
....................
RECV: <iq xmlns="jabber:client" to="offmsg at sunxiaodong/MiniClient" type="error"><query xmlns="http://jabber.org/protocol/disco#item" node="http://jabber.org/protocol/offline" /><error code="503" type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>
...................

503 is "Service Unavailable" error, but why? I think the bold characters mean that the server support the feature, isn't it?

this troubles me, help please ..... thank you very much!





sunng
2007-04-13
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20070413/d8b3a932/attachment-0002.htm>


More information about the JDev mailing list