#1 2019-11-14 17:23:57

xiwuping
Member
Registered: 2018-02-11
Posts: 32

Does Client of mORMot RPC server have to be in Delphi/FPC?

I have a mORMot interfaced service RPC server that exposes several service methods.  I understand how to make a client in Delphi to call those remote methods.

Is it possible to use another language to make the remote method calls too?  For example,  C++?

Last edited by xiwuping (2019-11-14 21:22:23)

Offline

#2 2019-11-15 05:29:14

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: Does Client of mORMot RPC server have to be in Delphi/FPC?

Sure you can access the mORMot server from a client written in other languages - mORMot talks in HTTP/WebSocks/REST standards.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#3 2019-11-17 21:19:38

xiwuping
Member
Registered: 2018-02-11
Posts: 32

Re: Does Client of mORMot RPC server have to be in Delphi/FPC?

Thank you.

But is it already supporting automatically generated OpenAPI (also kow as 'Swagger') service definition? @edwinsn @ab

Offline

#4 2019-11-18 08:09:23

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: Does Client of mORMot RPC server have to be in Delphi/FPC?

not sure, sorry. actually I don't quite understand Swagger


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#5 2019-11-18 12:36:08

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,131
Website

Re: Does Client of mORMot RPC server have to be in Delphi/FPC?

Yes, there is preliminary support for this.
Search for "Swagger" in the forum.

See the corresponding template:
https://github.com/synopse/mORMot/blob/ … n.mustache

Offline

Board footer

Powered by FluxBB