X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=data%2Fnet_1_1%2FDefaultWsdlHelpGenerator.aspx;h=923655937f14ddf5f6b04f9feb2fca18fb736a80;hb=HEAD;hp=475af079f5197cd34555249f84bfc306c6e8398d;hpb=34c955505c6d90d2558241bc552f92013e3aff0c;p=mono.git diff --git a/data/net_1_1/DefaultWsdlHelpGenerator.aspx b/data/net_1_1/DefaultWsdlHelpGenerator.aspx index 475af079f51..923655937f1 100644 --- a/data/net_1_1/DefaultWsdlHelpGenerator.aspx +++ b/data/net_1_1/DefaultWsdlHelpGenerator.aspx @@ -24,7 +24,9 @@ <%@ Import Namespace="System.CodeDom.Compiler" %> <%@ Import Namespace="Microsoft.CSharp" %> <%@ Import Namespace="Microsoft.VisualBasic" %> +<%@ Import Namespace="System.Text" %> <%@ Import Namespace="System.Text.RegularExpressions" %> +<%@ Import Namespace="System.Security.Cryptography.X509Certificates" %> <%@ Assembly name="System.Web.Services" %> <%@ Page debug="true" %> @@ -306,6 +308,13 @@ bool HasFormResult get { return Request.QueryString ["ext"] == "testform"; } } +class NoCheckCertificatePolicy : ICertificatePolicy { + public bool CheckValidationResult (ServicePoint a, X509Certificate b, WebRequest c, int d) + { + return true; + } +} + string GetTestResult () { if (!HasFormResult) return null; @@ -339,7 +348,22 @@ string GetTestResult () { string url = location + "/" + CurrentOperationName; Uri uri = new Uri (url); - WebRequest req = WebRequest.Create (url + "?" + qs); + WebRequest req; + if (CurrentOperationProtocols.IndexOf ("HttpGet") < 0) { + req = WebRequest.Create (url); + req.Method = "POST"; + if (qs != null && qs.Length > 0) { + req.ContentType = "application/x-www-form-urlencoded"; + byte [] postBuffer = Encoding.UTF8.GetBytes (qs); + req.ContentLength = postBuffer.Length; + using (Stream requestStream = req.GetRequestStream ()) + requestStream.Write (postBuffer, 0, postBuffer.Length); + } + } + else + req = WebRequest.Create (url + "?" + qs); + if (url.StartsWith ("https:")) + ServicePointManager.CertificatePolicy = new NoCheckCertificatePolicy (); HttpCookieCollection cookies = Request.Cookies; int last = cookies.Count; if (last > 0) { @@ -1586,7 +1610,7 @@ function clearForm () <%#FormatBindingName(DataBinder.Eval(Container.DataItem, "Name").ToString())%> - op=<%#GetOpName(Container.DataItem)%>&bnd=<%#DataBinder.Eval(Container.DataItem, "Binding.Name")%>"><%#GetOpName(Container.DataItem)%> + op=<%#GetOpName(Container.DataItem)%>&bnd=<%#DataBinder.Eval(Container.DataItem, "Binding.Name")%>"><%#GetOpName(Container.DataItem)%>
@@ -1604,7 +1628,7 @@ function clearForm () -->

Web Service Overview

- <%#WebServiceDescription%> + <%=WebServiceDescription%> <%} if (DefaultBinding == null) {%> This service does not contain any public web method. @@ -1615,7 +1639,7 @@ This service does not contain any public web method. Operation description --> - <%#CurrentOperationName%> + <%=CurrentOperationName%>

<% WriteTabs (); %>


@@ -1657,12 +1681,12 @@ This service does not contain any public web method. Remarks
- <%#OperationDocumentation%> + <%=OperationDocumentation%>

Technical information
- Format: <%#CurrentOperationFormat%> -
Supported protocols: <%#CurrentOperationProtocols%> + Format: <%=CurrentOperationFormat%> +
Supported protocols: <%=CurrentOperationProtocols%> <% } %> -
+ Select the language for which you want to generate a proxy -   +     

- <%#CurrentProxytName%>    - Download + <%=CurrentProxytName%>    + Download

-
<%#GetProxyCode ()%>
+
<%=GetProxyCode ()%>
<%} else if (CurrentPage == "wsdl") {%>