私は完全にONVIF認証に固執しています。私はすべてを試したり、少なくともほぼすべてを試したと思うし、インターネット上で十分な情報が見つからないと思う。私は(私は多くのことを試してみましたので、それらの1つ)の認証を行うには、私のコードは、svcutilを使用してスタブクライアントを作成しました:軸camara P1344でのOnvif認証C#
{"The remote server returned an unexpected response: (400) Bad Request."}
:この次にエラーが発生した後
string uri = "http://140.0.22.39/onvif/services";
EndpointAddress serviceAddressPrueba = new EndpointAddress(uri);
HttpTransportBindingElement httpBinding = new HttpTransportBindingElement();
httpBinding.AuthenticationScheme = AuthenticationSchemes.Digest;
var messegeElement = new TextMessageEncodingBindingElement();
messegeElement.MessageVersion = MessageVersion.CreateVersion(EnvelopeVersion.Soap12, AddressingVersion.None);
CustomBinding bindprueba = new CustomBinding(messegeElement, httpBinding);
DeviceClient clientprueba = new DeviceClient(bindprueba, serviceAddressPrueba);
string passwordDigestBase64;
//HERE I PUT THE CODE TO ENCRYPT THE PASSWORD.
PasswordDigestBehavior behavior1 = new PasswordDigestBehavior("root",passwordDigestBase64);
clientprueba.Endpoint.Behaviors.Add(behavior1);
string d1;
string d2;
string d3;
string d4;
clientprueba.GetDeviceInformation(out d1, out d2, out d3, out d4);
を
これを解決するための情報を私に教えていただけたら非常に感謝しています。
を確認してください。http://stackoverflow.com/questions/18149866/unable-to-connect-to-onvif-enabled-camera-using-c-sharp/18623888#18623888 – mhcuervo