我实现了ServiceStack Hello World,一切都很好,除了一件重要的事情。它的 SOAP11 和 SOAP12 以及 WSDL 也不起作用。当访问 SOAP11 或 SOAP12 的 url http://localhost:8082/SOAP11/时,它说:
{
"ResponseStatus":{
"ErrorCode":"NotImplementedException",
"Message":"The method or operation is not implemented.",
"StackTrace":" at ServiceStack.WebHost.Endpoints.Support.EndpointHandlerBase.ProcessRequest(IHttpRequest httpReq, IHttpResponse httpRes, String operationName) in C:\\src\\ServiceStack\\src\\ServiceStack\\WebHost.EndPoints\\Support\\EndpointHandlerBase.cs:line 52\n at ServiceStack.WebHost.Endpoints.AppHostHttpListenerBase.ProcessRequest(HttpListenerContext context) in C:\\src\\ServiceStack\\src\\ServiceStack\\WebHost.EndPoints\\AppHostHttpListenerBase.cs:line 57\n at ServiceStack.WebHost.Endpoints.Support.HttpListenerBase.ListenerCallback(IAsyncResult asyncResult) in C:\\src\\ServiceStack\\src\\ServiceStack\\WebHost.EndPoints\\Support\\HttpListenerBase.cs:line 197"
}
}
我通过控制台主机实现了它。我的控制台主机类:
public class AppHost
: AppHostHttpListenerBase
{
public AppHost() //Tell ServiceStack the name and where to find your web services
: base("ServiceStack Examples", typeof(InventoryREST.Hello).Assembly) { }
public override void Configure(Funq.Container container)
{
}
}
当我想通过 WSDL 访问它时,它什么也没有显示,只是空白页和 cpu 正在工作......