[Mono-list] Wrong MessageVersion with NetTcpBinding and BasicHttpBinding

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Tue Jun 28 02:01:59 EDT 2011


Please provide a verifiable test case. We have general NetTcpBinding 
examples that are known to work.
https://github.com/mono/olive/tree/master/samples/wcf/tcp-transport

Atsushi Eno

(2011/06/18 0:29), Cocai wrote:
> 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.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>



More information about the Mono-list mailing list