Beispiel #1
0
        public override FindMetadataResultList GetMetadataSearchResults(string SearchToken, int MinResults, [System.Xml.Serialization.XmlIgnoreAttribute()] bool MinResultsSpecified, int MaxResults, [System.Xml.Serialization.XmlIgnoreAttribute()] bool MaxResultsSpecified, string WaitTime)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "SearchToken", SearchToken);
            int?minResults = null;

            if (MinResultsSpecified)
            {
                minResults = MinResults;
            }
            validation.Add(ParameterType.OptionalInt, "MinResults", minResults);
            int?maxResults = null;

            if (MaxResultsSpecified)
            {
                maxResults = MaxResults;
            }
            validation.Add(ParameterType.OptionalInt, "MaxResults", maxResults);
            validation.Add(ParameterType.String, "WaitTime", WaitTime);

            FindMetadataResultList result = (FindMetadataResultList)ExecuteGetCommand(validation, SearchServiceTest.GetMetadataSearchResultsTest);

            return(result);
        }
Beispiel #2
0
        public override string FindPTZPosition(DateTime StartPoint, DateTime EndPoint, [System.Xml.Serialization.XmlIgnoreAttribute()] bool EndPointSpecified, SearchScope Scope, PTZPositionFilter SearchFilter, int MaxMatches, [System.Xml.Serialization.XmlIgnoreAttribute()] bool MaxMatchesSpecified, string KeepAliveTime)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "StartPoint", XmlConvert.ToString(StartPoint, XmlDateTimeSerializationMode.Utc));
            string endPoint = null;

            if (EndPointSpecified)
            {
                endPoint = XmlConvert.ToString(EndPoint, XmlDateTimeSerializationMode.Utc);
            }
            validation.Add(ParameterType.OptionalString, "EndPoint", endPoint);
            if (Scope.IncludedRecordings != null)
            {
                if (Scope.IncludedRecordings.Length > 0)
                {
                    validation.Add(ParameterType.String, "IncludedRecordings", "IncludedRecordings", Scope.IncludedRecordings[0]);
                }
            }
            validation.Add(ParameterType.String, "KeepAliveTime", KeepAliveTime);
            int?maxMatches = null;

            if (MaxMatchesSpecified)
            {
                maxMatches = MaxMatches;
            }
            validation.Add(ParameterType.OptionalInt, "MaxMatches", maxMatches);

            string result = (string)ExecuteGetCommand(validation, SearchServiceTest.FindPtzPositionsTest);

            return(result);
        }
        //[XmlReplySubstituteExtension(DUT.CameraWebService.Common.ResponsesConst.ResponseTicket1405_Analytics_DeleteRulesIncorrectResponseTag)]
        public override void DeleteRules(string ConfigurationToken, [System.Xml.Serialization.XmlElementAttribute("RuleName")] string[] RuleName)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "ConfigurationToken", ConfigurationToken);
            validation.Add(ParameterType.StringArray, "RuleName", RuleName);
            ExecuteVoidCommand(validation, AnalyticsEngineServiceTest.DeleteRulesTest);
        }
        public override void DeleteTrack(string RecordingToken, string TrackToken)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "RecordingToken", RecordingToken);
            validation.Add(ParameterType.String, "TrackToken", TrackToken);
            ExecuteVoidCommand(validation, RecordingServiceTest.DeleteTrackTest);
        }
