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. |
contractType | The type of the service contract. |
System. |
methodInfo | The method information of the operation. |
System. |
message | The inbound SOAP message. |
Returns
Type | Description |
---|---|
System. |
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. |
methodInfo | The method information of the operation. |
System. |
message | The inbound SOAP message. |
Returns
Type | Description |
---|---|
System. |
The return value of the operation. |
Type Parameters
Name | Description |
---|---|
TContract | The type of the service contract. |
SerializeRequest(Type, MethodInfo, Object[])
Converts an System.
Declaration
public string SerializeRequest(Type contractType, MethodInfo methodInfo, params object[] parameters)
Parameters
Type | Name | Description |
---|---|---|
System. |
contractType | Type of the service contract. |
System. |
methodInfo | The method information of the operation. |
System. |
parameters | The parameters passed to the client operation. |
Returns
Type | Description |
---|---|
System. |
The SOAP message to be sent to the service operation. |