
Untitled
By: a guest on
Jun 22nd, 2012 | syntax:
None | size: 0.59 KB | hits: 18 | expires: Never
'a:Action' must be understood but cannot be handled and RequestSecurityToken problem on an ONVIF Camera
EndpointAddress endPointAddress = new EndpointAddress("http://192.168.3.246:80/onvif/device_service");
WSHttpBinding bind = new WSHttpBinding();
bind.Security.Mode = SecurityMode.Message;
bind.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
DeviceClient temp = new DeviceClient(bind, endPointAddress);
temp.ClientCredentials.UserName.UserName = myusername;
temp.ClientCredentials.UserName.Password = mypassword;
SystemDateTime s = temp.GetSystemDateAndTime();