I have the same problem that is listed in the following thread.
WSDL first WCF server where client does not send SOAPAction
I performed the steps that are li
You should use MessageBuffer.CreateMessage:
The body of a
Messageinstance can only be consumed or written once. If you wish to consume a Message instance more than once, you should use theMessageBufferclass to completely store an entireMessageinstance into memory.
http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.messagebuffer.aspx
Code from my current project:
public void AfterReceiveReply(ref System.ServiceModel.Channels.Message reply, object correlationState)
{
MessageBuffer buffer = reply.CreateBufferedCopy(Int32.MaxValue);
reply = buffer.CreateMessage();
Message m = buffer.CreateMessage();
LogMessage(m, " Response => ");
}
Add ref for Message param and return new message.
private Message CreateMessageCopy(ref Message message, XmlDictionaryReader body)
{
...
message = buffer.CreateMessage();