Permalink
Browse files

fix ws after re-clone

  • Loading branch information...
1 parent 1896980 commit bb159fcaaf1e76848068c288d044ff86227263b5 @mythz mythz committed Oct 10, 2012
Showing with 16,539 additions and 16,539 deletions.
  1. +173 −173 src/ServiceStack/WebHost.Endpoints/Support/Metadata/Controls/IndexOperationsControl.cs
  2. +237 −237 src/ServiceStack/WebHost.Endpoints/Support/Metadata/Controls/OperationControl.cs
  3. +86 −86 src/ServiceStack/WebHost.Endpoints/Support/Metadata/Controls/OperationsControl.cs
  4. +40 −40 src/ServiceStack/WebHost.Endpoints/Support/Metadata/Controls/Soap11OperationControl.cs
  5. +39 −39 src/ServiceStack/WebHost.Endpoints/Support/Metadata/Controls/Soap12OperationControl.cs
  6. +70 −70 src/ServiceStack/WebHost.Endpoints/Support/Metadata/WsdlMetadataHandlerBase.cs
  7. +8 −8 src/ServiceStack/WebHost.Endpoints/Support/Metadata/XsdTypeNames.cs
  8. +18 −18 src/ServiceStack/WebHost.Endpoints/Support/Metadata/XsdTypes.cs
  9. +84 −84 src/ServiceStack/WebHost.Endpoints/Support/Mocks/HttpRequestMock.cs
  10. +118 −118 src/ServiceStack/WebHost.Endpoints/Support/Mocks/HttpResponseMock.cs
  11. +94 −94 src/ServiceStack/WebHost.Endpoints/Support/RedirectHttpHandler.cs
  12. +174 −174 src/ServiceStack/WebHost.Endpoints/Support/RequestInfoHandler.cs
  13. +215 −215 src/ServiceStack/WebHost.Endpoints/Support/SoapHandler.cs
  14. +292 −292 src/ServiceStack/WebHost.Endpoints/Support/StaticFileHandler.cs
  15. +61 −61 src/ServiceStack/WebHost.Endpoints/Support/Templates/ListTemplate.cs
  16. +91 −91 src/ServiceStack/WebHost.Endpoints/Support/Templates/Soap11WsdlTemplate.cs
  17. +91 −91 src/ServiceStack/WebHost.Endpoints/Support/Templates/Soap12WsdlTemplate.cs
  18. +189 −189 src/ServiceStack/WebHost.Endpoints/Support/Templates/WsdlTemplateBase.cs
  19. +96 −96 src/ServiceStack/WebHost.Endpoints/Utils/FilterAttributeCache.cs
  20. +61 −61 src/ServiceStack/WebHost.Endpoints/Utils/XsdUtils.cs
  21. +20 −20 src/ServiceStack/WebHost.Endpoints/XmlSyncReplyHandler.cs
  22. +4 −4 src/packages/repositories.config
  23. +1 −1 tests/MasterHost/Global.asax
  24. +95 −95 tests/MasterHost/Global.asax.cs
  25. +158 −158 tests/MasterHost/MasterHost.csproj
  26. +35 −35 tests/MasterHost/Properties/AssemblyInfo.cs
  27. +73 −73 tests/MasterHost/ReportTests.cs
  28. +123 −123 tests/MasterHost/ReportsService.cs
  29. +163 −163 tests/MasterHost/RunReportsService.cs
  30. +151 −151 tests/MasterHost/RunRequestInfoService.cs
  31. +126 −126 tests/MasterHost/Web.config
  32. +9 −9 tests/MasterHost/default.htm
  33. +28 −28 tests/RazorRockstars.Console.Files/AppHost.cs
  34. +124 −124 tests/RazorRockstars.Console.Files/Benchmarks.cs
  35. +31 −31 tests/RazorRockstars.Console.Files/DynamicJsonTests.cs
  36. +167 −167 tests/RazorRockstars.Console.Files/MsgPackServiceTests.cs
  37. +225 −225 tests/RazorRockstars.Console.Files/RazorRockstars.Console.Files.csproj
  38. +235 −235 tests/RazorRockstars.Console.Files/RazorRockstars_FilesTests.cs
  39. +48 −48 tests/RazorRockstars.Console.Files/Web.config
  40. +17 −17 tests/RazorRockstars.Console/AppHost.cs
  41. +144 −144 tests/RazorRockstars.Console/RazorRockstars.Console.csproj
  42. +155 −155 tests/RazorRockstars.Console/RazorRockstars_EmbeddedFilesTests.cs
  43. +48 −48 tests/RazorRockstars.Console/Web.config
  44. +1 −1 tests/RazorRockstars.Web/Global.asax
  45. +12 −12 tests/RazorRockstars.Web/Global.asax.cs
  46. +35 −35 tests/RazorRockstars.Web/Properties/AssemblyInfo.cs
  47. +179 −179 tests/RazorRockstars.Web/RazorRockstars_WebTests.cs
  48. +70 −70 tests/RazorRockstars.Web/Web.config
  49. +25 −25 tests/ServiceStack.Auth.Tests/App.config
  50. +176 −176 tests/ServiceStack.Auth.Tests/RazorAppHost.cs
  51. +3 −3 tests/ServiceStack.Auth.Tests/SecureTests.cs
  52. +109 −109 tests/ServiceStack.Auth.Tests/ServiceStack.Auth.Tests.csproj
  53. +31 −31 tests/ServiceStack.Auth.Tests/TestBase.cs
  54. +117 −117 tests/ServiceStack.Common.Tests/IdUtilsTests.cs
  55. +150 −150 tests/ServiceStack.Common.Tests/MappingTests.cs
  56. +60 −60 tests/ServiceStack.Common.Tests/MessagingTests.cs
  57. +183 −183 tests/ServiceStack.Common.Tests/Models/ModelWithFieldsOfDifferentTypes.cs
  58. +84 −84 tests/ServiceStack.Common.Tests/OAuth/CredentialsServiceTests.cs
  59. +57 −57 tests/ServiceStack.Common.Tests/OAuth/MockAuthHttpGateway.cs
  60. +316 −316 tests/ServiceStack.Common.Tests/OAuth/OAuthUserSessionTests.cs
  61. +243 −243 tests/ServiceStack.Common.Tests/OAuth/OAuthUserSessionTestsBase.cs
  62. +96 −96 tests/ServiceStack.Common.Tests/OAuth/OAuthUserSessionWithoutTestSourceTests.cs
  63. +53 −53 tests/ServiceStack.Common.Tests/OAuth/OrmLiteUserAuthTests.cs
  64. +145 −145 tests/ServiceStack.Common.Tests/OAuth/RegistrationServiceTests.cs
  65. +82 −82 tests/ServiceStack.Common.Tests/OAuth/RequiredRolesTests.cs
  66. +5 −5 tests/ServiceStack.Common.Tests/Perf/TextSerializerComparisons.cs
  67. +109 −109 tests/ServiceStack.Common.Tests/PerfTestBase.cs
  68. +37 −37 tests/ServiceStack.Common.Tests/Properties/Settings.Designer.cs
  69. +81 −81 tests/ServiceStack.Common.Tests/ReflectionExtensionsTests.cs
  70. +264 −264 tests/ServiceStack.Common.Tests/ReflectionUtilTests.cs
  71. +258 −258 tests/ServiceStack.Common.Tests/ServiceStack.Common.Tests.csproj
  72. +75 −75 tests/ServiceStack.Common.Tests/StreamExtensionsTests.cs
  73. +6 −6 tests/ServiceStack.Common.Tests/StringExtensionTests.cs
  74. +76 −76 tests/ServiceStack.Common.Tests/Text/AdhocJsTests.cs
  75. +9 −9 tests/ServiceStack.Common.Tests/app.config
  76. +93 −93 tests/ServiceStack.Messaging.Tests/MessageSerializationTests.cs
  77. +152 −152 tests/ServiceStack.Messaging.Tests/ServiceStack.Messaging.Tests.csproj
  78. +9 −9 tests/ServiceStack.Messaging.Tests/Services/MessagingServiceBase.cs
  79. +122 −122 tests/ServiceStack.Messaging.Tests/TransientServiceMessagingTests.cs
  80. +1 −1 tests/ServiceStack.RazorHostTests/Global.asax
  81. +171 −171 tests/ServiceStack.RazorHostTests/Global.asax.cs
  82. +35 −35 tests/ServiceStack.RazorHostTests/Properties/AssemblyInfo.cs
  83. +214 −214 tests/ServiceStack.RazorHostTests/ServiceStack.RazorHostTests.csproj
  84. +29 −29 tests/ServiceStack.RazorHostTests/Web.Debug.config
  85. +30 −30 tests/ServiceStack.RazorHostTests/Web.Release.config
  86. +57 −57 tests/ServiceStack.RazorHostTests/Web.config
  87. +1 −1 tests/ServiceStack.RazorNancyTests/Global.asax
  88. +54 −54 tests/ServiceStack.RazorNancyTests/Global.asax.cs
  89. +35 −35 tests/ServiceStack.RazorNancyTests/Properties/AssemblyInfo.cs
  90. +128 −128 tests/ServiceStack.RazorNancyTests/ServiceStack.RazorNancyTests.csproj
  91. +35 −35 tests/ServiceStack.RazorNancyTests/Web.config
  92. +5 −5 tests/ServiceStack.RazorNancyTests/packages.config
  93. +27 −27 tests/ServiceStack.ServiceHost.Tests/App.config
  94. +19 −19 tests/ServiceStack.ServiceHost.Tests/AppData/FormatHelpers.cs
  95. +207 −207 tests/ServiceStack.ServiceHost.Tests/AppData/NorthwindCustomers.cs
  96. +26 −26 tests/ServiceStack.ServiceHost.Tests/AppData/NorthwindHelpers.cs
  97. +242 −242 tests/ServiceStack.ServiceHost.Tests/Formats/IntroductionExampleTests.cs
  98. +330 −330 tests/ServiceStack.ServiceHost.Tests/Formats/IntroductionLayoutTests.cs
  99. +22 −22 tests/ServiceStack.ServiceHost.Tests/Formats/MarkdownFormatExtensions.cs
  100. +114 −114 tests/ServiceStack.ServiceHost.Tests/Formats/MarkdownFormatTests.cs
  101. +66 −66 tests/ServiceStack.ServiceHost.Tests/Formats/MarkdownTestBase.cs
  102. +63 −63 tests/ServiceStack.ServiceHost.Tests/Formats/MockClass.cs
  103. +17 −17 tests/ServiceStack.ServiceHost.Tests/Formats/TemplateExtentionTests.cs
  104. +934 −934 tests/ServiceStack.ServiceHost.Tests/Formats/TemplateTests.cs
  105. +203 −203 tests/ServiceStack.ServiceHost.Tests/Formats/TextBlockTests.cs
  106. +16 −16 tests/ServiceStack.ServiceHost.Tests/Formats/TextBlockUtils.cs
  107. +214 −214 tests/ServiceStack.ServiceHost.Tests/Formats/UseCaseTests.cs
  108. +293 −293 tests/ServiceStack.ServiceHost.Tests/Formats/ViewTests.cs
  109. +10 −10 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/CustomRazorBasePage.cs
  110. +210 −210 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/IntroductionExampleRazorTests.cs
  111. +348 −348 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/IntroductionLayoutRazorTests.cs
  112. +109 −109 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/RazorEngineTests.cs
  113. +91 −91 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/RazorTestBase.cs
  114. +899 −899 tests/ServiceStack.ServiceHost.Tests/Formats_Razor/TemplateTests.cs
  115. +67 −67 tests/ServiceStack.ServiceHost.Tests/IoCTests.cs
  116. +54 −54 tests/ServiceStack.ServiceHost.Tests/RequestContextExtensionsTest.cs
  117. +194 −194 tests/ServiceStack.ServiceHost.Tests/RestPathTests.cs
  118. +65 −65 tests/ServiceStack.ServiceHost.Tests/Routes/ServiceRoutesTests.cs
  119. +16 −16 tests/ServiceStack.ServiceHost.Tests/Routes/SimpleRestServices.cs
  120. +98 −98 tests/ServiceStack.ServiceHost.Tests/ServiceCreationTests.cs
  121. +254 −254 tests/ServiceStack.ServiceHost.Tests/ServiceStack.ServiceHost.Tests.csproj
  122. +90 −90 tests/ServiceStack.ServiceHost.Tests/ServiceStackHandlerPathTests.cs
  123. +143 −143 tests/ServiceStack.ServiceHost.Tests/ServiceStackHandlerUrlTests.cs
  124. +2 −2 tests/ServiceStack.ServiceHost.Tests/Support/AutoWireService.cs
  125. +107 −107 tests/ServiceStack.ServiceHost.Tests/TypeFactory/ReflectionTypeFunqContainer.cs
  126. +24 −24 tests/ServiceStack.ServiceModel.Tests/DataContracts/Operations/GetCustomers.cs
  127. +27 −27 tests/ServiceStack.ServiceModel.Tests/DataContracts/Operations/GetCustomersResponse.cs
  128. +67 −67 tests/ServiceStack.ServiceModel.Tests/ServiceModelSerializerTests.cs
  129. +152 −152 tests/ServiceStack.ServiceModel.Tests/ServiceStack.ServiceModel.Tests.csproj
  130. +49 −49 tests/ServiceStack.WebHost.Endpoints.Tests/AppHostConfigTests.cs
  131. +213 −213 tests/ServiceStack.WebHost.Endpoints.Tests/AppHostHttpListenerLongRunningBaseTests.cs
  132. +235 −235 tests/ServiceStack.WebHost.Endpoints.Tests/AppHostListenerBaseTests.cs
  133. +173 −173 tests/ServiceStack.WebHost.Endpoints.Tests/AsyncRestClientTests.cs
  134. +80 −80 tests/ServiceStack.WebHost.Endpoints.Tests/AsyncServiceClientTests.cs
  135. +277 −277 tests/ServiceStack.WebHost.Endpoints.Tests/AttributeFiltersTest.cs
  136. +420 −420 tests/ServiceStack.WebHost.Endpoints.Tests/AuthTests.cs
  137. +56 −56 tests/ServiceStack.WebHost.Endpoints.Tests/CachedServiceTests.cs
  138. +140 −140 tests/ServiceStack.WebHost.Endpoints.Tests/CompressionTests.cs
  139. +172 −172 tests/ServiceStack.WebHost.Endpoints.Tests/CsvContentTypeFilterTests.cs
  140. +169 −169 tests/ServiceStack.WebHost.Endpoints.Tests/CustomRequestDataTests.cs
@@ -1,174 +1,174 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Web.UI;
-using ServiceStack.ServiceHost;
-using ServiceStack.WebHost.Endpoints.Support.Templates;
-
-namespace ServiceStack.WebHost.Endpoints.Support.Metadata.Controls
-{
- internal class IndexOperationsControl : System.Web.UI.Control
- {
- public IHttpRequest HttpRequest { get; set; }
- public string Title { get; set; }
- public List<string> OperationNames { get; set; }
- public string MetadataPageBodyHtml { get; set; }
- public IDictionary<int, string> Xsds { get; set; }
- public int XsdServiceTypesIndex { get; set; }
- public ServiceEndpointsMetadataConfig MetadataConfig { get; set; }
-
- protected override void Render(HtmlTextWriter output)
- {
- var parentPath = HttpRequest.GetParentAbsolutePath();
- var ignoreFormats = EndpointHost.Config.IgnoreFormatsInMetadata;
- var opTemplate = new StringBuilder("<li><span>{0}</span>");
- if (MetadataConfig.Xml != null && !ignoreFormats.Contains("xml"))
- opTemplate.AppendFormat(@"<a href=""{0}?op={{0}}"">XML</a>", parentPath + MetadataConfig.Xml.DefaultMetadataUri);
- if (MetadataConfig.Json != null && !ignoreFormats.Contains("json"))
- opTemplate.AppendFormat(@"<a href=""{0}?op={{0}}"">JSON</a>", parentPath + MetadataConfig.Json.DefaultMetadataUri);
- if (MetadataConfig.Jsv != null && !ignoreFormats.Contains("jsv"))
- opTemplate.AppendFormat(@"<a href=""{0}?op={{0}}"">JSV</a>", parentPath + MetadataConfig.Jsv.DefaultMetadataUri);
-
- if (MetadataConfig.Custom != null)
- {
- foreach (var format in EndpointHost.ContentTypeFilter.ContentTypeFormats.Keys)
- {
- if (ignoreFormats.Contains(format)) continue;
-
- var uri = parentPath + string.Format(MetadataConfig.Custom.DefaultMetadataUri, format);
- opTemplate.AppendFormat(@"<a href=""{0}?op={{0}}"">{1}</a>", uri, format.ToUpper());
- }
- }
-
- if (MetadataConfig.Soap11 != null && !ignoreFormats.Contains("soap11"))
- opTemplate.AppendFormat(@"<a href=""{0}?op={{0}}"">SOAP 1.1</a>", parentPath + MetadataConfig.Soap11.DefaultMetadataUri);
- if (MetadataConfig.Soap12 != null && !ignoreFormats.Contains("soap12"))
- opTemplate.AppendFormat(@"<a class=""last"" href=""{0}?op={{0}}"">SOAP 1.2</a>", parentPath + MetadataConfig.Soap12.DefaultMetadataUri);
-
- opTemplate.Append("</li>");
-
- var operationsPart = new ListTemplate {
- Title = "Operations:",
- ListItems = this.OperationNames,
- ForEachListItem = operation => string.Format(opTemplate.ToString(), operation)
- }.ToString();
-
- var xsdsPart = new ListTemplate {
- Title = "XSDS:",
- ListItemsIntMap = this.Xsds,
- ListItemTemplate = @"<li><a href=""?xsd={0}"">{1}</a></li>"
- }.ToString();
-
- var wsdlTemplate = new StringBuilder();
- if (MetadataConfig.Soap11 != null || MetadataConfig.Soap12 != null)
- {
- wsdlTemplate.AppendLine("<h3>WSDLS:</h3>");
- wsdlTemplate.AppendLine("<ul>");
- if (MetadataConfig.Soap11 != null)
- {
- wsdlTemplate.AppendFormat(
- @"<li><a href=""{0}"">{0}</a></li>",
- MetadataConfig.Soap11.WsdlMetadataUri);
- }
- if (MetadataConfig.Soap12 != null)
- {
- wsdlTemplate.AppendFormat(
- @"<li><a href=""{0}"">{0}</a></li>",
- MetadataConfig.Soap12.WsdlMetadataUri);
- }
- wsdlTemplate.AppendLine("<ul>");
- }
-
- var renderedTemplate = string.Format(
- PageTemplate, this.Title, this.MetadataPageBodyHtml, this.XsdServiceTypesIndex,
- operationsPart, xsdsPart, wsdlTemplate);
-
- output.Write(renderedTemplate);
- }
-
- #region Page Template
- private const string PageTemplate = @"
-<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">
-
-<html xmlns=""http://www.w3.org/1999/xhtml"" >
-<head>
- <title>{0}</title>
- <style type=""text/css"">
- BODY {{
- background-color:white;
- color:#000000;
- font-family:Verdana;
- margin: 0;
- }}
- H1 {{
- background-color: #036;
- color: #FFF;
- font-family: Tahoma;
- font-size: 26px;
- font-weight: normal;
- margin: 0;
- padding: 10px 0 3px 15px;
- }}
- FORM {{
- font-size: 0.7em;
- margin-left: 20px;
- padding-bottom: 2em;
- }}
- UL {{
- margin: 10px 0 0 10px;
- padding: 0px 0px 0px 10px;
- }}
- LI {{
- clear: left;
- margin-top: 10px;
- }}
- LI A {{
- color: #369;
- font-weight: bold;
- text-decoration: underline;
- }}
- LI A:hover {{
- color: #C30;
- }}
- .operations UL {{
- list-style: none;
- }}
- .operations SPAN {{
- float: left;
- display: block;
- width: 27em;
- }}
- .operations A {{
- border-right: 1px solid #CCC;
- margin-right: 1em;
- padding-right: 1em;
- }}
- .operations A.last {{
- border:none;
- }}
- </style>
-</head>
-<body>
- <h1>{0}</h1>
-
- <form id=""form1"">
- <p>The following operations are supported. For a formal definition, please review the Service <a href=""?xsd={2}"">XSD</a>.
- </p>
-
- <div class=""operations"">
- {3}
- </div>
-
- {1}
-
- {4}
-
- {5}
-
- </form>
-</body>
-</html>";
- #endregion
-
- }
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Web.UI;
+using ServiceStack.ServiceHost;
+using ServiceStack.WebHost.Endpoints.Support.Templates;
+
+namespace ServiceStack.WebHost.Endpoints.Support.Metadata.Controls
+{
+ internal class IndexOperationsControl : System.Web.UI.Control
+ {
+ public IHttpRequest HttpRequest { get; set; }
+ public string Title { get; set; }
+ public List<string> OperationNames { get; set; }
+ public string MetadataPageBodyHtml { get; set; }
+ public IDictionary<int, string> Xsds { get; set; }
+ public int XsdServiceTypesIndex { get; set; }
+ public ServiceEndpointsMetadataConfig MetadataConfig { get; set; }
+
+ protected override void Render(HtmlTextWriter output)
+ {
+ var parentPath = HttpRequest.GetParentAbsolutePath();
+ var ignoreFormats = EndpointHost.Config.IgnoreFormatsInMetadata;
+ var opTemplate = new StringBuilder("<li><span>{0}</span>");
+ if (MetadataConfig.Xml != null && !ignoreFormats.Contains("xml"))
+ opTemplate.AppendFormat(@"<a href=""{0}?op={{0}}"">XML</a>", parentPath + MetadataConfig.Xml.DefaultMetadataUri);
+ if (MetadataConfig.Json != null && !ignoreFormats.Contains("json"))
+ opTemplate.AppendFormat(@"<a href=""{0}?op={{0}}"">JSON</a>", parentPath + MetadataConfig.Json.DefaultMetadataUri);
+ if (MetadataConfig.Jsv != null && !ignoreFormats.Contains("jsv"))
+ opTemplate.AppendFormat(@"<a href=""{0}?op={{0}}"">JSV</a>", parentPath + MetadataConfig.Jsv.DefaultMetadataUri);
+
+ if (MetadataConfig.Custom != null)
+ {
+ foreach (var format in EndpointHost.ContentTypeFilter.ContentTypeFormats.Keys)
+ {
+ if (ignoreFormats.Contains(format)) continue;
+
+ var uri = parentPath + string.Format(MetadataConfig.Custom.DefaultMetadataUri, format);
+ opTemplate.AppendFormat(@"<a href=""{0}?op={{0}}"">{1}</a>", uri, format.ToUpper());
+ }
+ }
+
+ if (MetadataConfig.Soap11 != null && !ignoreFormats.Contains("soap11"))
+ opTemplate.AppendFormat(@"<a href=""{0}?op={{0}}"">SOAP 1.1</a>", parentPath + MetadataConfig.Soap11.DefaultMetadataUri);
+ if (MetadataConfig.Soap12 != null && !ignoreFormats.Contains("soap12"))
+ opTemplate.AppendFormat(@"<a class=""last"" href=""{0}?op={{0}}"">SOAP 1.2</a>", parentPath + MetadataConfig.Soap12.DefaultMetadataUri);
+
+ opTemplate.Append("</li>");
+
+ var operationsPart = new ListTemplate {
+ Title = "Operations:",
+ ListItems = this.OperationNames,
+ ForEachListItem = operation => string.Format(opTemplate.ToString(), operation)
+ }.ToString();
+
+ var xsdsPart = new ListTemplate {
+ Title = "XSDS:",
+ ListItemsIntMap = this.Xsds,
+ ListItemTemplate = @"<li><a href=""?xsd={0}"">{1}</a></li>"
+ }.ToString();
+
+ var wsdlTemplate = new StringBuilder();
+ if (MetadataConfig.Soap11 != null || MetadataConfig.Soap12 != null)
+ {
+ wsdlTemplate.AppendLine("<h3>WSDLS:</h3>");
+ wsdlTemplate.AppendLine("<ul>");
+ if (MetadataConfig.Soap11 != null)
+ {
+ wsdlTemplate.AppendFormat(
+ @"<li><a href=""{0}"">{0}</a></li>",
+ MetadataConfig.Soap11.WsdlMetadataUri);
+ }
+ if (MetadataConfig.Soap12 != null)
+ {
+ wsdlTemplate.AppendFormat(
+ @"<li><a href=""{0}"">{0}</a></li>",
+ MetadataConfig.Soap12.WsdlMetadataUri);
+ }
+ wsdlTemplate.AppendLine("<ul>");
+ }
+
+ var renderedTemplate = string.Format(
+ PageTemplate, this.Title, this.MetadataPageBodyHtml, this.XsdServiceTypesIndex,
+ operationsPart, xsdsPart, wsdlTemplate);
+
+ output.Write(renderedTemplate);
+ }
+
+ #region Page Template
+ private const string PageTemplate = @"
+<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">
+
+<html xmlns=""http://www.w3.org/1999/xhtml"" >
+<head>
+ <title>{0}</title>
+ <style type=""text/css"">
+ BODY {{
+ background-color:white;
+ color:#000000;
+ font-family:Verdana;
+ margin: 0;
+ }}
+ H1 {{
+ background-color: #036;
+ color: #FFF;
+ font-family: Tahoma;
+ font-size: 26px;
+ font-weight: normal;
+ margin: 0;
+ padding: 10px 0 3px 15px;
+ }}
+ FORM {{
+ font-size: 0.7em;
+ margin-left: 20px;
+ padding-bottom: 2em;
+ }}
+ UL {{
+ margin: 10px 0 0 10px;
+ padding: 0px 0px 0px 10px;
+ }}
+ LI {{
+ clear: left;
+ margin-top: 10px;
+ }}
+ LI A {{
+ color: #369;
+ font-weight: bold;
+ text-decoration: underline;
+ }}
+ LI A:hover {{
+ color: #C30;
+ }}
+ .operations UL {{
+ list-style: none;
+ }}
+ .operations SPAN {{
+ float: left;
+ display: block;
+ width: 27em;
+ }}
+ .operations A {{
+ border-right: 1px solid #CCC;
+ margin-right: 1em;
+ padding-right: 1em;
+ }}
+ .operations A.last {{
+ border:none;
+ }}
+ </style>
+</head>
+<body>
+ <h1>{0}</h1>
+
+ <form id=""form1"">
+ <p>The following operations are supported. For a formal definition, please review the Service <a href=""?xsd={2}"">XSD</a>.
+ </p>
+
+ <div class=""operations"">
+ {3}
+ </div>
+
+ {1}
+
+ {4}
+
+ {5}
+
+ </form>
+</body>
+</html>";
+ #endregion
+
+ }
}
Oops, something went wrong.

0 comments on commit bb159fc

Please sign in to comment.