suppose now I have an openfire XMPP server, 10 android tablab is connected to it and it is able to communicate to each other via openfire server.
and now there is another server from third party call Server A. Is it possible to let Server A to send some http request to openfire server to config the setting? such as create a chat room, delete a chat room and so on.
yes you can create chat rooms over HTTP Request with help of Openfire MUC Service plugin.
You can download the plugin here: http://www.igniterealtime.org/projects/openfire/plugins.jsp
The full documentation for the REST interface is here: https://www.igniterealtime.org/projects/openfire/plugins/mucservice/readme.html
e.g. to create a chat room:
Header: Authorization: Basic YWRtaW46MTIzNDU= Header: Content-Type:
application/xml
POST http://example.org:9090/plugins/mucservice/chatrooms
Payload Example 1 (required parameters):
<chatRoom>
<naturalName>global-1</naturalName>
<roomName>global</roomName>
<description>Global Chat Room</description>
</chatRoom>
If you need to create users over HTTP Request, you could use the User Service Plugin.
Related
We have Rest web services on a glassfish4 (payara) server
Our rest client is based on httpClient Lib
As Authentication we use certificate and basic auth.
The client work well getting and posting infos to WS
But when we send a multipart post with file bigger than few bytes, parsing the request hang until a timeout
If we disable the certification auth, all is working
Thanks to payara blog, we address the problem: we needed to change a configuration in payara, "Max Save Post Size" in Network Config->Network Listener -> http-listener-2 (the one using ssl) - http tab
I have a chat app having web service installed on tomcat server, ejabberd as XMPP server. Right now i am using strophe.js on client side to directly communicate with ejabberd server for chatting purpose.
Is this correct chat app design ? or shall I send chat through tomcat server so that xmpp server is not accessible directly from client side ? Can anyon suggest a better design ?
You should connect your clients directly to ejabberd (or through a proxy like NGinx). ejabberd is designed to receive lot of traffic directly and using Tomcat as proxy will not be scalable and is not recommended.
I am creating chat application that will connect to facebook chat via XMPP. I installed eJabberd server, and, I am looking for a way to to hook to messages that comes from the client in order to add the access token and the api key/secret to the message before I am sending it to facebook, and I can't figure out how to do it, is it via one of the pre defined ejabber modules, or I need to develop one?
** I can connect with pidgin to facebook xmpp using the eJabberd server I installed.
Thanks.
I am implementing XMPP service in the browser using BOSH. I use JAXL library. I am able to manage the connection over BOSH to my localhost server (ejabberd). The session is started and the user is authenticated with no problem. However, when I just change the BOSH host to jappix.com, the very first response from the server is only empty body. Even if I repeat the request (according to XEP-206) I still get only empty body so I'm unable to perform any other actions.
So that's my question: Is it possible to use jappix.com to handle my BOSH requests? Are there any limitations? How can I fix this issue? I'll provide more information if needed.
I am the Jappix.com owner!
Your question does not concern our service directly but more likely a node-xmpp-bosh - the BOSH server we are running - bug (?) that you can report on http://code.google.com/p/node-xmpp-bosh/
I try to develop a web client gtalk in my http server.I know what I should do is just using the strophe.js which could send the xmpp message to xmpp server. I don't want to build my own xmpp server which connect to gtalk xmpp server.I think it may no need to build xmpp server as a transport.
But the gtalk xmpp server has no http-binding,so what should I do to send my http message to gtalk xmpp server? And if I send the http message to talk.google.com:5222,will it reply to me? Is it possible to make the connection between me and gtalk xmpp server?
I need your help.Thanks!
Gtalk server does not run a BOSH connection manager, so you would have to use a standalone one, like Punjab, for example.
After installing and running Punjab, you can have a HTTP-Bind at http://localhost:5280/xmpp-httpbind. Use your Strophe with it.