You are not logged in.
Pages: 1
I'm sending an object JSON with the POST method by ExtJs 6.01.
the object is inside request payload or (http request body).
I would like to capture the object with class(TSQLHttpServer) is possible?
Offline
It is pretty easy using a method-based service.
See http://synopse.info/files/html/Synopse% … ml#TITL_49
Offline
sorry my little experience, but I use ExtJs 6.01 as a customer.
would like to access a method with serverservice not have PORTNUMBER
http://localhost:8050/root/myobjectJSON
Offline
Create a
published
procedure MyObjectJSON(Ctxt: TSQLRestServerURIContext);
end;
as documented.
See e.g. https://github.com/synopse/mORMot/blob/ … Server.dpr
and return your JSON content using TSQLRestServerURIContext.Returns() method.
Offline
thanks.
sorry if it's a stupid question.
but the example:
https://github.com/synopse/mORMot/blob/ … Server.dpr
there is not a port number
as you would in the browser?
http://localhost:8050/root/sum ??
Offline
The sample uses named pipe, indeed.
See the doc and other samples (like sample 04) for how HTTP servers are published with mORMot.
http://synopse.info/files/html/Synopse% … #TITLE_247
Offline
Pages: 1