Darkendorf
Darkendorf

Reputation: 473

Android Rest client to Delphi XE2 Datasnap Rest server

I found many examples on Stack Overflow and I just don't know where to start since I have a particular prerequisite:

My Delphi Datasnap Rest server is using ZLibCompression and RSA encryption (in TTransportFilterCollection of DSHTTPWebDispatcher). Is there an Android restful API that can handle those? Any sample that already implements that?

I found this thread Android REST client, Sample? as a good starting point, both lightweight and well-formed clients are presented but is it enough for me?

Thanks in advance for any hint, sample or library that you could point me to.

Upvotes: 1

Views: 2479

Answers (2)

Darkendorf
Darkendorf

Reputation: 473

I just used the proxy generator from Danasnap server TDSProxyGenerator component (http://yourserver:port/proxy/java_android.zip) and added this code to my android project...

I had to search for the DSRESTSSLFactory.java file that is not generated by the proxy (but required !!), i found it in a demo from embarcadero, and from that point the communication is entirely handled, all accessible procedures are publicated, and really really simple to use...

Upvotes: 0

sunil
sunil

Reputation: 6614

you can use the Android Rest-Client for sending data to a webservice

see my answer in the post Adding body of call to POST using HttpURLConnection

Upvotes: 1

Related Questions