static void Main(string[] args) { // Use Custom binding Soap11AddressingBinding to connect to an MF server with ProtocolVersion10. // urn:uuid:f4c30207-c2cb-493c-8a44-776c1e0ecc7e is the ServiceID auto generated for IServiceHelloWCF service while(!FindService()) { Console.WriteLine("IServiceHelloWCF service not found. Trying again..."); System.Threading.Thread.Sleep(1000); } ServiceHelloWCFClient client = new ServiceHelloWCFClient("DefaultBinding_IServiceHelloWCF_IServiceHelloWCF", serviceAddress.AbsoluteUri); string resp = client.HelloWCF("World"); Console.WriteLine(resp); System.Diagnostics.Debug.Print("\n\n***********"); System.Diagnostics.Debug.Print(resp); System.Diagnostics.Debug.Print("***********\n\n"); Console.WriteLine(); Console.WriteLine("Press any key to exit"); Console.Read(); }
static void Main(string[] args) { // Use Custom binding Soap11AddressingBinding to connect to an MF server with ProtocolVersion10. // urn:uuid:f4c30207-c2cb-493c-8a44-776c1e0ecc7e is the ServiceID auto generated for IServiceHelloWCF service while (!FindService()) { Console.WriteLine("IServiceHelloWCF service not found. Trying again..."); System.Threading.Thread.Sleep(1000); } ServiceHelloWCFClient client = new ServiceHelloWCFClient("DefaultBinding_IServiceHelloWCF_IServiceHelloWCF", serviceAddress.AbsoluteUri); string resp = client.HelloWCF("World"); Console.WriteLine(resp); System.Diagnostics.Debug.Print("\n\n***********"); System.Diagnostics.Debug.Print(resp); System.Diagnostics.Debug.Print("***********\n\n"); Console.WriteLine(); Console.WriteLine("Press any key to exit"); Console.Read(); }