I have build a basic WCF service that does nothing but add two numbers together. This service is accessible via basicHTTPbinding and is working correctly. I am able to create new ASP.NET applications and consume this service when adding a service reference to the WSDL file.
However, I am having lots of trouble getting this service to work in Xamarin's Android Emulator.
Here is what I did (and you can to to reproduce):
Add your code
SampleService.AddingService addServ = New SampleService.AddingService();
SameleService.AddNumbersDC addNum = new SampleService.AddNumbersDC():
addNum.num1 = 15;
addNum.num2 = 35;
Here is my issue, the WCF "AddNumbers" method accepts a datacontract of "AddNumbersDC" as its ONLY argument and returns and integer.
When I am trying to consume the service within my application, it is requiring three arguments. The first is the datacontract, and the second and third arguments are OUT parameters (which I don't understand because even when I try to use them it errors out with System.Net.WebExcption.
Am I missing something here or is there no way to consume WCF services using Xamarin? Now, I did read the partial tutorial explaining that you need to generate your "AddingService.cs" files using Silverlight's SlSvcUtil.exe commands. I did not have any luck with this either.
Please help all!