Sfoglia il codice sorgente

Java profile does not support code generation

svn path=/trunk/mcs/; revision=64124
Konstantin Triger 19 anni fa
parent
commit
d36bf01c61

+ 4 - 7
mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentationHandler.cs

@@ -136,7 +136,11 @@ namespace System.Web.Services.Protocols
 
 				if (key  == "wsdl") GenerateWsdlDocument (context, req.QueryString ["wsdl"]);
 				else if (key == "schema") GenerateSchema (context, req.QueryString ["schema"]);
+#if !TARGET_JVM //code generation is not supported
 				else if (key == "code") GenerateCode (context, req.QueryString ["code"]);
+#else
+				else if (key == "code") throw new Exception("Code generation is not supported.");
+#endif
 				else if (key == "disco") GenerateDiscoDocument (context);
 				else throw new Exception ("This should never happen");
 			}
@@ -238,13 +242,6 @@ namespace System.Web.Services.Protocols
 
 			return provider;
 		}
-#else
-		void GenerateCode (HttpContext context, string langId) {
-			throw new NotSupportedException();
-		}
-		private CodeDomProvider GetProvider(string langId) {
-			throw new NotSupportedException();
-		}
 #endif
 		
 		internal ServiceDescriptionCollection GetDescriptions ()