Beispiel #5
0
        public override void SetReceiverMode(string ReceiverToken, ReceiverMode Mode)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "ReceiverToken", ReceiverToken);
            validation.Add(ParameterType.String, "Mode", Mode.ToString());
            ExecuteVoidCommand(validation, ReceiverServiceTest.SetReceiverModeTest);
        }
        public override void DisableCredential(string Token, string Reason)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "Token", Token);
            validation.Add(ParameterType.String, "Reason", Reason);
            ExecuteVoidCommand(validation, CredentialServiceTest.DisableCredentialTest);
        }
        public override void SetRecordingJobMode(string JobToken, string Mode)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "JobToken", JobToken);
            validation.Add(ParameterType.String, "Mode", Mode);
            ExecuteVoidCommand(validation, RecordingServiceTest.SetRecordingJobModeTest);
        }
        public override TrackConfiguration GetTrackConfiguration(string RecordingToken, string TrackToken)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "RecordingToken", RecordingToken);
            validation.Add(ParameterType.String, "TrackToken", TrackToken);
            return((TrackConfiguration)ExecuteGetCommand(validation, RecordingServiceTest.GetTrackConfigurationTest));
        }
        public override void ZoomMove(string VideoSource, ZoomDirection Direction, string Timeout)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "VideoSource", VideoSource);
            validation.Add(ParameterType.OptionalString, "Timeout", Timeout);
            validation.Add(ParameterType.String, "Direction", Direction.ToString());
            ExecuteVoidCommand(validation, ProvisioningServiceTest.ZoomMoveTest);
        }
        public override void DeleteCredentialAccessProfiles(string CredentialToken, [System.Xml.Serialization.XmlElementAttribute("AccessProfileToken")] string[] AccessProfileToken)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "CredentialToken", CredentialToken);
            validation.Add(ParameterType.StringArray, "AccessProfileToken", AccessProfileToken);

            ExecuteVoidCommand(validation, CredentialServiceTest.DeleteCredentialAccessProfilesTest);
        }
        public override void DeleteCredentialIdentifier(string CredentialToken, string CredentialIdentifierTypeName)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "CredentialToken", CredentialToken);
            validation.Add(ParameterType.String, "CredentialIdentifierTypeName", CredentialIdentifierTypeName);

            ExecuteVoidCommand(validation, CredentialServiceTest.DeleteCredentialIdentifierTest);
        }
        //[XmlReplySubstituteExtension(DUT.CameraWebService.Common.ResponsesConst.ResponseTicket1185_xsiType)]
        public override ConfigOptions[] GetRuleOptions(XmlQualifiedName RuleType, string ConfigurationToken)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.OptionalQName, "RuleType", RuleType);
            validation.Add(ParameterType.String, "ConfigurationToken", ConfigurationToken);
            ConfigOptions[] result = (ConfigOptions[])ExecuteGetCommand(validation, AnalyticsEngineServiceTest.GetRuleOptionsTest);
            return(result);
        }
        public override void SetTrackConfiguration(string RecordingToken, string TrackToken, TrackConfiguration TrackConfiguration)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "RecordingToken", RecordingToken);
            validation.Add(ParameterType.String, "TrackToken", TrackToken);
            // ToDo: add parameters from configuration
            ExecuteVoidCommand(validation, RecordingServiceTest.SetTrackConfigurationTest);
        }
        public override void RollMove(string VideoSource, RollDirection Direction, [System.Xml.Serialization.XmlElementAttribute(DataType = "duration")] string Timeout)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "VideoSource", VideoSource);
            validation.Add(ParameterType.OptionalString, "Timeout", Timeout);
            validation.Add(ParameterType.String, "Direction", Direction.ToString());
            ExecuteVoidCommand(validation, ProvisioningServiceTest.RollMoveTest);
        }
