X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=data%2Fnet_1_1%2FDefaultWsdlHelpGenerator.aspx;h=afeeeb408320d470028362de005341421337364d;hb=5bbfa8860b090e465a3aa45edeb9c94481ef1a22;hp=396bf2cd182c91b064094bdfd780dce081ab2ce0;hpb=5f67448fa5d4ec18ffeb9ca298607f86bab05c5f;p=mono.git diff --git a/data/net_1_1/DefaultWsdlHelpGenerator.aspx b/data/net_1_1/DefaultWsdlHelpGenerator.aspx index 396bf2cd182..afeeeb40832 100644 --- a/data/net_1_1/DefaultWsdlHelpGenerator.aspx +++ b/data/net_1_1/DefaultWsdlHelpGenerator.aspx @@ -337,7 +337,9 @@ string GetTestResult () try { - WebRequest req = WebRequest.Create (location + "/" + CurrentOperationName + "?" + qs); + string url = location + "/" + CurrentOperationName; + Uri uri = new Uri (url); + WebRequest req = WebRequest.Create (url + "?" + qs); HttpCookieCollection cookies = Request.Cookies; int last = cookies.Count; if (last > 0) { @@ -345,7 +347,7 @@ string GetTestResult () for (int i = 0; i < last; i++) { HttpCookie hcookie = cookies [i]; Cookie cookie = new Cookie (hcookie.Name, hcookie.Value, hcookie.Path, hcookie.Domain); - container.Add (cookie); + container.Add (uri, cookie); } ((HttpWebRequest) req).CookieContainer = container; } @@ -940,15 +942,23 @@ public class HtmlSampleGenerator: SampleGenerator } // Serialize headers + + bool writtenHeader = false; foreach (object ob in msgbin.Extensions) { SoapHeaderBinding hb = ob as SoapHeaderBinding; if (hb == null) continue; - xtw.WriteStartElement ("soap", "Header", SoapEnvelopeNamespace); + if (!writtenHeader) { + xtw.WriteStartElement ("soap", "Header", SoapEnvelopeNamespace); + writtenHeader = true; + } + WriteHeader (xtw, hb); - xtw.WriteEndElement (); } + + if (writtenHeader) + xtw.WriteEndElement (); // Serialize body xtw.WriteStartElement ("soap", "Body", SoapEnvelopeNamespace); @@ -1576,7 +1586,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)%>
@@ -1594,7 +1604,7 @@ function clearForm () -->

Web Service Overview

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

<% WriteTabs (); %>


@@ -1647,12 +1657,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") {%>