//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.4927 // // 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 2.0.50727.4927. // #pragma warning disable 1591 namespace TestDealerService.WSDocumentGen { using System.Diagnostics; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Xml.Serialization; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="DocumentGenSoap", Namespace="http://tempuri.org/")] public partial class DocumentGen : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback GenCSVOperationCompleted; private bool useDefaultCredentialsSetExplicitly; /// public DocumentGen() { this.Url = global::TestDealerService.Properties.Settings.Default.TestDealerService_WSDocumentGen_DocumentGen; if ((this.IsLocalFileSystemWebService(this.Url) == true)) { this.UseDefaultCredentials = true; this.useDefaultCredentialsSetExplicitly = false; } else { this.useDefaultCredentialsSetExplicitly = true; } } 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 GenCSVCompletedEventHandler GenCSVCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GenCSV", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string GenCSV(bool showName, bool showBrand, bool showDescription, bool showCategory, bool showImageURL, bool showPrice, string priceNull, bool showAvailability, string availableNull) { object[] results = this.Invoke("GenCSV", new object[] { showName, showBrand, showDescription, showCategory, showImageURL, showPrice, priceNull, showAvailability, availableNull}); return ((string)(results[0])); } /// public void GenCSVAsync(bool showName, bool showBrand, bool showDescription, bool showCategory, bool showImageURL, bool showPrice, string priceNull, bool showAvailability, string availableNull) { this.GenCSVAsync(showName, showBrand, showDescription, showCategory, showImageURL, showPrice, priceNull, showAvailability, availableNull, null); } /// public void GenCSVAsync(bool showName, bool showBrand, bool showDescription, bool showCategory, bool showImageURL, bool showPrice, string priceNull, bool showAvailability, string availableNull, object userState) { if ((this.GenCSVOperationCompleted == null)) { this.GenCSVOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGenCSVOperationCompleted); } this.InvokeAsync("GenCSV", new object[] { showName, showBrand, showDescription, showCategory, showImageURL, showPrice, priceNull, showAvailability, availableNull}, this.GenCSVOperationCompleted, userState); } private void OnGenCSVOperationCompleted(object arg) { if ((this.GenCSVCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GenCSVCompleted(this, new GenCSVCompletedEventArgs(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.Web.Services", "2.0.50727.4927")] public delegate void GenCSVCompletedEventHandler(object sender, GenCSVCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GenCSVCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GenCSVCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } } #pragma warning restore 1591