[Standards-JIG] Re: Recommended additions to JEP-130 (Waiting Lists)
CKaes at jabber.com
Mon Sep 13 22:16:39 UTC 2004
Hmmm, making it (the message) a type='error' seems not only strange, but
seems to violate xmpp-core 9.3:
The receiving or processing entity that detects an error condition in
relation to a stanza MUST return to the sending entity a stanza of the same
kind (message, presence, or IQ) whose 'type' attribute is set to a value of
"error" (such a stanza is called an "error stanza" herein).
and also XMPP IM 2.1.1:
The "error" type MUST be generated only in response to an error related to a
message received from another entity.
That's why I opted to stash it inside the body of the message. Is there a
way to stash it inside that is more aesthetically pleasing?
> -----Original Message-----
> From: Peter Saint-Andre [mailto:stpeter at jabber.org]
> Sent: Friday, September 03, 2004 2:29 PM
> To: standards-jig at jabber.org
> Subject: [Standards-JIG] Re: Recommended additions to JEP-130 (Waiting
> In article <stpeter-2C779A.13093603092004 at sea.gmane.org>,
> Peter Saint-Andre <stpeter at jabber.org> wrote:
> > > Lastly, the service can send a notification similar to
> the successful
> > > notification (i.e. in a message) that the URI cannot be
> located. Something
> > > like:
> > >
> > > <message
> > > type='headline'
> > > from='waitlist.service-provider.com'
> > > to='user at service-provider.com'>
> > > <body>This message contains a waiting list item.</body>
> > > <waitlist xmlns='http://jabber.org/protocol/waitinglist'>
> > > <item id='12345' type='error'>
> > > <uri scheme='tel'>contact-number</uri>
> > > </item>
> > > <error code='500' type='cancel'>
> > > <remote-server-not-found
> > > xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
> > > </error>
> > > </waitlist>
> > > </message>
> > I think this is the best of the three proposed approaches.
> Well, the syntax seems a bit odd to me, since it embeds the
> error in the
> <waitlist/> element and adds a 'type' attribute to the
> <item/> element
> (which did not have that attribute before). But making it a
> message of
> type error might seem strange as well (since you didn't
> previously send
> a message but an IQ). That would look like so:
> to='user at service-provider.com'
> <body>Sorry, we cannot find this contact.</body>
> <waitlist xmlns='http://jabber.org/protocol/waitinglist'>
> <item id='34567' jid='contact at service-provider.com'>
> <uri scheme='tel'>contact-number</uri>
> <error code='500' type='cancel'>
> I'll noodle on it some more....
> Standards-JIG mailing list
> Standards-JIG at jabber.org
More information about the Standards