[JDEV] Error Message
aliban at gmx.net
aliban at gmx.net
Thu Jan 3 20:12:10 CST 2002
Hi,
here is what i get from theoretic.com doing such actions...
Client -> Server: [Size =93]
<iq type='set'><query xmlns='jabber:iq:roster'><item
jid='sexy at theoretic.com'/></query></iq>
Client -> Server: [Size =117]
<presence to='sexy at theoretic.com'
type='subscribe'><status>Please let me add you to my
Contacts.</status></presence>
Server -> Client: [Size =87]
<iq type='result' from='sexy at theoretic.com/skabber'
to='sexy at theoretic.com/skabber'/>
hope i could help you, Edrin
> Hello,
> I'm working on presence subscriptions and I ran into a slight
> issue. If a user requests to subscribe to the presence of himself (I
> did this accidently), the server should return an error. I see that IQ
> has the capability to return errors, but need a little guidance as to
> how to form the error to send back to the client.
>
> EX:
> CLIENT: '<presence to="test at test.com" from="test at test.com"
> type="subscribe"/>'
>
> Maybe this isn't an error, and I'm just confused.
>
> Thanks,
> Jamie
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
More information about the JDev
mailing list