hi folks, well im testing the xdata atm, just doing the classic hello
world example well is actually a Sum(a + b) example and everything is
great when i use the xdataclient in other delphi application.
The
problem im facing is when i try to call the service using a external
http requester tool, well i usually test my rest server in php with one
of this tools: HttpResquest (Firefox add-on) or Advanced Rest Client
(Chrome extension), but both are faling when i call the xdata service.
what i have so far is:
[ServiceContract] IMyService = interface(IInvokable) ['{BAD477A2-86EC-45B9-A1B1-C896C58DD5E0}'] function Sum(A, B : Integer) : Integer; end;
so
the question is, im missing something with my service, do xdata can be
access by other languages instead of delphi, are there any specific
header/parameter/encode i should pass when i made the resquest?
You should provide the code where you declare your method in service operation. But if you didn't explicitly the binding method, then if the method is GET, then the parameter must be passed in query string, if the method is POST it must be passed in JSON body.