Class SoapClientMessageFormatter
Controls the conversion of SOAP messages into objects and objects into SOAP messages for client applications.
Inheritance
Implements
Namespace: Copper.Common
Assembly: Copper.Common.dll
Syntax
public sealed class SoapClientMessageFormatter : IClientMessageFormatter
Methods
View SourceDeserializeReply(Type, MethodInfo, String)
Converts a SOAP message into a return value and out parameters that are passed back to the calling operation.
Declaration
public object DeserializeReply(Type contractType, MethodInfo methodInfo, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | contractType | The type of the service contract. |
| System.Reflection.MethodInfo | methodInfo | The method information of the operation. |
| System.String | message | The inbound SOAP message. |
Returns
| Type | Description |
|---|---|
| System.Object | The return value of the operation. |
DeserializeReply<TContract>(MethodInfo, String)
Converts a SOAP message into a return value and out parameters that are passed back to the calling operation.
Declaration
public object DeserializeReply<TContract>(MethodInfo methodInfo, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.MethodInfo | methodInfo | The method information of the operation. |
| System.String | message | The inbound SOAP message. |
Returns
| Type | Description |
|---|---|
| System.Object | The return value of the operation. |
Type Parameters
| Name | Description |
|---|---|
| TContract | The type of the service contract. |
SerializeRequest(Type, MethodInfo, Object[])
Converts an System.Object array into an outbound SOAP message.
Declaration
public string SerializeRequest(Type contractType, MethodInfo methodInfo, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | contractType | Type of the service contract. |
| System.Reflection.MethodInfo | methodInfo | The method information of the operation. |
| System.Object[] | parameters | The parameters passed to the client operation. |
Returns
| Type | Description |
|---|---|
| System.String | The SOAP message to be sent to the service operation. |