Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     using (localhost.HelloIndigoServiceClient soap12proxy = new InternetClient.localhost.HelloIndigoServiceClient("WSHttpBinding_IHelloIndigoService"))
     {
         soap12proxy.ClientCredentials.UserName.UserName = "******";
         soap12proxy.ClientCredentials.UserName.Password = "******";
         string s = soap12proxy.HelloIndigo("Soap 1.2 endpoint using WSHttpBinding.");
         MessageBox.Show(s);
     }
 }
Beispiel #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     using (localhost.HelloIndigoServiceClient soap11proxy = new InternetClient.localhost.HelloIndigoServiceClient("BasicHttpBinding_IHelloIndigoService"))
     {
         soap11proxy.ClientCredentials.UserName.UserName = "******";
         soap11proxy.ClientCredentials.UserName.Password = "******";
         string s = soap11proxy.HelloIndigo("Soap 1.1 endpoint using BasicHttpBinding.");
         MessageBox.Show(s);
     }
 }