Hello,
I am passing my message as xlangMessage parameter to helper
method(serializable class) and finally i am returning back xLangMessage to
my
orchestration.
But unfortunately am unable to read message in xlangmesage type variable
and
it is allowing to read into xmlDoc variable(Which i don't want to do).
It is throwing following error when trying to build, could any help me in
resolving this issue.
Failed to Xml serialize type 'Microsoft.XLANGs.BaseTypes.XLANGMessage'.
Exception type: XmlSerializationException
Additional error information:
To be XML serializable, types which inherit from IEnumerable must
have an implementation of Add(System.Object) at all levels of their
inheritance hierarchy. Microsoft.XLANGs.BaseTypes.XLANGMessage does not
implement Add(System.Object).
Exception type: InvalidOperationException
Source: System.Xml
Target Site: System.Type GetEnumeratorElementType(System.Type,
System.Xml.Serialization.TypeFlags ByRef)
The following is a stack trace that identifies the location where the
exception occured
at System.Xml.Serialization.TypeScope.GetEnumeratorElementType(Type
type,
TypeFlags& flags)
at System.Xml.Serialization.TypeScope.Im****tTypeDesc(Type type,
MemberInfo memberInfo, Boolean directReference)
at System.Xml.Serialization.TypeScope.GetTypeDesc(Type type, MemberInfo
source, Boolean directReference, Boolean throwOnError)
at System.Xml.Serialization.ModelScope.GetTypeModel(Type type, Boolean
directReference)
at
System.Xml.Serialization.XmlReflectionIm****ter.Im****tTypeMapping(Type
type, XmlRootAttribute root, String defaultNamespace)
at
System.Xml.Serialization.XmlReflectionIm****ter.Im****tTypeMapping(Type
type)
at
Microsoft.XLANGs.RuntimeTypes.DotNetTypeMetadata.get__XmlTypeMapping()
at Microsoft.XLANGs.RuntimeTypes.DotNetTypeMetadata.get_XmlSchema()
at
Microsoft.XLANGs.RuntimeTypes.CompilerMetaDataInfo.GetPropertiesForDotNetPartType(String
typeName, String assemblyLocation, String& formatterTypeName, String&
reflectedTypeName, String& targetNameSpace)
Thanks,
Jayendra


|