datasnap

10
RadPHP XE – Accessing Delphi for Windows Datasnap servers José León Serna – Embarcadero Technologies

Upload: jose-serna

Post on 17-Jun-2015

1.808 views

Category:

Technology


6 download

TRANSCRIPT

Page 1: Datasnap

RadPHP XE – Accessing Delphi for Windows Datasnap servers

José León Serna – Embarcadero Technologies

Page 2: Datasnap

Overview

• Delphi for Windows Datasnap servers• Publish functionality• Can be consumed by clients

Page 3: Datasnap

Developing the server

• Using the wizard• Choosing the type of application• Protocols• Authentication• Server methods• Ports• Ancestor

Page 4: Datasnap

Server parts

• Published methods• $METHODINFO ON• Server Container• Server• Transports• ServerClass

Page 5: Datasnap

Developing the client

• Creating the application• Executing the wizard• Protocol• Language• Generate pure PHP code• Connection information

Page 6: Datasnap

Client parts

• ClientClassUnit• ClientModuleUnit

Page 7: Datasnap

Accessing the server

• Developing a basic interface• Using the ClientModule• Accessing the server method• Getting the result• Testing the application

Page 8: Datasnap

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

Page 9: Datasnap

Conclusions - Datasnap

• Easy reusing business rules• Expanding current applications to the web• Integration with different platforms

Page 10: Datasnap

THANK YOU!!

[email protected]• http://www.joseleon.es• http://twitter.com/qadram