Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
damylen #1
Member since Jan 2011 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: gmail notification
Hi,

I'm trying to implement the gmail notification as described here: http://code.google.com/apis/talk/jep_extensions/gmail.html

I can connect to the google talk server using the following code:

                Jid j = new Jid("xxx","gmail.com","test");
                objXmpp = new XmppClientConnection();
                objXmpp.EnableCapabilities = true;
                objXmpp.Password = "xxxx";
                objXmpp.Username = j.User;
                objXmpp.Server = "gmail.com";
                objXmpp.AutoResolveConnectServer = true;
                objXmpp.OnLogin += new ObjectHandler(objXmpp_OnLogin);
                objXmpp.OnIq += new agsXMPP.protocol.client.IqHandler(objXmpp_OnIq);
                objXmpp.Open();

After login I want to enable the notification using the following code:

void objXmpp_OnLogin(object sender)
        {
          
            string xml = "<iq type='get' id='mail-request-1'><query xmlns='google:mail:notify'/></iq>";
            objXmpp.Send(xml);

        }

looking at the IQ messages, I receive an email overview (eg. stating 4 new messages), after that i received the following message:

<error xmlns="jabber:client" type="cancel" code="501"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error>

Probably some mismatch in features. Can I disable this check? Or can I enable this feature? Any suggestions?

Greetings,
Arnoud
Avatar
Alex #2
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I need the complete error message and also the stanza it refers to.

Alex
Avatar
damylen #3
Member since Jan 2011 · 2 posts
Group memberships: Members
Show profile · Link to this post
Hope this helps:

<iq xmlns="jabber:client" to="xxxxx@gmail.com/agsXMPPBD112543" id="agsXMPP_3" type="error" from="gmail.com"><query xmlns="jabber:iq:agents" /><error type="cancel" code="501"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></iq>

Arnoud
Avatar
Alex #4
Member since Feb 2003 · 4328 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
No,  this is only the weekend stanza.  The stanza agsXMPP_3 it refers to is missing.
Please post your complete log.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS