Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys
I have a web service which returns DataSet, List etc. I want to know that how do I connect it from Android ?

Service.svc.cs
C#
public DataSet getAllEmpInfoByCompanyId(Guid companyId)
{
    return DataSearch.getAllEmpInfoByCompanyId(companyId);
}


Service_IService.cs
C#
[OperationContract]
DataSet getAllEmpInfoByCompanyId(Guid companyId);


This is how it is being used in current platform (.Net).
I googled and found some examples but still not quite clear.
Please guys,
Thanks
Posted

1 solution

Assuming that you are using java on the Android client, check and see if you can use Odata4j. It supports both Atom and JSON.

https://code.google.com/p/odata4j/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900