// Copyright (c) 2012, Outercurve Foundation. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // - Redistributions of source code must retain the above copyright notice, this // list of conditions and the following disclaimer. // // - Redistributions in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // // - Neither the name of the Outercurve Foundation nor the names of its // contributors may be used to endorse or promote products derived from this // software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR // ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.42 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // // This source code was auto-generated by wsdl, Version=2.0.50727.42. // namespace WebsitePanel.EnterpriseServer { using System.Diagnostics; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Xml.Serialization; using WebsitePanel.Providers; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name = "esImportSoap", Namespace = "http://smbsaas/websitepanel/enterpriseserver")] public partial class esImport : Microsoft.Web.Services3.WebServicesClientProtocol { private System.Threading.SendOrPostCallback GetImportableItemTypesOperationCompleted; private System.Threading.SendOrPostCallback GetImportableItemsOperationCompleted; private System.Threading.SendOrPostCallback ImportItemsOperationCompleted; /// public esImport() { this.Url = "http://localhost/EnterpriseServer/esImport.asmx"; } /// public event GetImportableItemTypesCompletedEventHandler GetImportableItemTypesCompleted; /// public event GetImportableItemsCompletedEventHandler GetImportableItemsCompleted; /// public event ImportItemsCompletedEventHandler ImportItemsCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetImportableItemTypes", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public ServiceProviderItemType[] GetImportableItemTypes(int packageId) { object[] results = this.Invoke("GetImportableItemTypes", new object[] { packageId}); return ((ServiceProviderItemType[])(results[0])); } /// public System.IAsyncResult BeginGetImportableItemTypes(int packageId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetImportableItemTypes", new object[] { packageId}, callback, asyncState); } /// public ServiceProviderItemType[] EndGetImportableItemTypes(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ServiceProviderItemType[])(results[0])); } /// public void GetImportableItemTypesAsync(int packageId) { this.GetImportableItemTypesAsync(packageId, null); } /// public void GetImportableItemTypesAsync(int packageId, object userState) { if ((this.GetImportableItemTypesOperationCompleted == null)) { this.GetImportableItemTypesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetImportableItemTypesOperationCompleted); } this.InvokeAsync("GetImportableItemTypes", new object[] { packageId}, this.GetImportableItemTypesOperationCompleted, userState); } private void OnGetImportableItemTypesOperationCompleted(object arg) { if ((this.GetImportableItemTypesCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetImportableItemTypesCompleted(this, new GetImportableItemTypesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetImportableItems", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string[] GetImportableItems(int packageId, int itemTypeId) { object[] results = this.Invoke("GetImportableItems", new object[] { packageId, itemTypeId}); return ((string[])(results[0])); } /// public System.IAsyncResult BeginGetImportableItems(int packageId, int itemTypeId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetImportableItems", new object[] { packageId, itemTypeId}, callback, asyncState); } /// public string[] EndGetImportableItems(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } /// public void GetImportableItemsAsync(int packageId, int itemTypeId) { this.GetImportableItemsAsync(packageId, itemTypeId, null); } /// public void GetImportableItemsAsync(int packageId, int itemTypeId, object userState) { if ((this.GetImportableItemsOperationCompleted == null)) { this.GetImportableItemsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetImportableItemsOperationCompleted); } this.InvokeAsync("GetImportableItems", new object[] { packageId, itemTypeId}, this.GetImportableItemsOperationCompleted, userState); } private void OnGetImportableItemsOperationCompleted(object arg) { if ((this.GetImportableItemsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetImportableItemsCompleted(this, new GetImportableItemsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/ImportItems", RequestNamespace = "http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace = "http://smbsaas/websitepanel/enterpriseserver", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public int ImportItems(bool async, string taskId, int packageId, string[] items) { object[] results = this.Invoke("ImportItems", new object[] { async, taskId, packageId, items}); return ((int)(results[0])); } /// public System.IAsyncResult BeginImportItems(bool async, string taskId, int packageId, string[] items, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("ImportItems", new object[] { async, taskId, packageId, items}, callback, asyncState); } /// public int EndImportItems(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } /// public void ImportItemsAsync(bool async, string taskId, int packageId, string[] items) { this.ImportItemsAsync(async, taskId, packageId, items, null); } /// public void ImportItemsAsync(bool async, string taskId, int packageId, string[] items, object userState) { if ((this.ImportItemsOperationCompleted == null)) { this.ImportItemsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnImportItemsOperationCompleted); } this.InvokeAsync("ImportItems", new object[] { async, taskId, packageId, items}, this.ImportItemsOperationCompleted, userState); } private void OnImportItemsOperationCompleted(object arg) { if ((this.ImportItemsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ImportItemsCompleted(this, new ImportItemsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetImportableItemTypesCompletedEventHandler(object sender, GetImportableItemTypesCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetImportableItemTypesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetImportableItemTypesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public ServiceProviderItemType[] Result { get { this.RaiseExceptionIfNecessary(); return ((ServiceProviderItemType[])(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetImportableItemsCompletedEventHandler(object sender, GetImportableItemsCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetImportableItemsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetImportableItemsCompletedEventArgs(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])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void ImportItemsCompletedEventHandler(object sender, ImportItemsCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class ImportItemsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal ImportItemsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public int Result { get { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } }