SoapHandler
Assembly: ServiceStack.dll
View Source
Declaration
public abstract class SoapHandler : ServiceStackHandlerBase, IHttpAsyncHandler, IHttpHandler, IServiceStackHandler, IOneWay, ISyncReply
Inherited Properties
HandlerAttributes
View Source
Declaration
public RequestAttributes HandlerAttributes { get; set; }
IsReusable
View Source
Declaration
public override bool IsReusable { get; }
Methods
IOneWay.SendOneWay(Message)
View Source
Declaration
void IOneWay.SendOneWay(Message requestMsg)
Parameters
Type | Name |
---|---|
System.ServiceModel.Channels.Message | requestMsg |
SendOneWay(Message, IRequest, IResponse)
View Source
Declaration
protected Task SendOneWay(Message requestMsg, IRequest httpRequest, IResponse httpResponse)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.ServiceModel.Channels.Message | requestMsg |
ServiceStack.Web.IRequest | httpRequest |
ServiceStack.Web.IResponse | httpResponse |
ISyncReply.Send(Message)
View Source
Declaration
Message ISyncReply.Send(Message requestMsg)
Returns
System.ServiceModel.Channels.Message
Parameters
Type | Name |
---|---|
System.ServiceModel.Channels.Message | requestMsg |
GetRequestMessageFromStream(Stream)
View Source
Declaration
protected abstract Message GetRequestMessageFromStream(Stream requestStream)
Returns
System.ServiceModel.Channels.Message
Parameters
Type | Name |
---|---|
System.IO.Stream | requestStream |
Send(Message, IRequest, IResponse)
View Source
Declaration
protected Task<Message> Send(Message requestMsg, IRequest httpRequest, IResponse httpResponse)
Returns
System.Threading.Tasks.Task<System.ServiceModel.Channels.Message>
Parameters
Type | Name |
---|---|
System.ServiceModel.Channels.Message | requestMsg |
ServiceStack.Web.IRequest | httpRequest |
ServiceStack.Web.IResponse | httpResponse |
EmptyResponse(Message, Type)
View Source
Declaration
public Message EmptyResponse(Message requestMsg, Type requestType)
Returns
System.ServiceModel.Channels.Message
Parameters
Type | Name |
---|---|
System.ServiceModel.Channels.Message | requestMsg |
System.Type | requestType |
ExecuteMessage(Message, RequestAttributes, IRequest, IResponse)
View Source
Declaration
protected async Task<Message> ExecuteMessage(Message message, RequestAttributes requestAttributes, IRequest httpReq, IResponse httpRes)
Returns
System.Threading.Tasks.Task<System.ServiceModel.Channels.Message>
Parameters
Type | Name |
---|---|
System.ServiceModel.Channels.Message | message |
ServiceStack.RequestAttributes | requestAttributes |
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
GetAction(Message)
View Source
Declaration
public static string GetAction(Message message)
Returns
System.String
Parameters
Type | Name |
---|---|
System.ServiceModel.Channels.Message | message |
CreateResponseMessage(Object, MessageVersion, Type, Boolean)
View Source
Declaration
public static Message CreateResponseMessage(object response, MessageVersion msgVersion, Type requestType, bool noMsgAction)
Returns
System.ServiceModel.Channels.Message
Parameters
Type | Name |
---|---|
System.Object | response |
System.ServiceModel.Channels.MessageVersion | msgVersion |
System.Type | requestType |
System.Boolean | noMsgAction |
SerializeSoap11ToBytes(IRequest, Object)
View Source
Declaration
public static byte[] SerializeSoap11ToBytes(IRequest req, object response)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | response |
SerializeSoap12ToBytes(IRequest, Object)
View Source
Declaration
public static byte[] SerializeSoap12ToBytes(IRequest req, object response)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | response |
SerializeSoap11ToStream(IRequest, Object, Stream)
View Source
Declaration
public static void SerializeSoap11ToStream(IRequest req, object response, Stream stream)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | response |
System.IO.Stream | stream |
SerializeSoap12ToStream(IRequest, Object, Stream)
View Source
Declaration
public static void SerializeSoap12ToStream(IRequest req, object response, Stream stream)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | response |
System.IO.Stream | stream |
GetSoap12RequestMessage(Stream)
View Source
Declaration
protected static Message GetSoap12RequestMessage(Stream inputStream)
Returns
System.ServiceModel.Channels.Message
Parameters
Type | Name |
---|---|
System.IO.Stream | inputStream |
GetSoap11RequestMessage(Stream)
View Source
Declaration
protected static Message GetSoap11RequestMessage(Stream inputStream)
Returns
System.ServiceModel.Channels.Message
Parameters
Type | Name |
---|---|
System.IO.Stream | inputStream |
GetRequestMessage(Stream, MessageVersion)
View Source
Declaration
protected static Message GetRequestMessage(Stream inputStream, MessageVersion msgVersion)
Returns
System.ServiceModel.Channels.Message
Parameters
Type | Name |
---|---|
System.IO.Stream | inputStream |
System.ServiceModel.Channels.MessageVersion | msgVersion |
GetRequestType(Message, String)
View Source
Declaration
protected Type GetRequestType(Message requestMsg, string xml)
Returns
System.Type
Parameters
Type | Name |
---|---|
System.ServiceModel.Channels.Message | requestMsg |
System.String | xml |
GetAction(Message, String)
View Source
Declaration
protected string GetAction(Message requestMsg, string xml)
Returns
System.String
Parameters
Type | Name |
---|---|
System.ServiceModel.Channels.Message | requestMsg |
System.String | xml |
GetActionFromHttpContext()
View Source
Declaration
protected static string GetActionFromHttpContext()
Returns
System.String
GetSoapContentType(String)
View Source
Declaration
public string GetSoapContentType(string contentType)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | contentType |
Inherited Methods
AssertAccess(IHttpRequest, IHttpResponse, Feature, String)
View Source
Declaration
protected bool AssertAccess(IHttpRequest httpReq, IHttpResponse httpRes, Feature feature, string operationName)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Web.IHttpRequest | httpReq |
ServiceStack.Web.IHttpResponse | httpRes |
ServiceStack.Feature | feature |
System.String | operationName |
AssertOperationExists(String, Type)
View Source
Declaration
protected static void AssertOperationExists(string operationName, Type type)
Parameters
Type | Name |
---|---|
System.String | operationName |
System.Type | type |
CreateContentTypeRequestAsync(IRequest, Type, String)
View Source
Declaration
protected static async Task<object> CreateContentTypeRequestAsync(IRequest httpReq, Type requestType, string contentType)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
System.Type | requestType |
System.String | contentType |
DeserializeHttpRequestAsync(Type, IRequest, String)
View Source
Declaration
public static Task<object> DeserializeHttpRequestAsync(Type operationType, IRequest httpReq, string contentType)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
System.Type | operationType |
ServiceStack.Web.IRequest | httpReq |
System.String | contentType |
ExecuteService(Object, IRequest)
View Source
Declaration
protected static object ExecuteService(object request, IRequest httpReq)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | request |
ServiceStack.Web.IRequest | httpReq |
GetCustomRequestFromBinder(IRequest, Type)
View Source
Declaration
protected static object GetCustomRequestFromBinder(IRequest httpReq, Type requestType)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
System.Type | requestType |
GetOperationType(String)
View Source
Declaration
public static Type GetOperationType(string operationName)
Returns
System.Type
Parameters
Type | Name |
---|---|
System.String | operationName |
GetResponseAsync(IRequest, Object)
View Source
Declaration
public virtual Task<object> GetResponseAsync(IRequest httpReq, object request)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
System.Object | request |
HandleResponse(IRequest, IResponse, Object)
View Source
Declaration
public async Task HandleResponse(IRequest httpReq, IResponse httpRes, object response)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
ServiceStack.Web.IResponse | httpRes |
System.Object | response |
UpdateResponseContentType(IRequest, Object)
View Source
Declaration
public void UpdateResponseContentType(IRequest httpReq, object response)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
System.Object | response |
WriteDebugResponse(IResponse, Object)
View Source
Declaration
public Task WriteDebugResponse(IResponse httpRes, object response)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IResponse | httpRes |
System.Object | response |
Implements
System.Web.IHttpAsyncHandler
System.Web.IHttpHandler
- ServiceStack.Host.Handlers.IServiceStackHandler
- ServiceStack.IOneWay
- ServiceStack.ISyncReply