Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Datasnap

2,030 views

Published on

Published in: Technology
  • Be the first to comment

Datasnap

  1. 1. RadPHP XE – Accessing Delphi for Windows Datasnap servers José León Serna – Embarcadero Technologies
  2. 2. Overview • Delphi for Windows Datasnap servers • Publish functionality • Can be consumed by clients
  3. 3. Developing the server • Using the wizard • Choosing the type of application • Protocols • Authentication • Server methods • Ports • Ancestor
  4. 4. Server parts • Published methods • $METHODINFO ON • Server Container • Server • Transports • ServerClass
  5. 5. Developing the client • Creating the application • Executing the wizard • Protocol • Language • Generate pure PHP code • Connection information
  6. 6. Client parts • ClientClassUnit • ClientModuleUnit
  7. 7. Accessing the server • Developing a basic interface • Using the ClientModule • Accessing the server method • Getting the result • Testing the application
  8. 8. 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
  9. 9. Conclusions - Datasnap • Easy reusing business rules • Expanding current applications to the web • Integration with different platforms
  10. 10. THANK YOU!! • jose.leon@embarcadero.com • http://www.joseleon.es • http://twitter.com/qadram

×