//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // // This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.34014. // using System.Security.Cryptography.X509Certificates; #pragma warning disable 1591 namespace signDataService { using System; using System.Web.Services; using System.Diagnostics; using System.Web.Services.Protocols; using System.Xml.Serialization; using System.ComponentModel; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.33440")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="signDataServiceSOAP", Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public partial class signDataService : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback prepSignDataOperationCompleted; private System.Threading.SendOrPostCallback verifySignedDataOperationCompleted; private System.Threading.SendOrPostCallback noOpOperationCompleted; private bool useDefaultCredentialsSetExplicitly; /// public signDataService(X509Certificate clientCert, string url) { this.Url = url; ClientCertificates.Add(clientCert); } public new string Url { get { return base.Url; } set { if ((((this.IsLocalFileSystemWebService(base.Url) == true) && (this.useDefaultCredentialsSetExplicitly == false)) && (this.IsLocalFileSystemWebService(value) == false))) { base.UseDefaultCredentials = false; } base.Url = value; } } public new bool UseDefaultCredentials { get { return base.UseDefaultCredentials; } set { base.UseDefaultCredentials = value; this.useDefaultCredentialsSetExplicitly = true; } } /// public event prepSignDataCompletedEventHandler prepSignDataCompleted; /// public event verifySignedDataCompletedEventHandler verifySignedDataCompleted; /// public event noOpCompletedEventHandler noOpCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.symantec.com/pkiservices/2011/11/sign/signDataOperations/prepSignD" + "ataRequest", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)] [return: System.Xml.Serialization.XmlElementAttribute("PrepSignDataResponse", Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public PrepSignDataResponse prepSignData([System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] PrepSignDataRequest PrepSignDataRequest) { object[] results = this.Invoke("prepSignData", new object[] { PrepSignDataRequest}); return ((PrepSignDataResponse)(results[0])); } /// public void prepSignDataAsync(PrepSignDataRequest PrepSignDataRequest) { this.prepSignDataAsync(PrepSignDataRequest, null); } /// public void prepSignDataAsync(PrepSignDataRequest PrepSignDataRequest, object userState) { if ((this.prepSignDataOperationCompleted == null)) { this.prepSignDataOperationCompleted = new System.Threading.SendOrPostCallback(this.OnprepSignDataOperationCompleted); } this.InvokeAsync("prepSignData", new object[] { PrepSignDataRequest}, this.prepSignDataOperationCompleted, userState); } private void OnprepSignDataOperationCompleted(object arg) { if ((this.prepSignDataCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.prepSignDataCompleted(this, new prepSignDataCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.symantec.com/pkiservices/2011/11/sign/signDataOperations/verifySig" + "nedDataRequest", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)] [return: System.Xml.Serialization.XmlElementAttribute("VerifySignedDataResponse", Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public VerifySignedDataResponse verifySignedData([System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] VerifySignedDataRequest VerifySignedDataRequest) { object[] results = this.Invoke("verifySignedData", new object[] { VerifySignedDataRequest}); return ((VerifySignedDataResponse)(results[0])); } /// public void verifySignedDataAsync(VerifySignedDataRequest VerifySignedDataRequest) { this.verifySignedDataAsync(VerifySignedDataRequest, null); } /// public void verifySignedDataAsync(VerifySignedDataRequest VerifySignedDataRequest, object userState) { if ((this.verifySignedDataOperationCompleted == null)) { this.verifySignedDataOperationCompleted = new System.Threading.SendOrPostCallback(this.OnverifySignedDataOperationCompleted); } this.InvokeAsync("verifySignedData", new object[] { VerifySignedDataRequest}, this.verifySignedDataOperationCompleted, userState); } private void OnverifySignedDataOperationCompleted(object arg) { if ((this.verifySignedDataCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.verifySignedDataCompleted(this, new verifySignedDataCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.symantec.com/pkiservices/2011/11/sign/signDataOperations/noOpReque" + "st", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)] [return: System.Xml.Serialization.XmlElementAttribute("ToBeSignedClientPKCS7BlobType", Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public ToBeSignedClientPKCS7BlobType noOp([System.Xml.Serialization.XmlElementAttribute(Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] ToBeSignedPKCS7BlobType ToBeSignedPKCS7BlobType) { object[] results = this.Invoke("noOp", new object[] { ToBeSignedPKCS7BlobType}); return ((ToBeSignedClientPKCS7BlobType)(results[0])); } /// public void noOpAsync(ToBeSignedPKCS7BlobType ToBeSignedPKCS7BlobType) { this.noOpAsync(ToBeSignedPKCS7BlobType, null); } /// public void noOpAsync(ToBeSignedPKCS7BlobType ToBeSignedPKCS7BlobType, object userState) { if ((this.noOpOperationCompleted == null)) { this.noOpOperationCompleted = new System.Threading.SendOrPostCallback(this.OnnoOpOperationCompleted); } this.InvokeAsync("noOp", new object[] { ToBeSignedPKCS7BlobType}, this.noOpOperationCompleted, userState); } private void OnnoOpOperationCompleted(object arg) { if ((this.noOpCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.noOpCompleted(this, new noOpCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } private bool IsLocalFileSystemWebService(string url) { if (((url == null) || (url == string.Empty))) { return false; } System.Uri wsUri = new System.Uri(url); if (((wsUri.Port >= 1024) && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) { return true; } return false; } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public partial class PrepSignDataRequest { private string clientTransactionIDField; private SignDataInfoType signDataInfoField; private byte[] toBeSignDataField; private string versionField; /// public string clientTransactionID { get { return this.clientTransactionIDField; } set { this.clientTransactionIDField = value; } } /// public SignDataInfoType signDataInfo { get { return this.signDataInfoField; } set { this.signDataInfoField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] public byte[] toBeSignData { get { return this.toBeSignDataField; } set { this.toBeSignDataField = value; } } /// public string version { get { return this.versionField; } set { this.versionField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public partial class SignDataInfoType { private string descriptionField; private CertificateFilterType certificateFilterField; private HashAlgorithmType hashAlgorithmField; private string urlFilterField; /// public string description { get { return this.descriptionField; } set { this.descriptionField = value; } } /// public CertificateFilterType certificateFilter { get { return this.certificateFilterField; } set { this.certificateFilterField = value; } } /// public HashAlgorithmType hashAlgorithm { get { return this.hashAlgorithmField; } set { this.hashAlgorithmField = value; } } /// public string urlFilter { get { return this.urlFilterField; } set { this.urlFilterField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public partial class CertificateFilterType { private string[] profileIDFilterSetField; private UserFilterType[] userFilterSetField; /// [System.Xml.Serialization.XmlArrayItemAttribute("profileOID", IsNullable=false)] public string[] profileIDFilterSet { get { return this.profileIDFilterSetField; } set { this.profileIDFilterSetField = value; } } /// [System.Xml.Serialization.XmlArrayItemAttribute("userFilter", IsNullable=false)] public UserFilterType[] userFilterSet { get { return this.userFilterSetField; } set { this.userFilterSetField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public partial class UserFilterType { private UserAttributeNameType userAttributeNameField; private string userAttributeValueField; private bool ignoreCaseField; private bool ignoreCaseFieldSpecified; /// public UserAttributeNameType userAttributeName { get { return this.userAttributeNameField; } set { this.userAttributeNameField = value; } } /// public string userAttributeValue { get { return this.userAttributeValueField; } set { this.userAttributeValueField = value; } } /// public bool ignoreCase { get { return this.ignoreCaseField; } set { this.ignoreCaseField = value; } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] public bool ignoreCaseSpecified { get { return this.ignoreCaseFieldSpecified; } set { this.ignoreCaseFieldSpecified = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public enum UserAttributeNameType { /// CN, /// Email, /// UID, /// rfc822Name, /// UPN, /// DNSName, } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public enum HashAlgorithmType { /// sha512, } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public partial class PrepSignDataResponse { private string clientTransactionIDField; private string serverTransactionIDField; private byte[] pkcs7SignedBlobField; private string versionField; /// public string clientTransactionID { get { return this.clientTransactionIDField; } set { this.clientTransactionIDField = value; } } /// public string serverTransactionID { get { return this.serverTransactionIDField; } set { this.serverTransactionIDField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] public byte[] pkcs7SignedBlob { get { return this.pkcs7SignedBlobField; } set { this.pkcs7SignedBlobField = value; } } /// public string version { get { return this.versionField; } set { this.versionField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public partial class VerifySignedDataRequest { private string clientTransactionIDField; private byte[] clientPkcs7SignedBlobField; private string versionField; /// public string clientTransactionID { get { return this.clientTransactionIDField; } set { this.clientTransactionIDField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] public byte[] clientPkcs7SignedBlob { get { return this.clientPkcs7SignedBlobField; } set { this.clientPkcs7SignedBlobField = value; } } /// public string version { get { return this.versionField; } set { this.versionField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public partial class VerifySignedDataResponse { private string clientTransactionIDField; private string serverTransactionIDField; private StatusType statusField; private string versionField; /// public string clientTransactionID { get { return this.clientTransactionIDField; } set { this.clientTransactionIDField = value; } } /// public string serverTransactionID { get { return this.serverTransactionIDField; } set { this.serverTransactionIDField = value; } } /// public StatusType status { get { return this.statusField; } set { this.statusField = value; } } /// public string version { get { return this.versionField; } set { this.versionField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public enum StatusType { /// SUCCESS, } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public partial class ToBeSignedPKCS7BlobType { private SignDataInfoType signDataInfoField; private string organizationField; private string requestIdField; private byte[] hashValueField; private string versionField; /// public SignDataInfoType signDataInfo { get { return this.signDataInfoField; } set { this.signDataInfoField = value; } } /// public string organization { get { return this.organizationField; } set { this.organizationField = value; } } /// public string requestId { get { return this.requestIdField; } set { this.requestIdField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] public byte[] hashValue { get { return this.hashValueField; } set { this.hashValueField = value; } } /// public string version { get { return this.versionField; } set { this.versionField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34230")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://schemas.symantec.com/pkiservices/2011/11/sign")] public partial class ToBeSignedClientPKCS7BlobType { private byte[] pkcs7SignedBlobField; private byte[] toBeSignDataField; /// [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] public byte[] pkcs7SignedBlob { get { return this.pkcs7SignedBlobField; } set { this.pkcs7SignedBlobField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] public byte[] toBeSignData { get { return this.toBeSignDataField; } set { this.toBeSignDataField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.33440")] public delegate void prepSignDataCompletedEventHandler(object sender, prepSignDataCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.33440")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class prepSignDataCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal prepSignDataCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public PrepSignDataResponse Result { get { this.RaiseExceptionIfNecessary(); return ((PrepSignDataResponse)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.33440")] public delegate void verifySignedDataCompletedEventHandler(object sender, verifySignedDataCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.33440")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class verifySignedDataCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal verifySignedDataCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public VerifySignedDataResponse Result { get { this.RaiseExceptionIfNecessary(); return ((VerifySignedDataResponse)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.33440")] public delegate void noOpCompletedEventHandler(object sender, noOpCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.33440")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class noOpCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal noOpCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public ToBeSignedClientPKCS7BlobType Result { get { this.RaiseExceptionIfNecessary(); return ((ToBeSignedClientPKCS7BlobType)(this.results[0])); } } } } #pragma warning restore 1591