P
Paulo
exportapedidoSoapClient ExpPedido = new exportapedidoSoapClient();
//WebService
XmlNode testeNode = ExpPedido.ExportaPedido(963); //Executing WebSvc method
XmlDocument xmlDoc = new XmlDocument(); //Create a XML Doc
foreach (XmlNode node2 in testeNode.ChildNodes)
{
xmlDoc.CreateElement(node2.Name);
xmlDoc.ImportNode(node2, true);
}
xmlDoc.Save("teste.xml"); //<--ERROR
-------------------------------------------------
I need to save the result to a XML file... How can it be done? What am I
doing wrong? Can you help me?
Thanks
Using C# 3.5 Express
__________ Information from ESET Smart Security, version of virus signature database 3599 (20081110) __________
The message was checked by ESET Smart Security.
http://www.eset.com
//WebService
XmlNode testeNode = ExpPedido.ExportaPedido(963); //Executing WebSvc method
XmlDocument xmlDoc = new XmlDocument(); //Create a XML Doc
foreach (XmlNode node2 in testeNode.ChildNodes)
{
xmlDoc.CreateElement(node2.Name);
xmlDoc.ImportNode(node2, true);
}
xmlDoc.Save("teste.xml"); //<--ERROR
-------------------------------------------------
I need to save the result to a XML file... How can it be done? What am I
doing wrong? Can you help me?
Thanks
Using C# 3.5 Express
__________ Information from ESET Smart Security, version of virus signature database 3599 (20081110) __________
The message was checked by ESET Smart Security.
http://www.eset.com