Jump to content
EWB

Datasnap connector tip

Recommended Posts

I am also curious how Smart Mobile Studio can connect to DataSnap server. The DataSnap connector wizard in SMS Enterprise edition (Tools | Import DataSnap connector) asks for DataSnap service URL. Which value to fill in? http://localhost:8080 or http://localhost:8080/datasnap/rest or perhaps path to ServerFunctions.js? ServerFunctions.js is JavaScript proxy generated by DataSnap server. Anyway, DataSnap server is running on same machine with just default sample server methods, but DataSnap connector wizard fails. I use Delphi XE6 and SMS 2.1. Is tutorial available somewhere or blogpost how to use DataSnap connector wizard?

Share this post


Link to post
Share on other sites

Hi Andre,

 

Thanks for response. I get error message: Failed to import Datasnap connector. Error[50] not supported

 

In Delphi New DataSnap Server wizard I checked HTTP and JavaScript files, and started application of course (can indeed easily be overlooked!). I can connect with other Delphi VCL client application to running DataSnap server: no firewall problems.

 

I use Delphi XE6 though.

 

Best regards,

Erwin

Share this post


Link to post
Share on other sites

Thanks. I assume your DataSnapProxyGenerator.dll is ISAPI dll. Configuration of IIS is not that simple. Could you provide stand-alone executable of your default DataSnap http server please? Listening on port 12345 for example, or default value 8080? I want to exclude configuration issues with IIS.

Share this post


Link to post
Share on other sites

There was no DataSnapProxyGenerator.dll on my whole machine in the first place. I have put yours besides SmartMS.exe located in C:\Program Files (x86)\Smart Mobile Studio\ directory. To be clear: it was not a replacement.

 

Now it works :-)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×