1

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.

Community
  • 1
  • 1
Darkendorf
  • 463
  • 11
  • 28

2 Answers2

1

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

Community
  • 1
  • 1
sunil
  • 6,444
  • 1
  • 32
  • 44
0

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...

Darkendorf
  • 463
  • 11
  • 28
  • Hi, I'm a user of the DataSnap proxy for Android too and I just wondered how you are getting on with it? I've had some connecticty issues with SSL connections - have you had any problems here? I'm connecting to a DataSnap server built as a Windows service. Jonathan – Jonathan Wareham Aug 07 '12 at 20:47
  • sorry but i dropped the certificates, too heavy in my case. But post a new Question, you'll get more help than from a comment... – Darkendorf Aug 09 '12 at 06:53