} // GetXmlElementForInteropType
/// <include file='doc\Soap.uex' path='docs/doc[@for="SoapServices.GetXmlTypeForInteropType"]/*' />
public static bool GetXmlTypeForInteropType(Type type,
out String xmlType, out String xmlTypeNamespace)
{
// check table first
XmlEntry entry = (XmlEntry)_interopTypeToXmlType[type];
if (entry != null)
{
xmlType = entry.Name;
xmlTypeNamespace = entry.Namespace;
return(true);
}
// check soap attribute
SoapTypeAttribute attr = (SoapTypeAttribute)
InternalRemotingServices.GetCachedSoapAttribute(type);
if (attr.IsInteropXmlType())
{
xmlType = attr.XmlTypeName;
xmlTypeNamespace = attr.XmlTypeNamespace;
return(true);
}
else
{
xmlType = null;
xmlTypeNamespace = null;
return(false);
}
} // GetXmlTypeForInteropType