PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → [WM] - Need suggestions for...
[WM] - Need suggestions for...
Iniciado por Yogi Yang, jun., 22 2017 12:30 PM - 7 respostas
Publicado em junho, 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
Publicado em junho, 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
Publicado em junho, 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
Publicado em junho, 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 .... :-(
Publicado em junho, 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
Publicado em junho, 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
Publicado em junho, 27 2017 - 1:47 PM
thanks

corrected.... the automatic backup system failed and filled the disk instead of keeping only a few backup... :-(

thanks
Publicado em junho, 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