java - Create Chat Rooms In openfire via url -


I want to be able to create a chat room through the rest of the webservices of Openfire. To make us user

  http://example.com:9090/plugins/userService/userservice?type=add&secret=bigsecret&username=kafka&password=drowssap&name=franz&email=franz@ Kafka.com  

But I can not find any tutorials to guide me, is it possible? Please help. I want this URL because my OpenFire server can be located in a different location than my application webservice.

Yes, you can also create chat rooms on HTTP / REST.

So you need a MUC Service Plugin. You can find it here:

Here is a complete document to create and configure chat rooms:

Simple example:

Header: Authorization: Basic YWRtaW46MTIzNDU =

Header: Content-Type: Application / xml

POST

Payload Example 1 (required parameter):

  & lt; Chat rooms & gt; & Lt; NaturalName & gt; Global -1 & lt; / NaturalName & gt; & Lt; RoomName & gt; Global & lt; / RoomName & gt; & Lt; Details & gt; Global Chat Room & lt; / Description & gt; & Lt; / ChatRoom & gt;  


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -