January 16th, 2015
The core feature of an app I was working on in Xamarin was to gather data from a web service. This web service was created awhile ago in ASMX. After creating a class with
SlSvcUtil.exe from the WSDL I imported it into the PCL, as I had for the many other times I had referenced a web service.
This did not work, as the class generated by .NET was not compatible with my PCL so I had to find another way to talk to the web service. I decided to use an HttpWebRequest to POST my information directly to server and read the response. This is easily done in a PCL. The issue I came across was the server being protected by Windows Authentication.