PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
[WM] - Need suggestions for...
[WM] - Need suggestions for...
Started by Yogi Yang, Jun., 22 2017 12:30 PM - 7 replies
Connect yourself…
Yogi Yang
#1
Posted on June, 22 2017 - 12:30 PM
Hello,
I have received a query to build a chatting client that would allow users to chat with each other, transfer file/photos/videos.
I think to achieve this what I will have to do is use OpenFire with XMPP for this.
I need suggestion as to whether is would be possible to communicate with OpenFire and XMPP servers or not from WM. If yes then how can we go about doing this in WM?
Is there any other way to build such an app? If yes please do give your valuable suggestions.
TIA
Report
0
0
Allard
#2
Posted on June, 22 2017 - 1:03 PM
Hi Yogi,
Websockeds using webdev 22.
I donnot know open Fire but I think you canconnect through a API ( webservice ). Nowdays these things work with JSon Or XML
I woiuld look for any API that they have . A good API has documentatieon on how to connect with it.
regards
Allard
Report
0
0
Fabrice Harari
#3
Posted on June, 22 2017 - 2:16 PM
Hi,
no need to use an external tool (or you have requirements you didn't state here)... Yo can :
- Use a windev program on a server waiting with a socket open and call it from the clients. the windev program keeps the chat in a memory array and serves anybody asking
- use a webservice (soap or rest) built in windev or webdev and writing the chat in a DB on the server. The clients call it to write in it and get the latest chat information (in fact, a slightly modified version of my wxreplication project could do all that easily, by replicating ONE chat file).
Best regards
Report
0
0
ccc2
#4
Posted on June, 22 2017 - 6:06 PM
if you own the server, you can connect through REST plugin.
http://tiriboy.blogspot.sg/2015/08/setting-up-xmpp-openfire-server-rest-api.html
for the REST api
http://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html
if you don't own the server ....
Report
0
0
Yogi Yang
#5
Posted on June, 26 2017 - 9:56 AM
Hello Fabrice,
Your web site (
http://fabriceharari.com/UK/Page_ArticlesList.awp…
) seems to be down!!!
I am getting this in my browser:
[attachment 2362 2017-06-26_132535.jpg]
TIA
Report
0
0
Yogi Yang
#6
Posted on June, 26 2017 - 9:58 AM
Quote
ccc2
if you own the server, you can connect through REST plugin.
http://tiriboy.blogspot.sg/2015/08/setting-up-xmpp-openfire-server-rest-api.html
for the REST api
http://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html
if you don't own the server ....
Using REST api means using JSON.
I am using WM20 and in this I cannot find as to how we can handle JSON
Are there any possibilities of implementing JSON in WM20?
TIA
Report
0
0
Fabrice Harari
#7
Posted on June, 27 2017 - 1:47 PM
thanks
corrected.... the automatic backup system failed and filled the disk instead of keeping only a few backup...
thanks
Report
0
0
Allard
#8
Posted on June, 29 2017 - 11:40 AM
Hi
Windev Mob 22 mobile does support JSon and the variant type. I have checked it out a little bit. It does nicely show Json in a readeble format in the debugger ( as they promised
)
But I can not find any example app that does any communication with the outside world!! except for doing a replication or direct db connection:(:sneg:
So I would be verry carefull to buy mobile for a project like yours. It might not o all the things that they promised!!
Does it need to be a native mobile app? You could make an app with webdev ? Version 22 should profide websockeds as well so no need for windev. It should be possible with webdev alone.
If you make it for a phone specific it would look like a native app.
regards
Allard
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text