Problem in running Service using msxml with webdav
-
Hi I’m creating one windows service in my own purpose Using msxml4.dll. The process of service is to fetch the data from exchange server through webdav SEARCH METHOD When i use this coding in windows form normal button click event , it works fine, When I convert into windows service, it throws the error The coding is below MSXML2.XMLHTTP objXMLHTTP = new MSXML2.XMLHTTP(); writemethod("After Initialize"); System.Xml.XmlDataDocument xmlDOMParams = new System.Xml.XmlDataDocument(); objXMLHTTP.open("SEARCH", strInboxURL,false,strAliasName, strPassword); objXMLHTTP.setRequestHeader("Content-type", "text/xml"); objXMLHTTP.setRequestHeader("Depth", "1"); string strXML; strXML = "" + " = \'DAV:\'>" + "" + "SELECT \"urn:schemas:httpmail:fromemail\"," + ------------------ ---------etc… objXMLHTTP.send(strXML); // Error Raised The Error Raised in when i send the xml query Any suggestion,please reply We are using c# Regards, Arunkumar S
-
Hi I’m creating one windows service in my own purpose Using msxml4.dll. The process of service is to fetch the data from exchange server through webdav SEARCH METHOD When i use this coding in windows form normal button click event , it works fine, When I convert into windows service, it throws the error The coding is below MSXML2.XMLHTTP objXMLHTTP = new MSXML2.XMLHTTP(); writemethod("After Initialize"); System.Xml.XmlDataDocument xmlDOMParams = new System.Xml.XmlDataDocument(); objXMLHTTP.open("SEARCH", strInboxURL,false,strAliasName, strPassword); objXMLHTTP.setRequestHeader("Content-type", "text/xml"); objXMLHTTP.setRequestHeader("Depth", "1"); string strXML; strXML = "" + " = \'DAV:\'>" + "" + "SELECT \"urn:schemas:httpmail:fromemail\"," + ------------------ ---------etc… objXMLHTTP.send(strXML); // Error Raised The Error Raised in when i send the xml query Any suggestion,please reply We are using c# Regards, Arunkumar S
Yes finally i identify the problem the problem caused in path of the inbox instead of ip address, i use hostname ex. http://xx.xx.xx.xx/exchange/emailaddress/inbox we use http://hostname/exchange/emailaddress/inbox :-D