cancel
Showing results for 
Search instead for 
Did you mean: 

Android to Sql Anywhere using web services

Former Member
4,445

Anyone have a link to a quick start on how to connect an android app to a database using web services?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Michael_Fischer
Explorer

From what you write I assume that you already use the http service.

You could stick with this approach and add more webservices for the sale system data. As long as they are just a couple and you don't need a variable number of filter and order by criteria you don't necessarily need OData, for example. I personaly would implement all query services by a stored procedure on the database side.

Instead of sending raw data you might consider sending XML or JSON. It makes parsing of the data more convenient on the client.

The checkout from the quarry would just be another service where you post the checkout data as http parameters, accept them in the stored procedure behind the service and then do in the database with the parameters whatever is necessary.

Regards,

Michael

Former Member
0 Kudos

Thanks, we did go in that general direction.

Answers (1)

Answers (1)

Michael_Fischer
Explorer

Hello,

what kind of web service API do you want to use? SQL Anywhere supports simple HTTP services (either with XML or raw payload), SOAP and OData. Android clients can consume all three flavours (with the help of additional libraries).

The best choice of API depends on your requirements. Can you tell a little bit more about what you want to use the web service for?

Regards,

Michael

Former Member
0 Kudos

I do have some functionality already written where I used raw to send out html to web browsers, for reporting and even a "real time" "dash boards".

For this next project it will allow functionality for truck drivers to interact with a point of sale system and to check themselves out from a quarry.

The idea is if we keep them in the truck cab it's safer.