Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Problem in running Service using msxml with webdav

Problem in running Service using msxml with webdav

Scheduled Pinned Locked Moved C#
helpcsharpdatabasesysadminxml
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ArunkumarSundaravelu
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • A ArunkumarSundaravelu

      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

      A Offline
      A Offline
      ArunkumarSundaravelu
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups