OCS Xmpp Iphone 客户端
我有 ios 的 xmppframework
。我能够与 GTalk
进行通信,但我需要使用 Microsoft OCS 的此 api 来进行我公司的内部应用程序。我们的服务器已经配置了CWA。
NSString *pURL=@"im.name.com";
NSURL *url = [NSURL URLWithString:pURL];
NSLog (@"%@", [url absoluteString]);
[xmppStream setHostName:[url absoluteString]];
[xmppStream setHostPort:443];
[xmppStream setMyJID:[XMPPJID jidWithString:@"Domain\id"]];
password = @"password";
但我收到以下错误
SEND: <?xml version='1.0'?>
SEND: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' to='companyname.com'>
xmppStream:didReceiveError: Error Domain=AsyncSocketErrorDomain Code=4 "Read operation timed out" UserInfo=0x157460 {NSLocalizedDescription=Read operation timed out}
---------- xmppStreamDidDisconnect: ----------
Unable to connect to server. Check xmppStream.hostName
如果有人可以帮助我,这将非常有帮助。
I have xmppframework
for ios. I was able to communicate with GTalk
but I need to use this api for Microsoft OCS for internal application of my company. Our server has been configured with CWA.
NSString *pURL=@"im.name.com";
NSURL *url = [NSURL URLWithString:pURL];
NSLog (@"%@", [url absoluteString]);
[xmppStream setHostName:[url absoluteString]];
[xmppStream setHostPort:443];
[xmppStream setMyJID:[XMPPJID jidWithString:@"Domain\id"]];
password = @"password";
But i am getting the following error
SEND: <?xml version='1.0'?>
SEND: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' to='companyname.com'>
xmppStream:didReceiveError: Error Domain=AsyncSocketErrorDomain Code=4 "Read operation timed out" UserInfo=0x157460 {NSLocalizedDescription=Read operation timed out}
---------- xmppStreamDidDisconnect: ----------
Unable to connect to server. Check xmppStream.hostName
It will be really helpful, if someone can assist me on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要向 Microsoft 提交功能请求,要求他们实施 XMPP,如果您想要使用 XMPP 库。换句话说,您完全用 XmppFramework 找错了树。一种可能的方法是将 libpurple 移植到 iOS。
You'll need to file a feature request with Microsoft to ask them to implement XMPP if you want to use an XMPP library. In other words, you're just completely barking up the wrong tree with XmppFramework. One possible approach would be to port libpurple to iOS.