Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 22, 2012 06:57 PM by pratiksolanki
Nov 15, 2012 01:30 PM|LINK
The Wcf service was working fine when accessing to dotnet. But when i am trying to access same service to the andriod application
its getting error.
i am using basicHttpBinding.
Please help regarding this.
Nov 16, 2012 07:44 AM|LINK
Please try with webHttpBinding to create a Restful wcf service, since Android did not provide any tool to help consuming SOAP web service, it will be more convenient to consume a rest service. You may check below blogs which include samples on how to implement
#Comsuming WCF Services With Android
#Android with WCF Services
Hope it can help you.
Nov 22, 2012 06:57 PM|LINK
To provide data to the Android or iPhone use OData service, .Net also has WCF Data Service. OData service/WCF Data serivce provide Open data, Odata build upon web technologies such as HTTP, ATOM and JSON. Good thing about is you do not have to write contracts
(When you use WCF Data Service), just use Entity Framework, setup entities relationship, implement entities into the WCF Data service (one line code for each entity) it will allow you to do CRUD using LINQ TO SQL. Below is the code example of implementation
of entities into the WCF Data service.
For more information watch video from here
If you are in hurry then use this link which describe using EntityFramework
public class WcfDataService1 : DataService< TestDBEntities >
// This method is called only once to initialize service-wide policies.
public static void InitializeService(DataServiceConfiguration config)
// TODO: set rules to indicate which entity sets and service operations are visible, updatable, etc.
// config.SetEntitySetAccessRule("MyEntityset", EntitySetRights.AllRead);
// config.SetServiceOperationAccessRule("MyServiceOperation", ServiceOperationRights.All);
config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;