[Mono-list] Wrong MessageVersion with NetTcpBinding and BasicHttpBinding

Cocai simionato.cristiano at gmail.com
Fri Jun 17 11:29:02 EDT 2011


In Mono 2.10.2 when using a the WCF binding NetTcpBinding and using the
MessageVersion retrieved by

var ver = OperationContext.Current.OutgoingMessageHeaders.MessageVersion;

it was throw the exception "Message version mismatch. Expected
Soap12(http://www.w3.org/2003/05/soap-envelope) Addressing10
(http://www.w3.org/2005/08/addressing) but was
System.ServiceModel.Channels.TcpDuplexSessionChannel+TcpDuplexSession."; in
fact ver is a System.ServiceModel.Channels.TcpDuplexSessionChannel.

Under .Net the same code return a the correct Soap12 message version.

If I use the BasicHttpBinding the exception is: "Message version mismatch.
Expected Soap11(http://schemas.xmlsoap.org/soap/envelope/) AddressingNone
(http://schemas.microsoft.com/ws/2005/05/addressing/none) but was
Soap12(http://www.w3.org/2003/05/soap-envelope) Addressing10
(http://www.w3.org/2005/08/addressing)."; in this case ver is a Soap12.

Under .Net the same code return a the correct Soap11 message version.

With Mono 2.10.1 all run correctly.

What is changed from Mono 2.10.2? Is there something new that I have to set?

Thanks.
Cristiano


--
View this message in context: http://mono.1490590.n4.nabble.com/Wrong-MessageVersion-with-NetTcpBinding-and-BasicHttpBinding-tp3605695p3605695.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list