D
D
dimefim2014-10-31 13:57:07
iOS
dimefim, 2014-10-31 13:57:07

Request to jabber server?

I'm trying to execute a request according to XEP-0055(jabber search). ejabberd's description says that it supports this extension. I am compiling a request using the XMPP library:

XMPPIQ *iq = [[XMPPIQ alloc] init];
    [iq addAttributeWithName:@"type" stringValue:@"get"];
    [iq addAttributeWithName:@"from" stringValue:@"[email protected]"];
    [iq addAttributeWithName:@"to" stringValue:@"company.com"];
    [iq addAttributeWithName:@"id" stringValue:@"search1"];
    XMPPElement *query = [XMPPElement elementWithName:@"query"];
    [query setXmlns:@"jabber:iq:search"];
    [iq addChild:query];
    [self.xmppStream sendElement:iq];

I get a response:
<iq xmlns="jabber:client" from="company.com" to="[email protected]/2834146151141475281662718" type="error" id="search1"><query xmlns="jabber:iq:search"/><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>

Where to dig?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
D
dimefim, 2014-11-07
@dimefim

no one has any ideas?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question