问题描述
我实现,每一件事情是确定的,但一个重要的事情。
的
SOAP11和SOAP12也WSDL无法正常工作。
访问时,URL :
I implemented ServiceStack Hello World ,every thing is ok,except one important thing.itsSOAP11 and SOAP12 and also WSDL not working.when accessing url http://localhost:8082/SOAP11/ for SOAP11 or SOAP12 it says :
{
"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"
}
}
我通过控制台主机实现了它。
我的控制台主机类:
I implemented it via console host.my console host class :
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的工作......
and when I want to access it via WSDL , it shows nothing,just blank page and cpu is working ...
推荐答案
上的HttpListener主机托管时(即在一个独立的控制台)SOAP端点不可用。
SOAP endpoints are not available when hosted on a HttpListener Host (i.e. in a stand-alone Console).
您需要将其托管在ASP.NET主机查看XSD的和WSDL。
You will need to host it in an ASP.NET host to view the XSD's and WSDLs.
这篇关于服务栈(REST)SOAP和WSDL不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!