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);
}
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);
}
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);