Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@novell.com>2004-01-20 18:30:09 +0300
committerLluis Sanchez <lluis@novell.com>2004-01-20 18:30:09 +0300
commitafe0fa29b67e7786f9801f1894d0f1ee9d633c44 (patch)
treef71b07408e9e4240f52abfb5d946ddb342a56ad2 /data
parente69211bf4fe6023b2a2980f67541ddbfd9c2a2af (diff)
Little fixes.
svn path=/trunk/mono/; revision=22302
Diffstat (limited to 'data')
-rw-r--r--data/DefaultWsdlHelpGenerator.aspx12
1 files changed, 7 insertions, 5 deletions
diff --git a/data/DefaultWsdlHelpGenerator.aspx b/data/DefaultWsdlHelpGenerator.aspx
index b43fe4b8ab8..bb23f56189d 100644
--- a/data/DefaultWsdlHelpGenerator.aspx
+++ b/data/DefaultWsdlHelpGenerator.aspx
@@ -361,7 +361,8 @@ string GetTestResult ()
string GenerateOperationMessages (string protocol, bool generateInput)
{
- if (CurrentPage != "op" || CurrentTab != "msg") return "";
+ if (!IsOperationSupported (protocol)) return "";
+
Port port;
if (protocol != "Soap") port = FindPort (null, protocol);
else port = FindPort (CurrentOperationBinding, null);
@@ -1135,8 +1136,8 @@ public class HtmlSampleGenerator: SampleGenerator
}
string val;
- if (!attr.SchemaTypeName.IsEmpty) val = FindBuiltInType (attr.SchemaTypeName);
- else val = FindBuiltInType ((XmlSchemaSimpleType) attr.SchemaType);
+ if (!refAttr.SchemaTypeName.IsEmpty) val = FindBuiltInType (refAttr.SchemaTypeName);
+ else val = FindBuiltInType ((XmlSchemaSimpleType) refAttr.SchemaType);
xtw.WriteAttributeString (refAttr.Name, val);
}
@@ -1208,8 +1209,9 @@ public class HtmlSampleGenerator: SampleGenerator
else if (item is XmlSchemaAny)
{
xtw.WriteStartElement ("any"); xtw.WriteEndElement ();
- if (multiValue)
- xtw.WriteStartElement ("any"); xtw.WriteEndElement ();
+ if (multiValue) {
+ xtw.WriteStartElement ("any"); xtw.WriteEndElement ();
+ }
}
else if (item is XmlSchemaParticle) {
WriteParticleContent (xtw, ns, (XmlSchemaParticle)item, multiValue);