using SmsProviders.New019SMS;
public static void Main()
var api = new SmsProviders.New019SMS.SMSServicePortTypeClient();
var SMS_Telzar019_Username = "31423";
var SMS_Telzar019_Password = "1234";
string[] phone = new string[]{"0523961883"};
Phone[] phoneNumbers = new Phone[]
new Phone() { phone = 0523961883 },
var resp = api.sendSms(SMS_Telzar019_Username, SMS_Telzar019_Password, new SmsProviders.New019SMS.Sms{
destinations = phoneNumbers,
Console.WriteLine("Empty response");
Console.WriteLine("Response: " + resp.message);
Console.WriteLine("Status: " + resp.status);
namespace SmsProviders.New019SMS
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.ServiceModel.ServiceContractAttribute(Namespace="https://019sms.co.il/soap", ConfigurationName="SmsProviders.New019SMS.SMSServicePortType")]
public interface SMSServicePortType
[System.ServiceModel.OperationContractAttribute(Action="sendSms", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true)]
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
SmsProviders.New019SMS.Response sendSms(string username, string password, SmsProviders.New019SMS.Sms sms);
[System.ServiceModel.OperationContractAttribute(Action="sendSms", ReplyAction="*")]
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
System.Threading.Tasks.Task<SmsProviders.New019SMS.Response> sendSmsAsync(string username, string password, SmsProviders.New019SMS.Sms sms);
[System.ServiceModel.OperationContractAttribute(Action="sendBulkSms", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
SmsProviders.New019SMS.sendBulkSmsResponse sendBulkSms(SmsProviders.New019SMS.sendBulkSmsRequest request);
[System.ServiceModel.OperationContractAttribute(Action="sendBulkSms", ReplyAction="*")]
System.Threading.Tasks.Task<SmsProviders.New019SMS.sendBulkSmsResponse> sendBulkSmsAsync(SmsProviders.New019SMS.sendBulkSmsRequest request);
[System.ServiceModel.OperationContractAttribute(Action="getDlrReport", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true)]
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
SmsProviders.New019SMS.DlrResponse getDlrReport(string username, string password, SmsProviders.New019SMS.DlrRequest dlrRequest);
[System.ServiceModel.OperationContractAttribute(Action="getDlrReport", ReplyAction="*")]
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
System.Threading.Tasks.Task<SmsProviders.New019SMS.DlrResponse> getDlrReportAsync(string username, string password, SmsProviders.New019SMS.DlrRequest dlrRequest);
[System.ServiceModel.OperationContractAttribute(Action="verify_phone", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
SmsProviders.New019SMS.verify_phoneResponse verify_phone(SmsProviders.New019SMS.verify_phoneRequest request);
[System.ServiceModel.OperationContractAttribute(Action="verify_phone", ReplyAction="*")]
System.Threading.Tasks.Task<SmsProviders.New019SMS.verify_phoneResponse> verify_phoneAsync(SmsProviders.New019SMS.verify_phoneRequest request);
[System.ServiceModel.OperationContractAttribute(Action="getApiToken", ReplyAction="*")]
[System.ServiceModel.XmlSerializerFormatAttribute(Style=System.ServiceModel.OperationFormatStyle.Rpc, SupportFaults=true)]
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
SmsProviders.New019SMS.TokenResponse getApiToken(string username, string password, SmsProviders.New019SMS.TokenRequest tokenRequest);
[System.ServiceModel.OperationContractAttribute(Action="getApiToken", ReplyAction="*")]
[return: System.ServiceModel.MessageParameterAttribute(Name="return")]
System.Threading.Tasks.Task<SmsProviders.New019SMS.TokenResponse> getApiTokenAsync(string username, string password, SmsProviders.New019SMS.TokenRequest tokenRequest);
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="https://019sms.co.il/soap")]
private Phone[] destinationsField;
private string messageField;
private string sourceField;
private string timingField;
private bool add_dynamicField;
private bool add_dynamicFieldSpecified;
private string add_unsubscribeField;
[System.Xml.Serialization.XmlElementAttribute("destinations", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
public Phone[] destinations
return this.destinationsField;
this.destinationsField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
return this.messageField;
this.messageField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=2)]
this.sourceField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=3)]
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=4)]
this.timingField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=5)]
return this.add_dynamicField;
this.add_dynamicField = value;
[System.Xml.Serialization.XmlIgnoreAttribute()]
public bool add_dynamicSpecified
return this.add_dynamicFieldSpecified;
this.add_dynamicFieldSpecified = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=6)]
public string add_unsubscribe
return this.add_unsubscribeField;
this.add_unsubscribeField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="https://019sms.co.il/soap")]
public partial class Phone
private string cl_idField;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="https://019sms.co.il/soap")]
public partial class TokenResponse
private string messageField;
private string expiration_dateField;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
this.statusField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
return this.messageField;
this.messageField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=2)]
public string expiration_date
return this.expiration_dateField;
this.expiration_dateField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="https://019sms.co.il/soap")]
public partial class TokenRequest
private string usernameField;
private string actionField;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
return this.usernameField;
this.usernameField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
this.actionField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="https://019sms.co.il/soap")]
private string sourceField;
private string phoneField;
private string statusField;
private string hemessageField;
private string enmessageField;
private string shipment_idField;
private string dateField;
private string operatorField;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
this.sourceField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
this.statusField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
return this.hemessageField;
this.hemessageField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
return this.enmessageField;
this.enmessageField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string shipment_id
return this.shipment_idField;
this.shipment_idField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
return this.operatorField;
this.operatorField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="https://019sms.co.il/soap")]
public partial class DlrResponse
private string messageField;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
this.statusField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
return this.messageField;
this.messageField = value;
[System.Xml.Serialization.XmlElementAttribute("dlrs", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=2)]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="https://019sms.co.il/soap")]
public partial class DlrRequest
private string[] idField;
private string fromField;
[System.Xml.Serialization.XmlElementAttribute("id", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=2)]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="https://019sms.co.il/soap")]
private Phone[] destinationsField;
private string messageField;
private string sourceField;
[System.Xml.Serialization.XmlElementAttribute("destinations", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
public Phone[] destinations
return this.destinationsField;
this.destinationsField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
return this.messageField;
this.messageField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=2)]
this.sourceField = value;
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="https://019sms.co.il/soap")]
public partial class Response
private string messageField;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
this.statusField = value;
[System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
return this.messageField;
this.messageField = value;
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="sendBulkSms", WrapperNamespace="https://019sms.co.il/soap", IsWrapped=true)]
public partial class sendBulkSmsRequest
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=0)]
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=1)]
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=2)]
[System.Xml.Serialization.XmlArrayAttribute()]
[System.Xml.Serialization.XmlArrayItemAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=false)]
public SmsProviders.New019SMS.sms[] sms;
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=3)]
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=4)]
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=5)]
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=6)]
public string add_unsubscribe;
public sendBulkSmsRequest()
public sendBulkSmsRequest(string username, string password, SmsProviders.New019SMS.sms[] sms, string tag, string timing, bool add_dynamic, string add_unsubscribe)
this.username = username;
this.password = password;
this.add_dynamic = add_dynamic;
this.add_unsubscribe = add_unsubscribe;
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="sendBulkSmsResponse", WrapperNamespace="https://019sms.co.il/soap", IsWrapped=true)]
public partial class sendBulkSmsResponse
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=0)]
public SmsProviders.New019SMS.Response @return;
public sendBulkSmsResponse()
public sendBulkSmsResponse(SmsProviders.New019SMS.Response @return)
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="verify_phone", WrapperNamespace="https://019sms.co.il/soap", IsWrapped=true)]
public partial class verify_phoneRequest
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=0)]
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=1)]
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=2)]
[System.Xml.Serialization.XmlArrayAttribute()]
[System.Xml.Serialization.XmlArrayItemAttribute("phone", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, DataType="integer", IsNullable=false)]
public verify_phoneRequest()
public verify_phoneRequest(string username, string password, string[] phones)
this.username = username;
this.password = password;
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="verify_phoneResponse", WrapperNamespace="https://019sms.co.il/soap", IsWrapped=true)]
public partial class verify_phoneResponse
[System.ServiceModel.MessageBodyMemberAttribute(Namespace="", Order=0)]
public SmsProviders.New019SMS.Response @return;
public verify_phoneResponse()
public verify_phoneResponse(SmsProviders.New019SMS.Response @return)
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
public interface SMSServicePortTypeChannel : SmsProviders.New019SMS.SMSServicePortType, System.ServiceModel.IClientChannel
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
public partial class SMSServicePortTypeClient : System.ServiceModel.ClientBase<SmsProviders.New019SMS.SMSServicePortType>, SmsProviders.New019SMS.SMSServicePortType
static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
public SMSServicePortTypeClient() :
base(SMSServicePortTypeClient.GetDefaultBinding(), SMSServicePortTypeClient.GetDefaultEndpointAddress())
this.Endpoint.Name = EndpointConfiguration.SMSServicePort.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
public SMSServicePortTypeClient(EndpointConfiguration endpointConfiguration) :
base(SMSServicePortTypeClient.GetBindingForEndpoint(endpointConfiguration), SMSServicePortTypeClient.GetEndpointAddress(endpointConfiguration))
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
public SMSServicePortTypeClient(EndpointConfiguration endpointConfiguration, string remoteAddress) :
base(SMSServicePortTypeClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
public SMSServicePortTypeClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
base(SMSServicePortTypeClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
this.Endpoint.Name = endpointConfiguration.ToString();
ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
public SMSServicePortTypeClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress)
public SmsProviders.New019SMS.Response sendSms(string username, string password, SmsProviders.New019SMS.Sms sms)
return base.Channel.sendSms(username, password, sms);
public System.Threading.Tasks.Task<SmsProviders.New019SMS.Response> sendSmsAsync(string username, string password, SmsProviders.New019SMS.Sms sms)
return base.Channel.sendSmsAsync(username, password, sms);
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
SmsProviders.New019SMS.sendBulkSmsResponse SmsProviders.New019SMS.SMSServicePortType.sendBulkSms(SmsProviders.New019SMS.sendBulkSmsRequest request)
return base.Channel.sendBulkSms(request);
public SmsProviders.New019SMS.Response sendBulkSms(string username, string password, SmsProviders.New019SMS.sms[] sms, string tag, string timing, bool add_dynamic, string add_unsubscribe)
SmsProviders.New019SMS.sendBulkSmsRequest inValue = new SmsProviders.New019SMS.sendBulkSmsRequest();
inValue.username = username;
inValue.password = password;
inValue.add_dynamic = add_dynamic;
inValue.add_unsubscribe = add_unsubscribe;
SmsProviders.New019SMS.sendBulkSmsResponse retVal = ((SmsProviders.New019SMS.SMSServicePortType)(this)).sendBulkSms(inValue);
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
System.Threading.Tasks.Task<SmsProviders.New019SMS.sendBulkSmsResponse> SmsProviders.New019SMS.SMSServicePortType.sendBulkSmsAsync(SmsProviders.New019SMS.sendBulkSmsRequest request)
return base.Channel.sendBulkSmsAsync(request);
public System.Threading.Tasks.Task<SmsProviders.New019SMS.sendBulkSmsResponse> sendBulkSmsAsync(string username, string password, SmsProviders.New019SMS.sms[] sms, string tag, string timing, bool add_dynamic, string add_unsubscribe)
SmsProviders.New019SMS.sendBulkSmsRequest inValue = new SmsProviders.New019SMS.sendBulkSmsRequest();
inValue.username = username;
inValue.password = password;
inValue.add_dynamic = add_dynamic;
inValue.add_unsubscribe = add_unsubscribe;
return ((SmsProviders.New019SMS.SMSServicePortType)(this)).sendBulkSmsAsync(inValue);
public SmsProviders.New019SMS.DlrResponse getDlrReport(string username, string password, SmsProviders.New019SMS.DlrRequest dlrRequest)
return base.Channel.getDlrReport(username, password, dlrRequest);
public System.Threading.Tasks.Task<SmsProviders.New019SMS.DlrResponse> getDlrReportAsync(string username, string password, SmsProviders.New019SMS.DlrRequest dlrRequest)
return base.Channel.getDlrReportAsync(username, password, dlrRequest);
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
SmsProviders.New019SMS.verify_phoneResponse SmsProviders.New019SMS.SMSServicePortType.verify_phone(SmsProviders.New019SMS.verify_phoneRequest request)
return base.Channel.verify_phone(request);
public SmsProviders.New019SMS.Response verify_phone(string username, string password, string[] phones)
SmsProviders.New019SMS.verify_phoneRequest inValue = new SmsProviders.New019SMS.verify_phoneRequest();
inValue.username = username;
inValue.password = password;
SmsProviders.New019SMS.verify_phoneResponse retVal = ((SmsProviders.New019SMS.SMSServicePortType)(this)).verify_phone(inValue);
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
System.Threading.Tasks.Task<SmsProviders.New019SMS.verify_phoneResponse> SmsProviders.New019SMS.SMSServicePortType.verify_phoneAsync(SmsProviders.New019SMS.verify_phoneRequest request)
return base.Channel.verify_phoneAsync(request);
public System.Threading.Tasks.Task<SmsProviders.New019SMS.verify_phoneResponse> verify_phoneAsync(string username, string password, string[] phones)
SmsProviders.New019SMS.verify_phoneRequest inValue = new SmsProviders.New019SMS.verify_phoneRequest();
inValue.username = username;
inValue.password = password;
return ((SmsProviders.New019SMS.SMSServicePortType)(this)).verify_phoneAsync(inValue);
public SmsProviders.New019SMS.TokenResponse getApiToken(string username, string password, SmsProviders.New019SMS.TokenRequest tokenRequest)
return base.Channel.getApiToken(username, password, tokenRequest);
public System.Threading.Tasks.Task<SmsProviders.New019SMS.TokenResponse> getApiTokenAsync(string username, string password, SmsProviders.New019SMS.TokenRequest tokenRequest)
return base.Channel.getApiTokenAsync(username, password, tokenRequest);
public virtual System.Threading.Tasks.Task OpenAsync()
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndOpen));
public virtual System.Threading.Tasks.Task CloseAsync()
return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action<System.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
if ((endpointConfiguration == EndpointConfiguration.SMSServicePort))
System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding();
result.MaxBufferSize = int.MaxValue;
result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max;
result.MaxReceivedMessageSize = int.MaxValue;
result.AllowCookies = true;
result.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport;
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
if ((endpointConfiguration == EndpointConfiguration.SMSServicePort))
return new System.ServiceModel.EndpointAddress("https://019sms.co.il/soap");
throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration));
private static System.ServiceModel.Channels.Binding GetDefaultBinding()
return SMSServicePortTypeClient.GetBindingForEndpoint(EndpointConfiguration.SMSServicePort);
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
return SMSServicePortTypeClient.GetEndpointAddress(EndpointConfiguration.SMSServicePort);
public enum EndpointConfiguration