Thank you.
Actually, what I wound up doing is something like this:
[WebMethod]
public XmlDocument Order(XmlDocument doc)
{
IOrder rObj = (IOrder)Activator.GetObject(typeof(IOrderCert),
ConfigurationManager.AppSettings["PocRemotingServer"]);
string ret = rObj.Order(doc.InnerXml);
XmlDocument retxml = new XmlDocument();
retxml.InnerXml = ret;
return retxml;
}
On the remote server side, I rebuild the XmlDocument and consume it in the
Business Logic Layer, which expects and XmlDocuement.
All a bit hokey and I am at a loss to explain why Microsoft decided to make
such an obvious task a bit of a hassle.
"chanmm" <ch*****@hotmail.com> wrote in message
news:eM**************@TK2MSFTNGP02.phx.gbl...
You can put you XML into dataset and pass it like this:
private DataSet GetUserData()
{
// Set the path of the XML file and XML schema.
string strPath = Server.MapPath(".");
// Declare a data set.
DataSet dsUsers = new DataSet();
// Apply the XML schema to data set.
dsUsers.ReadXmlSchema(strPath + "\\UserInfo.xsd");
// Read the XML into the data set.
dsUsers.ReadXml(strPath + "\\UserInfo.xml");
return dsUsers;
}
chanmm
"William" <nf*@nospam.com> wrote in message
news:Oh**************@TK2MSFTNGP04.phx.gbl...I don't get it? Of all things, shouldn't an XmlDocument type be
serializable
by default? How can I pass this type through a remoting service?
It just doesn't make sense, especially since DataSets can be passed,
which are XML.