* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Configuration / WebServicesConfigurationSectionHandler.cs
index 936746c857c9797cfc2b9afc4fa494f4ad2ce187..f128cd81b8593a606bd5c6e8a822988ae52fd0d2 100644 (file)
@@ -42,12 +42,28 @@ namespace System.Web.Services.Configuration
                HttpPost = 1 << 1,
                HttpGet =  1 << 2,
                Documentation = 1 << 3,
-               All = 0x0F
+#if NET_1_1
+               HttpSoap12 = 1 << 4,
+               HttpPostLocalhost = 1 << 5,
+#endif
+               All = 0xFF
        }
        
        class WSConfig
        {
+#if !TARGET_JVM
                volatile static WSConfig instance;
+#else
+               static WSConfig instance {
+                       get {
+                               return (WSConfig)AppDomain.CurrentDomain.GetData("WSConfig.instance");
+                       }
+                       set {
+                               AppDomain.CurrentDomain.SetData("WSConfig.instance", value);
+                       }
+               }
+
+#endif
                WSProtocol protocols;
                string wsdlHelpPage;
                string filePath;
@@ -74,6 +90,17 @@ namespace System.Web.Services.Configuration
                {
                        WSProtocol proto;
                        error = null;
+
+#if ONLY_1_1
+                       switch (protoName) {
+                               case "HttpSoap1.2":
+                                       protoName = "HttpSoap12";
+                                       break;
+                               case "HttpSoap12":
+                                       protoName = null;
+                                       break;
+                       }
+#endif
                        try {
                                proto = (WSProtocol) Enum.Parse (typeof (WSProtocol), protoName);
                        } catch {