- Joined
- Feb 25, 2010
- Messages
- 14
- Reaction score
- 0
I used WEB Service to get data from our CDM system but the WEB Service founction is not work, I found if commen out the following stament on Main_MF_ws_DoIt.aspx manually, then every thing is OK. I think the problem is from the XmlHelper, Any idea ?
private string getRootElementValue(string xml)
{
if (!String.IsNullOrEmpty(xml))
{
XmlDocument xmlDocument = new XmlDocument();
// xmlDocument.LoadXml(XmlHelper.SanitizeXmlString(xml));
XPathNavigator rootNavigator = xmlDocument.CreateNavigator();
XPathNodeIterator rootIterator = rootNavigator.SelectChildren(XPathNodeType.Element);
if (rootIterator.MoveNext()) return rootIterator.Current.InnerXml;
}
return xml;
}
Errors_WebServicesInteraction.log :
-------------------------------------
2011-12-23 16:24:10.956
System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at ASP.main_mf_ws_doit_aspx.Page_Load(Object sender, EventArgs e) in c:\Documents and Settings\All Users\Application Data\3CX\Data\Http\Interface\ivr\WEBtest_Debug_35\Main_MF_ws_DoIt.aspx:line 96
Ricky
private string getRootElementValue(string xml)
{
if (!String.IsNullOrEmpty(xml))
{
XmlDocument xmlDocument = new XmlDocument();
// xmlDocument.LoadXml(XmlHelper.SanitizeXmlString(xml));
XPathNavigator rootNavigator = xmlDocument.CreateNavigator();
XPathNodeIterator rootIterator = rootNavigator.SelectChildren(XPathNodeType.Element);
if (rootIterator.MoveNext()) return rootIterator.Current.InnerXml;
}
return xml;
}
Errors_WebServicesInteraction.log :
-------------------------------------
2011-12-23 16:24:10.956
System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at ASP.main_mf_ws_doit_aspx.Page_Load(Object sender, EventArgs e) in c:\Documents and Settings\All Users\Application Data\3CX\Data\Http\Interface\ivr\WEBtest_Debug_35\Main_MF_ws_DoIt.aspx:line 96
Ricky