diff options
Diffstat (limited to 'data/net_1_1/DefaultWsdlHelpGenerator.aspx')
-rw-r--r-- | data/net_1_1/DefaultWsdlHelpGenerator.aspx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/data/net_1_1/DefaultWsdlHelpGenerator.aspx b/data/net_1_1/DefaultWsdlHelpGenerator.aspx index 396bf2cd182..f0f74e682bc 100644 --- a/data/net_1_1/DefaultWsdlHelpGenerator.aspx +++ b/data/net_1_1/DefaultWsdlHelpGenerator.aspx @@ -940,15 +940,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); |