3 Replies Latest reply on Sep 19, 2007 5:21 AM by pheppler

    Exchange 2007 webservices

      seems that i can't connect to an exchange 2007 with cfexchangecalendar, 'cause MS changed something in webDAV.
      So the alternative seems to be webservices. So i tried the following:
      <cfinvoke webservice="https://myserver/ews/exchange.asmx" method="GetUserAvailability" returnvariable="result">
      <cfdump var="#result#">
      Name: https://myserver/ews/exchange.asmx. WSDL: https://myserver/ews/exchange.asmx. org.xml.sax.SAXException: Fatal Error: URI=null Line=11: The element type "META" must be terminated by the matching end-tag "</META>". It is recommended that you use a web browser to retrieve and examine the requested WSDL document for correctness. If the requested WSDL document can't be retrieved or it is dynamically generated, it is likely that the target web service has programming errors.

      The next problem is the documentation of this webservices.
      What is to be inserted for Impersonation, S2SAuth and MailboxCulture?
      Means Impersonation the Exchange Username?
      Searched at MSDN but found nothing helpful.

      Anyone used this?

      Thanks in advance
        • 1. Re: Exchange 2007 webservices
          Dipanwita S Level 1

          We have tested cfexchange tags on Exchange 2007 and cfexchangeCalendar does work on it. What is it that you want to do using cfexchangeCalendar and what error do you get? You can post sample code so that we can try to reproduce the issue here and help you out accordingly.

          Thanks & Regards,
          • 2. Exchange 2007 webservices
            pheppler Level 1
            i created an entry in outlook, called "Test CF". Then i checked in the Outlook Web Access, that the calendar is synchronized.
            Then i used that code attached and got htis Error:
            Requested Exchange resource was not found on the server.

            The error occurred in D:\IntranetServer\apache\htdocs\cronjobs\exchangecal.cfm: line 10

            8 :
            9 : <cfexchangecalendar action="get" name = "theUID" connection = "testconn1">
            10 : <cfexchangeFilter name="subject" value="Test CF">
            11 : </cfexchangeCalendar>
            12 : <cfdump var="#theUID#">

            Also tried without filter, 'cause i have only one entry in my calendar, but got the same error.
            I would use CF to enter events in the exchange calender, based on entries in our intranet calendar.
            I can query my Mails with the same connection. Maybe the exchange is misconfigured?
            • 3. Exchange 2007 webservices
              pheppler Level 1
              Now tried another example code and got this:
              Exchange resource conflict error.
              Possible reasons: - The client has provided a value, the semantics of which are not appropriate for the property , for example, trying to set a read-only property. - Cannot put a resource if all ancestors do not already exist.
              The error occurred in D:\IntranetServer\apache\htdocs\cronjobs\exchangecal.cfm: line 47

              45 : server="mailer.company.com"
              46 : event="#sEvent#"
              47 : result="theUID" protocol="https">
              48 : <!--- Output the UID of the new event. --->
              49 : <cfif isDefined("theUID")>

              I guess the error occures in matter of formatting date / time values. I entered the date 2007-09-22 and time as 08:00
              Is there a special rule how to format this values for exchange?