FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
[WM] - Need suggestions for...
[WM] - Need suggestions for...
Débuté par Yogi Yang, 22 juin 2017 12:30 - 7 réponses
Connectez-vous…
Yogi Yang
#1
Posté le 22 juin 2017 - 12:30
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
Signaler
0
0
Allard
#2
Posté le 22 juin 2017 - 13:03
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
Signaler
0
0
Fabrice Harari
#3
Posté le 22 juin 2017 - 14:16
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
Signaler
0
0
ccc2
#4
Posté le 22 juin 2017 - 18:06
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 ....
Signaler
0
0
Yogi Yang
#5
Posté le 26 juin 2017 - 09:56
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
Signaler
0
0
Yogi Yang
#6
Posté le 26 juin 2017 - 09:58
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
Signaler
0
0
Fabrice Harari
#7
Posté le 27 juin 2017 - 13:47
thanks
corrected.... the automatic backup system failed and filled the disk instead of keeping only a few backup...
thanks
Signaler
0
0
Allard
#8
Posté le 29 juin 2017 - 11:40
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
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte