本文介绍了XMPP - 用户在iphone sdk中搜索?在iphone sdk中使用XEP-0055?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将此IQ发送到openfire服务器

i am sending this IQ to openfire server

< iq type="set" from="[email protected]" to="localhost.localdomain" id="search2" xml:lang="en" > < query xmlns="jabber:iq:search" > < first > admin < /first > < /query > < /iq >

但是从服务器获得以下回复,

but getting following response from server,

< iq type="error" id="search2" from="localhost.localdomain" to="[email protected]/b91c09e5"><query xmlns="jabber:iq:search" >  < first > admin < /first > < /query > < error code="501" type="cancel" > < feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/ > < /error > < /iq >

即使我已经安装了搜索插件并且还在openfire服务器中启用了用户搜索...

even if i have installed search plugin and also enabled user search in openfire server...

为什么会这样?如何解决这个问题?有任何建议或帮助吗?

Why this is happening ? How to solve this issue ? Any suggestion or help ?

我还向服务器发送了迪斯科查询以检查支持哪些功能:

i have also sent disco query to server to check which features are supported:

输入:

这里我得到的是输出:















































我没有找到任何与之相关的信息用户在此列表中的服务器上搜索.... !!

i didn't find anything related to user search on server in this list....!!

推荐答案

<iq type='set' id='purple9ae3ed' to='vjud.yourserver.org'>
   <query xmlns='jabber:iq:search'>
     <x xmlns='jabber:x:data' type='submit'>
        <field var='first'><value>Rub*</value></field>
    </x>
  </query>
</iq>

这篇关于XMPP - 用户在iphone sdk中搜索?在iphone sdk中使用XEP-0055?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 16:42