Beispiel #1
0
        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);
        }
Beispiel #2
0
 public MobileCodeWSSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(MobileCodeWSSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Beispiel #3
0
 public MobileCodeWSSoapClient(EndpointConfiguration endpointConfiguration) :
     base(MobileCodeWSSoapClient.GetBindingForEndpoint(endpointConfiguration), MobileCodeWSSoapClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Beispiel #4
0
 public MobileCodeWSSoapClient() :
     base(MobileCodeWSSoapClient.GetDefaultBinding(), MobileCodeWSSoapClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.MobileCodeWSSoap.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Beispiel #5
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(MobileCodeWSSoapClient.GetEndpointAddress(EndpointConfiguration.MobileCodeWSSoap));
 }
Beispiel #6
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(MobileCodeWSSoapClient.GetBindingForEndpoint(EndpointConfiguration.MobileCodeWSSoap));
 }