diff options
author | Igor Zelmanovich <igorz@mono-cvs.ximian.com> | 2007-04-25 16:49:03 +0400 |
---|---|---|
committer | Igor Zelmanovich <igorz@mono-cvs.ximian.com> | 2007-04-25 16:49:03 +0400 |
commit | 421b0f12507780f032c8bbfbf943e0a406678906 (patch) | |
tree | 0fb0a70f4e00c79cadc6e40fb02a9d4bdf27c976 /data | |
parent | fa423bc998ae1839ddf55ba80213502b6097cd28 (diff) |
Web Service' methods links in the test page are clear
Used right namespace for Soap 1.2 envelop
svn path=/trunk/mono/; revision=76246
Diffstat (limited to 'data')
-rwxr-xr-x | data/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/data/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx b/data/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx index 01bee25e871..b56e80052a4 100755 --- a/data/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx +++ b/data/net_2_0/DefaultWsdlHelpGenerator.jvm.aspx @@ -304,7 +304,8 @@ OperationBinding FindOperation (Binding binding, string name) string FormatBindingName (string name) { - if (name == DefaultBinding) return "Methods"; + if (name.EndsWith("Soap")) return "Soap 1.1"; + else if (name.EndsWith("Soap12")) return "Soap 1.2"; else return "Methods for binding<br>" + name; } @@ -778,7 +779,6 @@ public class HtmlSampleGenerator: SampleGenerator static readonly XmlQualifiedName anyType = new XmlQualifiedName ("anyType",XmlSchema.Namespace); static readonly XmlQualifiedName arrayType = new XmlQualifiedName ("Array","http://schemas.xmlsoap.org/soap/encoding/"); static readonly XmlQualifiedName arrayTypeRefName = new XmlQualifiedName ("arrayType","http://schemas.xmlsoap.org/soap/encoding/"); - const string SoapEnvelopeNamespace = "http://schemas.xmlsoap.org/soap/envelope/"; const string WsdlNamespace = "http://schemas.xmlsoap.org/wsdl/"; const string SoapEncodingNamespace = "http://schemas.xmlsoap.org/soap/encoding/"; @@ -913,6 +913,10 @@ public class HtmlSampleGenerator: SampleGenerator public string GenerateSoapMessage (OperationBinding obin, Operation oper, OperationMessage msg) { + string SoapEnvelopeNamespace = "http://schemas.xmlsoap.org/soap/envelope/"; + if(obin.Binding.Name.EndsWith("Soap12")) + SoapEnvelopeNamespace = "http://www.w3.org/2003/05/soap-envelope"; + SoapOperationBinding sob = obin.Extensions.Find (typeof(SoapOperationBinding)) as SoapOperationBinding; SoapBindingStyle style = (sob != null) ? sob.Style : SoapBindingStyle.Document; @@ -1523,7 +1527,7 @@ public class HtmlSampleGenerator: SampleGenerator .title { color:dimgray; font-family: Arial; font-size:20pt; font-weight:900} .operationTitle { color:dimgray; font-family: Arial; font-size:15pt; font-weight:900} .method { font-size: x-small } - .bindingLabel { font-size: x-small; font-weight:bold; color:darkgray; line-height:8pt; display:block; margin-bottom:3px } + .bindingLabel { font-size: medium; font-weight:bold; color:darkgray; line-height:8pt; display:block; margin-bottom:3px } .label { font-size: small; font-weight:bold; color:darkgray } .paramTable { font-size: x-small } .paramTable TR { background-color: gainsboro } |