protected void Page_Load(object sender, EventArgs e) { var tel = "13648075413"; ServiceReference1.MobileCodeWSSoapClient mbphone = new MobileCodeWSSoapClient(); var msg = mbphone.getMobileCodeInfo(tel, null); Response.Write(msg); }
public MobileCodeWSSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(MobileCodeWSSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public MobileCodeWSSoapClient(EndpointConfiguration endpointConfiguration) : base(MobileCodeWSSoapClient.GetBindingForEndpoint(endpointConfiguration), MobileCodeWSSoapClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public MobileCodeWSSoapClient() : base(MobileCodeWSSoapClient.GetDefaultBinding(), MobileCodeWSSoapClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.MobileCodeWSSoap.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(MobileCodeWSSoapClient.GetEndpointAddress(EndpointConfiguration.MobileCodeWSSoap)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(MobileCodeWSSoapClient.GetBindingForEndpoint(EndpointConfiguration.MobileCodeWSSoap)); }