Generating DataSnap Server Method Proxies

From RAD Studio
Jump to: navigation, search

Go Up to DataSnap Server Application


Proxy DataSnap classes are needed in client applications to invoke server methods. In order to generate server methods, drop a TDSRestConnection in a form and connect to a running DataSnap server in design mode. Right-click the TDSRestConnection component and select Generate DataSnap Client Classes. The proxy unit is added to the current project and each exposed method can be used to invoke the corresponding server method. When generating a Delphi proxy for the server, that proxy should have on it the useful DSAdmin methods. These DSAdmin methods are any functions or procedures publicly declared and exposed to the user, as well as any visible methods in the classes that DSAdmin extends.

If the server method signature changes or methods are added or removed, the same option will refresh the proxy unit.

See Also