public string sayHello(string firstName) { sayHelloRequest inValue = new sayHelloRequest(); inValue.firstName = firstName; sayHelloResponse retVal = ((Hello_PortType)(this)).sayHello(inValue); return(retVal.greeting); }
public async Task test([FromQuery] string value) { Hello_PortTypeClient client = new Hello_PortTypeClient(); Console.WriteLine($"Got value as {value}"); sayHelloResponse sayHelloResponse = await client.sayHelloAsync(value); Console.WriteLine($"Greeting recieved is {sayHelloResponse.greeting}"); }