【发布时间】:2011-11-16 19:35:34
【问题描述】:
我实现了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 正在工作......
【问题讨论】:
-
感谢您回来提供答案 - 但是,请不要编辑您的问题以将其标记为“[已解决]”或包含答案。相反,回答自己问题的礼仪是将答案作为答案发布,而不是编辑问题。
标签: c# rest servicestack