Example #1
0
 public async Task <TestContract.HelloWorldResponseType> HelloWorldAsync(TestContract.HelloWorldRequestType request)
 {
     return(new TestContract.HelloWorldResponseType
     {
         Response = Environment.MachineName
     });
 }
Example #2
0
 public TestContract.HelloWorldResponseType HelloWorld(TestContract.HelloWorldRequestType request)
 {
     try
     {
         var client = helloyuzdClient.GetInstance();
         var re     = new TestContract.Yuzd.Client.HelloWorldRequestType();
         var rep    = client.HelloWorld(re);
         return(new TestContract.HelloWorldResponseType
         {
             Response = rep.Response
         });
     }
     catch (Exception ex)
     {
         return(new TestContract.HelloWorldResponseType
         {
             Response = ex.Message
         });
     }
 }