Hi,
Is it possible to dynamically point the Database Location (HFSQL) for REST Webservices?
Customer A will send file to Database A
Customer B will send file to Database B
For example :
//Initializing POSData (server)
MyAdminName is ANSI string
MyAdminPassword is ANSI string
MyServerAndPort is ANSI string
MyDatabaseName is ANSI string
MyConnection is Connection
MyAdminName = "Admin"
MyServerAndPort = "123.123.123.80:4900"
MyDatabaseName = "POSData - " + "Company A"
// Connection to HFCSDatabase
MyConnection..User = NoSpace(MyAdminName)
MyConnection..Password = NoSpace(MyAdminPassword)
MyConnection..Database = NoSpace(MyDatabaseName)
MyConnection..Server = MyServerAndPort
MyConnection..Provider = hAccessHFClientServer
MyConnection..Access = hOReadWrite
MyConnection..CursorOptions = hServerCursor+hDynamicCursor+hOptimisticCursor
MyConnection..ExtendedInfo = "Read Databases from HF C/S"
MyConnection..CryptMethod = hCryptRC5_16
IF NOT HOpenConnection(MyConnection) THEN
Error("HOpenConnection: ","Unable to connect to "+MyServerAndPort,HErrorInfo(hErrFullDetails))
ELSE
// Assign the connection to all data files
HChangeConnection("*", MyConnection)
END
How to set the MyDatabaseName as above for REST Webservices?
Currently i only look that the REST Webservices only can set a default single database location at the Initializing of server.
Please advice. Thanks a lot.
Regards,
Mujahid