Windows Phone 8.1 with Xamarin and WCF

Are there any incompatibilities of Windows Phone 8.1 with WCF services?

I am developing a Xamarin Forms App Portable application that uses WCF services, it works fine on Android, but it doesnโ€™t work on Windows Phone 8.1 and there are no errors or exceptions.

I add a service link from Visual Studio and use it as follows:

IServicioWeb service = new ServicioWebClient(); var res = servicio.BeginMyValidateMethod(param1, param2, null, null); var res_client = servicio.EndMyValidateMethod(res); 
+5
source share
1 answer

You should use the REST implementation as it says here :

Windows Phone 8.1. XAML applications do not support System.ServiceModel, and therefore, you cannot edit, click the link in the project and select Add Service Link.
The recommended solution is to add the REST endpoint to your WCF endpoint and access the WCF application through the REST endpoint using HttpClient.

0
source

All Articles