diff options
author | Lluis Sanchez <lluis@novell.com> | 2004-04-26 15:14:03 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2004-04-26 15:14:03 +0400 |
commit | b36d6b6bd0092b528f7268ef21a5e8823cc99e17 (patch) | |
tree | 8ac4523f3d810a2cc984303db3e43eb5f19cc148 /data | |
parent | f1f7a2ed69c274d62b3d1da1455b0916c978b002 (diff) |
Updated
svn path=/trunk/mono/; revision=25993
Diffstat (limited to 'data')
-rw-r--r-- | data/DefaultWsdlHelpGenerator.aspx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/data/DefaultWsdlHelpGenerator.aspx b/data/DefaultWsdlHelpGenerator.aspx index 627146388f8..a43473f9c5d 100644 --- a/data/DefaultWsdlHelpGenerator.aspx +++ b/data/DefaultWsdlHelpGenerator.aspx @@ -61,6 +61,9 @@ void Page_Load(object sender, EventArgs e) Service service = desc.Services[0]; WebServiceName = service.Name; + if (desc.Bindings.Count == 0) + return; + DefaultBinding = desc.Bindings[0].Name; WebServiceDescription = service.Documentation; ServiceProtocols = FindServiceProtocols (null); @@ -1582,7 +1585,9 @@ function clearForm () <p class="label">Web Service Overview</p> <%#WebServiceDescription%> -<%} if (CurrentPage == "op") {%> +<%} if (DefaultBinding == null) {%> +This service does not contain any public web method. +<%} else if (CurrentPage == "op") {%> <!-- ********************************************************** @@ -1710,9 +1715,7 @@ function clearForm () <% } %> <% } %> -<%}%> - -<% if (CurrentPage == "proxy") {%> +<%} else if (CurrentPage == "proxy") {%> <!-- ********************************************************** Client Proxy @@ -1733,9 +1736,7 @@ function clearForm () <div class="codePanel"> <div class="code-<%#CurrentLanguage%>"><%#GetProxyCode ()%></div> </div> -<%}%> - -<% if (CurrentPage == "wsdl") {%> +<%} else if (CurrentPage == "wsdl") {%> <!-- ********************************************************** Service description |