public AtiehSMSProvider(ISMSConfiguration config) { Config = config; serviceClient = new JaxRpcMessagingServiceClient(); serviceClient.Endpoint.Address = new EndpointAddress( string.Format("http://{0}/services/MessagingService?wsdl", Config.Address)); }
private static async Task Main(string[] args) { var x = new System.Xml.Serialization.XmlSerializer(typeof(MyClass)); var client = new JaxRpcMessagingServiceClient(); var response = await client.sendAsync("username", "password", "", new[] { "98999999999" }, null, null, new[] { "98999999999" }, 1, 2, true, DateTime.Now, "This is a test messsage"); Console.WriteLine($"Result: {response.sendReturn.status} - {response.sendReturn.id}"); Console.Read(); }
public JaxRpcMessagingServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(JaxRpcMessagingServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public JaxRpcMessagingServiceClient(EndpointConfiguration endpointConfiguration) : base(JaxRpcMessagingServiceClient.GetBindingForEndpoint(endpointConfiguration), JaxRpcMessagingServiceClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public JaxRpcMessagingServiceClient() : base(JaxRpcMessagingServiceClient.GetDefaultBinding(), JaxRpcMessagingServiceClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.MessagingService.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(JaxRpcMessagingServiceClient.GetEndpointAddress(EndpointConfiguration.MessagingService)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(JaxRpcMessagingServiceClient.GetBindingForEndpoint(EndpointConfiguration.MessagingService)); }