2
안녕하세요. openfire 용 검색 플러그인을 사용하려고합니다. 나는xcode에서 openfire 용 검색 플러그인을 사용하는 중 오류가 발생했습니다.
<iq xmlns="jabber:client" type="error" id="search1" from="gotztools" to="[email protected]/9bd01a04"><query xmlns="jabber:iq:search"/><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>
이란 무엇입니까,
<iq type="get" from="[email protected]" to="gotztools" id="search1" xml:lang="en">
<query xmlns="jabber:iq:search"/>
</iq>
내가 같은 오류를 얻고,
NSXMLElement *queryElement = [NSXMLElement elementWithName:@"query" xmlns:@"jabber:iq:search"];
NSXMLElement *iqElement = [NSXMLElement elementWithName:@"iq"];
[iqElement addAttributeWithName:@"type" stringValue:@"get"];
[iqElement addAttributeWithName:@"from" stringValue:@"[email protected]"];
[iqElement addAttributeWithName:@"to" stringValue:@"gotztools"];
[iqElement addAttributeWithName:@"id" stringValue:@"search1"];
[iqElement addAttributeWithName:@"xml:lang" stringValue:@"en"];
[iqElement addChild:queryElement];
NSLog(@"%@",[iqElement stringValue]);
[[self appDelegate].xmppStream sendElement:iqElement];
다음과 같은 요청이 전송되고 전송하는 동안 코드를 사용하여 IQ 요청을 전송하고 이 문제. 이 문제를 해결하도록 도와주세요. 미리 감사드립니다.