Subject: Setting xmpp notifications for Google cloud print over the proxy
Hi,
I'm currently working on Google cloud print notifications using Xmpp. I have used agsXmpp SDK to set up and wait for notifications of print jobs in google cloud. I successfully achieved it. Thanks for that.
Now, my next step is to register these notifications when my server is behind the proxy. Well, I have read many posts in this forum which says to use PollClientSocket and BoshClientSocket. But I could not find any luck with both the connections.
Below is code which I used individually for PollClient and BoshClient.
//PollSocket
Error: Invalid Uri
//BoshSocket
Error: InvalidTokenException
Rest of the code is...
Any help will be greatly appreciated.
Thanks,
Sai Kishore
I'm currently working on Google cloud print notifications using Xmpp. I have used agsXmpp SDK to set up and wait for notifications of print jobs in google cloud. I successfully achieved it. Thanks for that.
Now, my next step is to register these notifications when my server is behind the proxy. Well, I have read many posts in this forum which says to use PollClientSocket and BoshClientSocket. But I could not find any luck with both the connections.
Below is code which I used individually for PollClient and BoshClient.
- xmpp.Server = "gmail.com";
- xmpp.Username = GCPRequests.AdminUserName;
- xmpp.Password = GCPRequests.AdminPassword;
- xmpp.AutoResolveConnectServer = true;
//PollSocket
- xmpp.ConnectServer = "http://talk.google.com";
- xmpp.SocketConnectionType = SocketConnectionType.HttpPolling;
- PollClientSocket sock = xmpp.ClientSocket as PollClientSocket;
Error: Invalid Uri
//BoshSocket
- xmpp.ConnectServer = "http://talk.google.com/http-bind/";
- xmpp.SocketConnectionType = SocketConnectionType.Bosh;
- sock = xmpp.ClientSocket as BoshClientSocket;
Error: InvalidTokenException
Rest of the code is...
Any help will be greatly appreciated.
Thanks,
Sai Kishore