Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Biz Talk Orchestration > Serializing Xla...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 4110 of 4219
Post > Topic >>

Serializing Xlang Message

by =?Utf-8?B?cHJha2FzaHZhcm1h?= <prakashvarma@[EMAIL PROTECTED] Apr 20, 2008 at 01:14 AM

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
 




 4 Posts in Topic:
Serializing Xlang Message
=?Utf-8?B?cHJha2FzaHZhcm1  2008-04-20 01:14:00 
Re: Serializing Xlang Message
Dan Rosanova <dnova7@[  2008-04-21 07:41:38 
RE: Serializing Xlang Message
=?Utf-8?B?YmhhcmF0aA==?=   2008-05-15 18:14:01 
Re: Serializing Xlang Message
Dan Rosanova <dnova7@[  2008-05-19 08:52:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 6:25:00 CST 2008.