Need some help figuring this one out. I need to create a service that based on selected MessageVersion, creates an appropriate binding. Currently, I am only trying to test sending of a Soap11 message, problem is I keep getting the following Exception message and would appreciate some help with it.
The message version of the outgoing message (Soap11 (http://schemas.xmlsoap.org/soap/envelope/) AddressingNone <br/>(http://schemas.microsoft.com/ws/2005/05/addressing/none)) does not match that of the encoder <br/><br/>(Soap12 (http://www.w3.org/2003/05/soap-envelope) Addressing10 (http://www.w3.org/2005/08/addressing)).<br/> Make sure the binding is configured with the same version as the message.
StackTrace = " at System.ServiceModel.Channels.MessageEncoder.ThrowIfMismatchedMessageVersion<br/>(Message message)\r\n at System.ServiceModel.Channels.MtomMessageEncoder.WriteMessage<br/>(Message message, Int32 maxMessageSize, BufferManager bufferManager, Int32 messageOffset...
The code below is what I have
CustomBinding basicbinding = new CustomBinding();
View Complete Post