2
0
Эх сурвалжийг харах

throw on protocol version mismatch for 2.0 profile only

svn path=/trunk/mcs/; revision=74065
Konstantin Triger 19 жил өмнө
parent
commit
744002f16a

+ 5 - 0
mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog

@@ -1,3 +1,8 @@
+2007-03-11  Konstantin Triger <[email protected]>
+
+	* WebServiceHandlerFactory.cs: throw on protocol version mismatch
+		for 2.0 profile only.
+
 2007-03-11  Vladimir Krasnov  <[email protected]>
 
 	* TypeStubManager.cs: fixed BindingInfo.ctor, it does not takes Name

+ 5 - 4
mcs/class/System.Web.Services/System.Web.Services.Protocols/WebServiceHandlerFactory.cs

@@ -113,12 +113,13 @@ namespace System.Web.Services.Protocols
 			supported = WSConfig.IsSupported (protocol);
 			if (!supported) {
 				switch (protocol) {
-					case WSProtocol.HttpSoap12:
-					case WSProtocol.HttpSoap:
-						bool anySupported = WSConfig.IsSupported (WSProtocol.AnyHttpSoap);
-						if (anySupported)
+#if NET_2_0
+					default:
+						if (((protocol & WSProtocol.AnyHttpSoap) != WSProtocol.Unknown) &&
+							(WSConfig.Current.EnabledProtocols & WSProtocol.AnyHttpSoap) != WSProtocol.Unknown)
 							throw new InvalidOperationException ("Possible SOAP version mismatch.");
 						break;
+#endif
 					case WSProtocol.HttpPost:
 						if (WSConfig.IsSupported (WSProtocol.HttpPostLocalhost)) {
 							string localAddr = context.Request.ServerVariables ["LOCAL_ADDR"];