我已经实现了一个 ServiceStack 示例服务,就像在文档中一样 - github.com/ServiceStack/ServiceStack/wiki/Create-your-first-webservice
问题是,当我尝试调用它时,会出现以下错误:
"cannot convert from 'string' to 'ServiceStack.ServiceHost.IReturnVoid'"
和
The best overloaded method match for 'ServiceStack.ServiceClient.Web.ServiceClientBase.Get(ServiceStack.ServiceHost.IReturnVoid)' has some invalid arguments
我调用服务的代码:
var client = new JsonServiceClient("http://host:8080/");
HelloResponse response = client.Get(new Hello { Name = "World!" });
任何人都可以帮忙吗?谢谢。