Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 22nd, 2012  |  syntax: None  |  size: 0.59 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. 'a:Action' must be understood but cannot be handled and RequestSecurityToken problem on an ONVIF Camera
  2. EndpointAddress endPointAddress = new EndpointAddress("http://192.168.3.246:80/onvif/device_service");  
  3. WSHttpBinding bind = new WSHttpBinding();  
  4. bind.Security.Mode = SecurityMode.Message;  
  5. bind.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
  6. DeviceClient temp = new DeviceClient(bind, endPointAddress);  
  7. temp.ClientCredentials.UserName.UserName = myusername;  
  8. temp.ClientCredentials.UserName.Password = mypassword;  
  9. SystemDateTime s = temp.GetSystemDateAndTime();