xmpp

error 400 bad request with XEP-0055?

你离开我真会死。 提交于 2019-12-24 12:24:03
问题 I got possible fields from my server: <iq xmlns="jabber:client" from="vjud.company.com" to="testuser@company.com/iPhone" id="search1" type="result"><query xmlns="jabber:iq:search"> <instructions>You need an x:data capable client to search</instructions> <x xmlns="jabber:x:data" type="form"> <title>Search users in vjud.company.com</title> <instructions>Fill in the form to search for any matching Jabber User (Add * to the end of field to match substring) </instructions> <field type="text-single

Ejabberd can't register new user

旧街凉风 提交于 2019-12-24 11:34:34
问题 I am on mac using latest version of mac OS (Mavericks.) I downloaded ejabberd 13.12 for mac, installed it, and started it through terminal. Now i can open it in browser (i am using mozilla firefox 26 and latest safari). and went to admin console. Everything seems fine, i can log in with my user name and password (which i provided during jabber installation). Now i went to access control lists, and try to add additonal users. Problem is i can't. In mozilla i get error message, that connection

domain connection issues with tigase XMPP Server

别等时光非礼了梦想. 提交于 2019-12-24 10:55:39
问题 I'm just started looking into the tigase XMPP server and having issue configuring the server for a spark client to connect. server print out: C:\Tigase>java -cp "jars/tigase-server.jar;libs/*" -Djdbc.drivers=com.mysql.jdbc.Driver tigase.server.XMPPServer --property-file etc/init.properties 2013-09-18 00:39:14 DNSResolver.<clinit>() WARNING: Resolving default host name took: 935 2013-09-18 00:39:14 ConfiguratorAbstract.parseArgs() CONFIG: Setting defaults: --property-file=etc/init.properties

How to connect Ejabberd or MongooseIM with Node.js (or Django)

ぐ巨炮叔叔 提交于 2019-12-24 10:22:37
问题 I want to develop a backend server for a chat application using node.js (or Django) and Ejabberd or MongooseIM. And consume this API on a React Native app that should have push notifications. The idea is to manage the user profile and metadata and also the authentication ( OAuth 2.0 - social login ) through my own server, then let the management of the chat stuff to the Ejabberd or MongooseIM server. The problems come on how to make the connection between the servers. I want to login through

Packet Listener in Android Service

二次信任 提交于 2019-12-24 10:15:59
问题 I am trying to create a service for a chat widget using XMPP, which picks up chat messages when they are sent to the user. I have created a service, and in the onStart I use a AsyncTask to connect to the chat server, and then sets up a packetlistener. Here's the code for the packer listener: public void setConnection(XMPPConnection connection) { if (connection != null) { // Add a packet listener to get messages sent to us PacketFilter filter = new MessageTypeFilter(Message.Type.chat);

erlang mysql result to xml

左心房为你撑大大i 提交于 2019-12-24 08:32:36
问题 I have an output : MysqlResult = {selected,["id","first_name","last_name"], [{1,"Matt","Williamson"}, {2,"Matt","Williamson2"}]} how to make it look like : XML = " <result id='1'> <first_name>Matt</first_name> <last_name>Williamson</last_name> </result> <result id='2'> <first_name>Matt</first_name> <last_name>Williamson2</last_name> </result>" I am looking for a smart way for placing it into IQ ( ejabberd ) IQ#iq{type = result, sub_el = [{xmlelement, "result", [{"xmlns", ?NS_NAMES}], [

XMPPFramework - Create vCard

对着背影说爱祢 提交于 2019-12-24 06:06:15
问题 I used following code to no avail in creating a vCard. It always goes in if block. Can someone please look into it to see if I am missing anything? xmppvCardStorage = [XMPPvCardCoreDataStorage sharedInstance]; xmppvCardTempModule = [[XMPPvCardTempModule alloc] initWithvCardStorage:xmppvCardStorage]; XMPPvCardTemp *myvCardTemp = [xmppvCardTempModule myvCardTemp]; if (!myvCardTemp) { NSXMLElement *vCardXML = [NSXMLElement elementWithName:@"vCard" xmlns:@"vcard-temp"]; XMPPvCardTemp

i am getting a error when trying to register a user using smack api(4.2) on android device on ejabberd (17.07)

落爺英雄遲暮 提交于 2019-12-24 05:04:41
问题 I tried to find the reason of the error but cannot found it. If anyone can suggest a way it will be highly appreciated. Earlier I was using ejabberd version 2.1 with default mnesia, which was working fine. I was able to register users from the android app. But now when I installed new ejabberd 17.07 with mysql, it gave me error as follow: Connection XMPPTCPConnection[not-authenticated] (5) closed with error org.jivesoftware.smack.XMPPException$StreamErrorException: not-authorized You can read

XMPP - user search in iphone sdk ? use of XEP-0055 in iphone sdk?

ぐ巨炮叔叔 提交于 2019-12-24 04:46:14
问题 i am sending this IQ to openfire server < iq type="set" from="admin@localhost.localdomain" 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="admin@localhost.localdomain/b91c09e5"><query xmlns="jabber:iq:search" > < first > admin < /first > < /query > < error code="501" type="cancel" > < feature-not