Show / Hide Table of Contents

    Class SoapDispatchMessageFormatter

    Defines methods that deserialize request SOAP messages and serialize response SOAP messages in a service application.

    Inheritance
    System.Object
    SoapDispatchMessageFormatter
    Implements
    IDispatchMessageFormatter
    Namespace: Copper.Common
    Assembly: Copper.Common.dll
    Syntax
    public class SoapDispatchMessageFormatter : IDispatchMessageFormatter

    Methods

    View Source

    DeserializeRequest(IEnumerable<Type>, String)

    Deserializes a SOAP message into a RequestInfo.

    Declaration
    public RequestInfo DeserializeRequest(IEnumerable<Type> contractTypes, string message)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Type> contractTypes

    The service contract types.

    System.String message

    The SOAP message.

    Returns
    Type Description
    RequestInfo

    A RequestInfo based on the message.

    View Source

    DeserializeRequest<TContract>(String)

    Deserializes a SOAP message into a RequestInfo.

    Declaration
    public RequestInfo DeserializeRequest<TContract>(string message)
    Parameters
    Type Name Description
    System.String message

    The SOAP message.

    Returns
    Type Description
    RequestInfo

    A RequestInfo based on the SOAP message.

    Type Parameters
    Name Description
    TContract

    The service contract type.

    View Source

    SerializeReply(MethodInfo, Object)

    Serializes a reply SOAP message from method information and a return value.

    Declaration
    public string SerializeReply(MethodInfo methodInfo, object result)
    Parameters
    Type Name Description
    System.Reflection.MethodInfo methodInfo

    The method information.

    System.Object result

    The return value.

    Returns
    Type Description
    System.String

    The serialized reply SOAP message.

    Implements

    IDispatchMessageFormatter
    • View Source
    Back to top Generated by DocFX