datasnap
TRANSCRIPT
RadPHP XE – Accessing Delphi for Windows Datasnap servers
José León Serna – Embarcadero Technologies
Overview
• Delphi for Windows Datasnap servers• Publish functionality• Can be consumed by clients
Developing the server
• Using the wizard• Choosing the type of application• Protocols• Authentication• Server methods• Ports• Ancestor
Server parts
• Published methods• $METHODINFO ON• Server Container• Server• Transports• ServerClass
Developing the client
• Creating the application• Executing the wizard• Protocol• Language• Generate pure PHP code• Connection information
Client parts
• ClientClassUnit• ClientModuleUnit
Accessing the server
• Developing a basic interface• Using the ClientModule• Accessing the server method• Getting the result• Testing the application
Accessing the server from Javascript
• Use the wizard• Add the scripts on the header• Setup the connection information• Create the server object• Call the methods
Conclusions - Datasnap
• Easy reusing business rules• Expanding current applications to the web• Integration with different platforms
THANK YOU!!
• [email protected]• http://www.joseleon.es• http://twitter.com/qadram