title: ONVIF GetDeviceInformation SOAP Message
body: <p>Im trying to make a web request to an onvif compliant camera but i am having trouble with the response.</p>
  
  <p>I followed the ONVIF application programmer's guide and i came up with this soap message to get the device information:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;s:Envelope 
      xmlns:s="http://www.w3.org/2003/05/soap-envelope" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
      xmlns:tt="http://www.onvif.org/ver10/schema" 
      xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" 
      xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" 
      xmlns:tds="http://www.onvif.org/ver10/device/wsdl"&gt;
      &lt;s:Header&gt;
          &lt;wsse:Security&gt;
              &lt;wsse:Username&gt;admin&lt;/wsse:Username&gt;
              &lt;wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordDigest"&gt;
                  WndlORLsIdMIyyvb99lzSgm0iGI=
              &lt;/wsse:Password&gt;
              &lt;wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"&gt;
                  Rjc0QUUzNDI2MTMyMTI4OTJCQjI1QzM2RUEzMDUzNEUxMTlFNEQ2Mg==
              &lt;/wsse:Nonce&gt;
              &lt;wsu:Created&gt;2017-05-11T11:48:56.8823852ZZ&lt;/wsu:Created&gt;
          &lt;/wsse:Security&gt;
      &lt;/s:Header&gt;
      &lt;s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
          &lt;GetDeviceInformation xmlns="http://www.onvif.org/ver10/device/wsdl" /&gt;
      &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>
  
  <p>And the response from the device is:</p>
  
  <pre><code>&lt;SOAP-ENV:Envelope (...)&gt;
      &lt;SOAP-ENV:Header&gt;
      &lt;/SOAP-ENV:Header&gt;
      &lt;SOAP-ENV:Body&gt;
          &lt;SOAP-ENV:Fault&gt;
              &lt;SOAP-ENV:Code&gt;
                  &lt;SOAP-ENV:Value&gt;SOAP-ENV:Sender&lt;/SOAP-ENV:Value&gt;
              &lt;SOAP-ENV:Subcode&gt;
                  &lt;SOAP-ENV:Value&gt;ter:NotAuthorized&lt;/SOAP-ENV:Value&gt;
              &lt;/SOAP-ENV:Subcode&gt;
              &lt;/SOAP-ENV:Code&gt;
              &lt;SOAP-ENV:Reason&gt;
                  &lt;SOAP-ENV:Text xml:lang="en"&gt;Sender not Authorized&lt;/SOAP-ENV:Text&gt;
              &lt;/SOAP-ENV:Reason&gt;
          &lt;/SOAP-ENV:Fault&gt;
      &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>Im calculating the Created time by subtracting the offset diference between my computer and the device so that the message is sent with a datetime compatible with the device.</p>
  
  <p>Am i missing something in my request? Considering that the username and password is correct, what could be causing this issue?</p>