Class SoapDispatchMessageFormatter
Defines methods that deserialize request SOAP messages and serialize response SOAP messages in a service application.
Inheritance
System.Object
SoapDispatchMessageFormatter
Implements
Namespace: Copper.Common
Assembly: Copper.Common.dll
Syntax
public class SoapDispatchMessageFormatter : IDispatchMessageFormatter
Methods
View SourceDeserializeRequest(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. |
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. |
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. |