Author: kostat
Date: 2006-08-21 02:47:06 -0400 (Mon, 21 Aug 2006)
New Revision: 64124
Modified:
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentationHandler.cs
Log:
Java profile does not support code generation
Modified:
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentationHandler.cs
===================================================================
---
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentationHandler.cs
2006-08-21 06:12:50 UTC (rev 64123)
+++
trunk/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapDocumentationHandler.cs
2006-08-21 06:47:06 UTC (rev 64124)
@@ -136,7 +136,11 @@
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 @@
return provider;
}
-#else
- void GenerateCode (HttpContext context, string langId) {
- throw new NotSupportedException();
- }
- private CodeDomProvider GetProvider(string langId) {
- throw new NotSupportedException();
- }
#endif
internal ServiceDescriptionCollection GetDescriptions ()
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches