Hi Gurus,
I have a receive port which is bind to generic Xml Document. Which I can receive two different Xml messages , Both the type of messages I receive is not having NameSpace, One message is having only one node in it so I am adding Root node to that. So Once I receive Any One Message on Generic receive port I am Calling .net Component to add root nod and namespace which returns new Xml Doc.
But Once I receve modified message from Custom .net component, Before that I have two Schemas for two different messages which are like Newly modified messages.
But when I am trying to assign Newly formed message from .net component to typed message which I have created schema for that Its throwing me an error saying General System Exception: The type initializer for
‘AB.BIZ.Orchestrations.__AB_Common_Schemas_ErrorRes__’ threw an
exception.
I m doing lIke
msgErrorXml = varHelperCore.GetErrorResponse(msgGenericRMResponse);
varXmlDoc.LoadXml(@”<ns0:Errors xmlns:ns0=””http://AB.Common.Schemas.ErrorRes””>
<ERROR></ERROR>
</ns0:Errors>”);
varXmlDoc = msgErrorXml;
msgErrorRes.Response = msgErrorXml;
Please Help!!!!