Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
8
Erster Beitrag:
vor 5 Monaten
Letzter Beitrag:
vor 4 Monaten, 3 Wochen
Beteiligte Autoren:
Yogi Yang, Fabrice Harari, Allard, ccc2

[WM] - Need suggestions for...

Startbeitrag von Yogi Yang am 22.06.2017 10: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

Antworten:

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

von Allard - am 22.06.2017 11:03
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

von Fabrice Harari - am 22.06.2017 12:16
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 .... :-(

von ccc2 - am 22.06.2017 16:06
Hello Fabrice,

Your web site (http://fabriceharari.com/UK/Page_ArticlesList.awp?ActiveMenuItem=86&Article=wxedm) seems to be down!!!
I am getting this in my browser:
[attachment 2362 2017-06-26_132535.jpg]

TIA

von Yogi Yang - am 26.06.2017 07:56
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

von Yogi Yang - am 26.06.2017 07:58
thanks

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

thanks

von Fabrice Harari - am 27.06.2017 11:47
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

von Allard - am 29.06.2017 09:40
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.