title: ONVIF api capture image in C#
body: <p>I have an ONVIF ip camera.</p>
  
  <p>I want to to capture an image from the camera so that I can process that image and save it to the file system.</p>
  
  <p>I found out that there is an onvif api which provides a method <code>GetSnapshotUri</code> which should provide me with an image snapshot:</p>
  
  <p><a href="http://www.onvif.org/onvif/ver10/media/wsdl/media.wsdl" rel="nofollow noreferrer">http://www.onvif.org/onvif/ver10/media/wsdl/media.wsdl</a></p>
  
  <p>I managed to import this api in visual studio by adding a service reference to it:</p>
  
  <p><a href="https://i.stack.imgur.com/IYFLu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IYFLu.png" alt="enter image description here"></a></p>
  
  <p>How do I construct a client to call <code>GetSnapshotUri</code> from this service?</p>