I need help implementing SOAP webservice in cross-platform app. I managed to add a WebReference of the service in "ProjectName.Android" part of the project and successfully called the webservice from the common code (platform independent) using the below code
ProjectName.Android.WifiService.Service service = new SelfCare.Android.WifiService.Service();
var response = service.MethodName (paramters);
It is working on android. Project hasn't been tested on iOS and I think if I just add the same WebRefernce to iOS and apply "OnPlatform" case statement to initialize the corresponding webservice object (ProjectName.iOS.WifiService.Service service**) and keep rest of the code same, I should be able to run it on iOS aswell.
But my problem is that, the project was created a few months ago and giving many obsolete warnings now. And if I create a new project now, the whole project default structure has changed and now it shows common References, Packages and Properties too. I have attached screenshots for comparison.
And if I add a WebReference to Android part of the project, I cannot reference it from any of the common-code cs files using ProjectName.Droid.Service. Noth VS2013 and Xamarin Studio won't allow me to add a WebReference to the SOAP service. Instead it allows ServiceReference which does not work for SOAP service. And although it allows adding WebReference to individual projects (android,iOS) I cannot reference them from common code.
Please if anyone has any experience in consuming SOAP services let me know.