static private ToXmlDataType ( InternalPrimitiveTypeE code ) : String | ||
code | InternalPrimitiveTypeE | |
return | String |
internal static String ToXmlDataType(InternalPrimitiveTypeE code)
{
InternalST.Soap( "Converter", "ToXmlDataType Entry ", ((Enum)code).ToString());
lock(typeofConverter)
{
if (valueB == null)
InitValueB();
}
InternalST.Soap( "Converter", "ToXmlDataType Exit ",((valueB[(int)code] == null)?"null":valueB[(int)code]));
return valueB[(int)code];
}
internal void WriteTopPrimitive(NameInfo nameInfo, object value) { this.attrList.Clear(); this.Write(InternalElementTypeE.ObjectBegin, "SOAP-ENV:Body", this.attrList, null, false, false); if (nameInfo.NIobjectId > 0L) { this.attrList.Put("id", this.IdToString((int)nameInfo.NIobjectId)); } string str = null; if (value is string) { str = (string)value; } else { str = Converter.SoapToString(value, nameInfo.NIprimitiveTypeEnum); } this.Write(InternalElementTypeE.Member, "xsd:" + Converter.ToXmlDataType(nameInfo.NIprimitiveTypeEnum), this.attrList, str, true, false); }