* ServiceMetadataExtension.cs : when its url is requested without
any parameters, it simply returns the WSDL, not the help page.
svn path=/trunk/mcs/; revision=142125
+2009-09-17 Atsushi Enomoto <atsushi@ximian.com>
+
+ * ServiceMetadataExtension.cs : when its url is requested without
+ any parameters, it simply returns the WSDL, not the help page.
+
2009-09-15 Atsushi Enomoto <atsushi@ximian.com>
* WebServiceHelper.cs : remove old code.
HttpRequestMessageProperty prop = (HttpRequestMessageProperty) req.Properties [HttpRequestMessageProperty.Name];
NameValueCollection query_string = CreateQueryString (prop.QueryString);
- if (query_string == null || query_string.AllKeys.Length != 1)
- return CreateHelpPage (req);
+ if (query_string == null || query_string.AllKeys.Length != 1) {
+ //return CreateHelpPage (req);
+ WSServiceDescription w = GetWsdl ("wsdl");
+ if (w != null)
+ return CreateWsdlMessage (w);
+ }
if (query_string [null] == "wsdl") {
WSServiceDescription wsdl = GetWsdl ("wsdl");