[WebMethod]
public System.Xml.XmlDocument GetObjects(System.Xml.XmlNode objectData)
{
doc = new System.Xml.XmlDocument();
try
{
doc.AppendChild(doc.ImportNode(objectData,true));
DL.SomeGlobalDataClasses.GlobalObject =
((DL.ObjectSerialized)ser.DeSerialize(doc,typeof(D L.ObjectSerialized))).Glob
alObjects; //Here Exception System.NullReferenceException: Object reference
not set to an instance of an object. Method DeSerialize work fine in other
content
}
catch(Exception e)
{
Console.WriteLine(e.ToString());
}
return doc;
}
Here
--
Tamir Khason
You want dot.NET? Just ask:
"Please,
www.dotnet.us "
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:Rd**************@cpmsftngxa06.phx.gbl...
Hi Tamir,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you have received an error message
when deserializing an XmlDocument in the WebService. If there is any
misunderstanding, please feel free to let me know.
Based on the information you have provided, it seems that the reference
hasn't been set to a valid XmlDocument object. Could you please paste your
code for serializing at client and deserializing at web service? Please
also paste the complete exception message here, so that we can provide out
assistance more quickly.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."