Beispiel #15
0
        public override string GetReplayUri(StreamSetup StreamSetup, string RecordingToken)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "RecordingToken", RecordingToken);
            validation.Add(ParameterType.String, "StreamSetup/Stream", StreamSetup.Stream.ToString());
            validation.Add(ParameterType.String, "StreamSetup/Transport/Protocol", StreamSetup.Transport.Protocol.ToString());
            return((string)ExecuteGetCommand(validation, ReplayServiceTest.GetReplayUriTest));
        }
        public override void ModifyAccessPoint(AccessPoint AccessPoint)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "Token", AccessPoint.token);
            validation.Add(ParameterType.String, "Name", AccessPoint.Name);
            validation.Add(ParameterType.String, "Description", AccessPoint.Description);
            //TODO: validation of other fields
            ExecuteVoidCommand(validation, PACSServiceTest.ModifyAccessPointTest);
        }
        public override void ExternalAuthorization(string AccessPointToken, string CredentialToken, string Reason, Decision Decision)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "AccessPointToken", AccessPointToken);
            validation.Add(ParameterType.String, "CredentialToken", CredentialToken);
            validation.Add(ParameterType.String, "Reason", Reason);
            validation.Add(ParameterType.String, "Decision", Decision.ToString());
            ExecuteVoidCommand(validation, PACSServiceTest.ExternalAuthorizationTest);
        }
        public override void SetCredentialIdentifier(string CredentialToken, CredentialIdentifier CredentialIdentifier)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "CredentialToken", CredentialToken);
            validation.Add(ParameterType.String, "CredentialIdentifier.Type", CredentialIdentifier.Type.Name);
            validation.Add(ParameterType.String, "CredentialIdentifier.ExemptedFromAuthentication", CredentialIdentifier.ExemptedFromAuthentication.ToString());
            //TODO: CredentialIdentifier.CredentialIdentifierValue validation
            ExecuteVoidCommand(validation, CredentialServiceTest.SetCredentialIdentifierTest);
        }
Beispiel #19
0
        public override void ModifySpecialDayGroup(SpecialDayGroup SpecialDayGroup)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "token", SpecialDayGroup.token);
            validation.Add(ParameterType.String, "Name", SpecialDayGroup.Name);
            validation.Add(ParameterType.String, "Description", SpecialDayGroup.Description);
            validation.Add(ParameterType.Log, "Days", SpecialDayGroup.Days);
            ExecuteVoidCommand(validation, ScheduleServiceTest.ModifySpecialDayGroupTest);
        }
        public override void SetRadiometryConfiguration(string VideoSourceToken, RadiometryConfiguration Configuration)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "VideoSourceToken", VideoSourceToken);

            if (Configuration != null && Configuration.RadiometryGlobalParameters != null)
            {
                validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/ReflectedAmbientTemperature", Configuration.RadiometryGlobalParameters.ReflectedAmbientTemperature);
                validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/Emissivity", Configuration.RadiometryGlobalParameters.Emissivity);
                validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/DistanceToObject", Configuration.RadiometryGlobalParameters.DistanceToObject);
                if (Configuration.RadiometryGlobalParameters.RelativeHumiditySpecified)
                {
                    validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/DistanceToObject", Configuration.RadiometryGlobalParameters.RelativeHumidity);
                }
                if (Configuration.RadiometryGlobalParameters.AtmosphericTemperatureSpecified)
                {
                    validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/AtmosphericTemperature", Configuration.RadiometryGlobalParameters.AtmosphericTemperature);
                }
                if (Configuration.RadiometryGlobalParameters.AtmosphericTransmittanceSpecified)
                {
                    validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/AtmosphericTransmittance", Configuration.RadiometryGlobalParameters.AtmosphericTransmittance);
                }
                if (Configuration.RadiometryGlobalParameters.ExtOpticsTemperatureSpecified)
                {
                    validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/ExtOpticsTemperature", Configuration.RadiometryGlobalParameters.ExtOpticsTemperature);
                }
                if (Configuration.RadiometryGlobalParameters.ExtOpticsTransmittanceSpecified)
                {
                    validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/ExtOpticsTransmittance", Configuration.RadiometryGlobalParameters.ExtOpticsTransmittance);
                }
            }

            ExecuteVoidCommand(validation, ThermalServiceTest.SetRadiometryConfigurationTest);
        }
