title: using Powershell to call asynchronous web methods on a web service
body: <p>I'm using PowerShell V2 and trying to find an example of using a web service proxy to call an asynchronous web method:</p>
  
  <p>Here is the code I have so far:</p>
  
  <pre><code>$Uri = "http://localhost/mywebservice.asmx?wsdl" 
  
  $proxy = New-WebServiceProxy -Uri $Uri -UseDefaultCredential
  </code></pre>
  
  <p>The web services has the following methods
  <strong>BeginFoo</strong> 
  <strong>EndFoo</strong> 
  <strong>FooAsync</strong>
  *<em>FooCompleted</em>*</p>
  
  <p>Hopefully this makes sense</p>