I am trying to send a message of type Microsoft.Web.Services2.SoapEnvelope from Biztalk and I am recieving this error.
I am using a .net class library that reurns SoapEnvelope to Biztalk Message.
_________________________________________________________
Failed to Xml serialize type ‘Microsoft.Web.Services2.SoapEnvelope’.
Exception type: XmlSerializationException
Additional error information:
Cannot use wildcards at the top level of a schema.
Exception type: InvalidOperationException
Source: System.Xml
Target Site: System.Xml.Schema.XmlSchemaElement ExportElement(System.Xml.Serialization.ElementAccessor)
The following is a stack trace that identifies the location where the exception occured
at System.Xml.Serialization.XmlSchemaExporter.ExportElement(ElementAccessor accessor)
at System.Xml.Serialization.XmlSchemaExporter.ExportTypeMapping(XmlTypeMapping xmlTypeMapping)
at Microsoft.XLANGs.RuntimeTypes.DotNetTypeMetadata.get_XmlSchema()
at Microsoft.XLANGs.RuntimeTypes.CompilerMetaDataInfo.GetPropertiesForDotNetPartType(String typeName, String assemblyLocation, String& formatterTypeName, String& reflectedTypeName, String& targetNameSpace)