Beispiel #21
0
        public override string CreateSpecialDayGroup(SpecialDayGroup SpecialDayGroup)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "token", SpecialDayGroup.token);
            validation.Add(ParameterType.String, "Name", SpecialDayGroup.Name);
            validation.Add(ParameterType.String, "Description", SpecialDayGroup.Description);
            validation.Add(ParameterType.Log, "Days", SpecialDayGroup.Days);
            string result = (string)ExecuteGetCommand(validation, ScheduleServiceTest.CreateSpecialDayGroupTest);

            return(result);
        }
        public override string CreateAccessPoint(AccessPoint AccessPoint)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "token", AccessPoint.token);
            validation.Add(ParameterType.String, "Name", AccessPoint.Name);
            validation.Add(ParameterType.String, "Description", AccessPoint.Description);
            //TODO: validation of other fields
            string result = (string)ExecuteGetCommand(validation, PACSServiceTest.CreateAccessPointTest);

            return(result);
        }
        public override void Seek(System.DateTime UtcTime, bool Reverse, [System.Xml.Serialization.XmlIgnoreAttribute()] bool ReverseSpecified, [System.Xml.Serialization.XmlAnyElementAttribute()] System.Xml.XmlElement[] Any)
        {
            SoapHeaderProcessing(unknownHeaders);

            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.Log, "UtcTime", UtcTime);
            validation.Add(ParameterType.OptionalBool, "Reverse", Reverse, ReverseSpecified);
            ExecuteVoidCommand(validation, PullPointSubscriptionServiceTest.SeekTest);

            actionHeader.actionValue = "http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/SeekResponse";
        }
Beispiel #24
0
        //[XmlReplySubstituteExtension(DUT.CameraWebService.Common.ResponsesConst.ResponseTicket1405_ReplaySetReplayConfigurationResponseIncorrectResponseTag)]
        public override void SetReplayConfiguration(ReplayConfiguration Configuration)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "ReplayConfiguration/SessionTimeout", Configuration.SessionTimeout.ToString());
            ExecuteVoidCommand(validation, ReplayServiceTest.SetReplayConfigurationTest);
        }
Beispiel #25
0
        public override void DeleteAccessProfile(string Token)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "Token", Token);
            ExecuteVoidCommand(validation, AccessRulesServiceTest.DeleteAccessProfileTest);
        }
        public override RecordingJobStateInformation GetRecordingJobState(string JobToken)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "JobToken", JobToken);
            return((RecordingJobStateInformation)ExecuteGetCommand(validation, RecordingServiceTest.GetRecordingJobStateTest));
        }
        //Response for 466 ticket
        //[XmlReplySubstituteExtension("<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:SOAP-ENC=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:wsa5=\"http://www.w3.org/2005/08/addressing\" xmlns:c14n=\"http://www.w3.org/2001/10/xml-exc-c14n#\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" xmlns:ds=\"http://www.w3.org/2000/09/xmldsig#\" xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns:trc2=\"http://www.onvif.org/ver10/schema\" xmlns:trc3=\"http://www.w3.org/2005/05/xmlmime\" xmlns:trc4=\"http://docs.oasis-open.org/wsn/b-2\" xmlns:trc5=\"http://www.w3.org/2004/08/xop/include\" xmlns:trc6=\"http://docs.oasis-open.org/wsrf/bf-2\" xmlns:trc7=\"http://docs.oasis-open.org/wsn/t-1\" xmlns:trc=\"http://www.onvif.org/ver10/recording/wsdl\" xmlns:ter=\"http://www.onvif.org/ver10/error\"><SOAP-ENV:Body><trc:GetRecordingOptionsResponse><trc:Options><trc:Job Spare=\"3\"></trc:Job><trc:Track SpareMetadata=\"0\" SpareAudio=\"1\" SpareVideo=\"0\" SpareTotal=\"1\"></trc:Track></trc:Options></trc:GetRecordingOptionsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>")]
        public override RecordingOptions GetRecordingOptions(string RecordingToken)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "RecordingToken", RecordingToken);
            return((RecordingOptions)ExecuteGetCommand(validation, RecordingServiceTest.GetRecordingOptionsTest));
        }
        public override void DeleteDoor(string Token)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "Token", Token);
            ExecuteVoidCommand(validation, DoorServiceTest.DeleteDoorTest);
        }
Beispiel #29
0
        public override void DeleteSpecialDayGroup(string Token)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "Token", Token);
            ExecuteVoidCommand(validation, ScheduleServiceTest.DeleteSpecialDayGroupTest);
        }
        public override void Stop(string VideoSource)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "VideoSource", VideoSource);
            ExecuteVoidCommand(validation, ProvisioningServiceTest.StopTest);
        }