internal static String InternalGetSoapTypeNameFromQualifiedTypeName(String xmlTypeName, String xmlTypeNamespace)
{
// This must be the default encoding of the soap type (or the type wasn't
// preloaded).
String typeNamespace;
String assemblyName;
if (!SoapServices.DecodeXmlNamespaceForClrTypeNamespace(
xmlTypeNamespace,
out typeNamespace, out assemblyName))
{
return null;
}
String typeName;
if ((typeNamespace != null) && (typeNamespace.Length > 0))
typeName = typeNamespace + "." + xmlTypeName;
else
typeName = xmlTypeName;
try
{
String fullTypeName = typeName + ", " + assemblyName;
return fullTypeName;
}
catch
{
// We ignore errors and will just return null below since the type
// isn't set.
}
return null;
}