<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Verdana><FONT size=2>hi</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana><FONT size=2>I have a similar
problem.</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana><FONT size=2>i'm trying out the feature of "XEP-0013
Flexible Offline Message Retrieval", and I wish the Server will keep the offline
messages .</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana><FONT size=2>I wrote the following codes is function
"XmppCon_OnRosterEnd" of agsXMPP </FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana><FONT
size=2> //Send
Request of Offline Message
Headers<BR> IQ
offLineIQ = new
IQ(IqType.get);<BR>
Element el = new Element()
;<BR>
el.TagName =
"query";<BR>
el.SetNamespace("<A
href="http://jabber.org/protocol/disco#item">http://jabber.org/protocol/disco#item</A>");<BR>
el.SetAttribute("node", "<A
href="http://jabber.org/protocol/offline">http://jabber.org/protocol/offline</A>");<BR>
offLineIQ.Query =
el;<BR>
XmppCon.Send(offLineIQ); </FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana><FONT size=2>and here is the messages between client and
server when login(the Client is Using agsXMPP lib I
modified):</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana><FONT size=2>...................<BR>SEND: <iq
xmlns="jabber:client" id="agsXMPP_6" type="get" to="sunxiaodong"><query
xmlns="<A
href="http://jabber.org/protocol/disco#info">http://jabber.org/protocol/disco#info</A>"
/></iq><BR>.............<BR>SEND: <iq xmlns="jabber:client"
type="get"><query xmlns="<A
href="http://jabber.org/protocol/disco#item">http://jabber.org/protocol/disco#item</A>"
node="<A
href="http://jabber.org/protocol/offline">http://jabber.org/protocol/offline</A>"
/></iq></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana><FONT size=2>SEND: <presence
xmlns="jabber:client"><status
/><priority>10</priority></presence><BR>................<BR>RECV:
<iq xmlns="jabber:client" from="sunxiaodong" to="<A
href="mailto:offmsg@sunxiaodong/MiniClient">offmsg@sunxiaodong/MiniClient</A>"
type="result" id="agsXMPP_6"><query xmlns="<A
href='http://jabber.org/protocol/disco#info"><identity'>http://jabber.org/protocol/disco#info"><identity</A>
name="Wildfire Server" category="server" type="im" /><feature var="<A
href="http://jabber.org/protocol/disco#info">http://jabber.org/protocol/disco#info</A>"
/><feature var="<A
href="http://jabber.org/protocol/address">http://jabber.org/protocol/address</A>"
/><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="<A
href="http://jabber.org/protocol/disco#items">http://jabber.org/protocol/disco#items</A>"
/><feature var="<A
href='http://jabber.org/protocol/offline"/><feature'>http://jabber.org/protocol/offline"/><feature</A>
var="<A
href="http://jabber.org/protocol/commands">http://jabber.org/protocol/commands</A>"
/><feature var="jabber:iq:privacy"
/></query></iq><BR>....................<BR>RECV: <iq
xmlns="jabber:client" to="<A
href="mailto:offmsg@sunxiaodong/MiniClient">offmsg@sunxiaodong/MiniClient</A>"
type="error"><query xmlns="<A
href="http://jabber.org/protocol/disco#item">http://jabber.org/protocol/disco#item</A>"
node="<A
href="http://jabber.org/protocol/offline">http://jabber.org/protocol/offline</A>"
/><error code="503" type="cancel"><service-unavailable
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"
/></error></iq><BR>...................</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana><FONT size=2>503 is "Service Unavailable" error, but
why? I think the bold characters mean that the server support the feature, isn't
it?</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Verdana><FONT size=2>this troubles me, help please ..... thank
you very much!</FONT></FONT></DIV>
<DIV><FONT face=Verdana><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV align=left><FONT size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT size=2>sunng</FONT></DIV>
<DIV><FONT size=2>2007-04-13</FONT></FONT></DIV></FONT></BODY></HTML>