// // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. // //------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.4952 // // 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.3038. // namespace net.webservicex.www { using System.Xml.Serialization; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Diagnostics; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="SendSMSWorldSoap", Namespace="http://www.webserviceX.NET")] public partial class SendSMSWorld : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback sendSMSOperationCompleted; /// public SendSMSWorld() { this.Url = "http://www.webservicex.net/sendsmsworld.asmx"; } /// public event sendSMSCompletedEventHandler sendSMSCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.webserviceX.NET/sendSMS", RequestNamespace="http://www.webserviceX.NET", ResponseNamespace="http://www.webserviceX.NET", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string sendSMS(string FromEmailAddress, string CountryCode, string MobileNumber, string Message) { object[] results = this.Invoke("sendSMS", new object[] { FromEmailAddress, CountryCode, MobileNumber, Message}); return ((string)(results[0])); } /// public System.IAsyncResult BeginsendSMS(string FromEmailAddress, string CountryCode, string MobileNumber, string Message, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("sendSMS", new object[] { FromEmailAddress, CountryCode, MobileNumber, Message}, callback, asyncState); } /// public string EndsendSMS(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } /// public void sendSMSAsync(string FromEmailAddress, string CountryCode, string MobileNumber, string Message) { this.sendSMSAsync(FromEmailAddress, CountryCode, MobileNumber, Message, null); } /// public void sendSMSAsync(string FromEmailAddress, string CountryCode, string MobileNumber, string Message, object userState) { if ((this.sendSMSOperationCompleted == null)) { this.sendSMSOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsendSMSOperationCompleted); } this.InvokeAsync("sendSMS", new object[] { FromEmailAddress, CountryCode, MobileNumber, Message}, this.sendSMSOperationCompleted, userState); } private void OnsendSMSOperationCompleted(object arg) { if ((this.sendSMSCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.sendSMSCompleted(this, new sendSMSCompletedEventArgs(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.3038")] public delegate void sendSMSCompletedEventHandler(object sender, sendSMSCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class sendSMSCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal sendSMSCompletedEventArgs(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])); } } } }