title: call service references from xamarin forms c#
body: <p>I did a web service amsx and put on a server.
  I tried with postman and everything works.
  Now here's the problem, I am creating an app Xamarin forms, and can not figure out how to recover data.</p>
  
  <p>In series I did the following:</p>
  
  <p>1</p>
  
  <p><a href="https://i.stack.imgur.com/t0q9k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t0q9k.png" alt="enter image description here"></a></p>
  
  <p>2</p>
  
  <p><a href="https://i.stack.imgur.com/YaBiC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YaBiC.png" alt="enter image description here"></a></p>
  
  <p>3</p>
  
  <p><a href="https://i.stack.imgur.com/5ngyB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5ngyB.png" alt="enter image description here"></a></p>
  
  <p>my problem is that I can not understand how you can call methods and return the json inside them and then deserialize with newsofton.json.
  Can anyone give me a solution?</p>
  
  <p>ps.: methods:</p>
  
  <p><a href="https://i.stack.imgur.com/PV0l7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PV0l7.png" alt="enter image description here"></a></p>
  
  <p>instance of WebServiceSoapClient have that methods:</p>
  
  <p><a href="https://i.stack.imgur.com/z8Swg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z8Swg.png" alt="enter image description here"></a></p>
  
  <p><strong>SOLUTION</strong></p>
  
  <p>first call this: </p>
  
  <pre><code>ServiceReference1.WebServiceSoapClient test = new WebServiceSoapClient();                
  test.getUsersCompleted += Test_getUsersCompleted;
  test.getUsersAsync();
  </code></pre>
  
  <p>and create method event: </p>
  
  <pre><code> private void Test_getUsersCompleted(object sender, getUsersCompletedEventArgs e)
      {
  
          throw new NotImplementedException();
      }
  </code></pre>
  
  <p><strong>e</strong> object have data from web service</p>