简体   繁体   English

连接到Cisco IM Presence XMPP服务器的IOS XMPPFramework问题

[英]IOS XMPPFramework issue connecting to Cisco IM Presence XMPP Server

I am using RobbieHanson IOS XMPP Framework and able to connect properly to Google Talk using the sample application that displays roster with presence status. 我使用的是RobbieHanson IOS XMPP框架,并且能够使用显示具有状态状态花名册的示例应用程序正确连接到Google Talk。

However, when I use the XMPP Framework to connect to Cisco IM Presence server (XMPP based), I am able to connect to the server, however roster is not getting created and I get the following error in the NSLog comes with the framework. 但是,当我使用XMPP框架连接到Cisco IM Presence服务器(基于XMPP)时,我能够连接到服务器,但是没有建立花名册,并且该框架附带的NSLog中出现以下错误。

  NSLog:
  2013-02-18 20:32:07:015 iPhoneXMPP[26080:12f03] SEND: <iq type="set"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/></iq>

  2013-02-18 20:32:07:064 iPhoneXMPP[26080:12f03] RECV: <iq xmlns="jabber:client" to="userid@cisco.com/312468361axcdf9887297cfd57d3e98474e447" type="error"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>8222d2468361a8ff9887297cfd57d3e98474e447</resource></bind><error code="400" type="modify"><bad-request 

The issue seems to be that <iq> entity is missing the <id> attribute when I contrast this log with the Log generated (below details) from another IM client that connects properly to the Cisco IM Presence Server 问题似乎是<iq>实体缺少<id>属性,当我将此日志与从正确连接到Cisco IM Presence服务器的另一个IM客户端生成的日志(在详细信息下方)进行对比时

IM Client Log around IQ setting that connects: IM Client Log IQ连接设置:

<iq type='set' id='purple95a4a0c3'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>pidgin</resource></bind></iq>

I wanted to check if there is a way to set the id attribute for <iq> element in XMPPFramework and/or if there is something else I need to do to fix the issue. 我想检查是否有一种方法可以为XMPPFramework中的<iq>元素设置id属性,并且/或者是否需要采取其他措施来解决此问题。

As a side note, I noticed that Google Talk is working without need for id attribute in <iq> element, while the xmpp specs at http://xmpp.org/rfcs/rfc3920.html#stanzas-semantics-iq indicates id is an mandatory attribute of <iq> element. 附带说明一下,我注意到Google Talk在不需要<iq>元素中的id属性的情况下就可以正常工作,而http://xmpp.org/rfcs/rfc3920.html#stanzas-semantics-iq上的xmpp规范表明id为<iq>元素的必需属性。

You need to make , 您需要制作

allowSelfSignedCertificates = YES; allowSelfSignedCertificates = YES;

in the xmpp framework and then u will bale to connect to 在xmpp框架中,然后您将打包连接到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM