title: Xamarin Forms SOAP WebService, how to get data?
body: <p>I have searched for a few days now and cannot figure this out. I would like to get my results from a WebService. I am using PCL and as far as I can tell we cannot use string as a variable when returning, only void. </p>
  
  <pre><code>        WebServiceSoapClient client = new WebServiceSoapClient();
          string result = client.SetDriverAvailAsync(varUserid, varPassword, varLocation, varDateTime);
  </code></pre>
  
  <p>Above is what I'm using to call the method. And the web service was written as such.</p>
  
  <pre><code>[WebMethod]
  public string SetDriverAvail(string drivername, string password, string location, string datetime)
  {
      if (location == "" || datetime == "")
      {
          return "failed";
      }
  </code></pre>
  
  <p>It does a bunch of other stuff. Then returns "success" or "failed". Bottom line is. When i make my Service Reference for a Portable Form in Xamarin the only methods it makes in the Connection Service are public voids. </p>
  
  <p>If I make a Service Reference in all other projects like ASP Web Page, ect. It builds these methods differently. And does let you return a string.</p>
  
  <p>CONFUSED ... THANKS</p>