28-07-2012, 01:10 PM
مثال Datasnap server with prism client
1- انشاء برنامج datasnap server with wizard delphi xe or delphixe2
2- run program server
3- create WebApplication1 with prism
4- (with dataconnection and open connection - run with right click mouse ) create ClientProxy1
5- avr
SQLConnection := Borland.Data.TAdoDbxDatasnapProviderFactory.Instance.CreateConnection() as Borland.Data.TAdoDbxConnection;
SQLConnection.ConnectionString := 'communicationprotocol=http;hostname=localhost;port=8080';
or // full
// SQLConnection.ConnectionString := 'communicationprotocol=http;hostname=localhost;port=80;serverconnection=TServerMethods_ha.GetConnection';
1- انشاء برنامج datasnap server with wizard delphi xe or delphixe2
2- run program server
3- create WebApplication1 with prism
4- (with dataconnection and open connection - run with right click mouse ) create ClientProxy1
5- avr
SQLConnection := Borland.Data.TAdoDbxDatasnapProviderFactory.Instance.CreateConnection() as Borland.Data.TAdoDbxConnection;
SQLConnection.ConnectionString := 'communicationprotocol=http;hostname=localhost;port=8080';
or // full
// SQLConnection.ConnectionString := 'communicationprotocol=http;hostname=localhost;port=80;serverconnection=TServerMethods_ha.GetConnection';

