Invoking Exchange Server 2007 Web Services
I have CF 8,0,1,195765 Standard on Windows Server 2003 and Exchange Server 2007. I exported a certificate from Exchange and installed it in CF's default keystore (since my Exchange requires SSL) and restarted CF. Variable `xmlOut` is an XML document requesting an operation ('CreateItem').
Below is the code that fails with "Error: 401 Unauthorized. / Unable to read WSDL from URL: https://myServer/EWS/Exchange.asmx.":
<cfscript>
objWS = CreateObject("webservice", "https://myServer/EWS/Exchange.asmx");
response = objWS.CreateItem(xmlOut);
</cfscript>
I realize an HTTP 401 error is security/permission-related but to the best of my knowledge the cert is installed in CF correctly. I cannot append our internal domain to the server name because CF throws "Error: javax.net.ssl.SSLException: Name in certificate `myServer' does not match host name `myServer.my.domain'.", so it appears CF and IIS are communicating at the SSL level.
I can browse the Exchange.asxm file but the browser is immediately redirected to Services.wsdl. Browsing the .asmx URL in FireFox 3 causes a prompt for domain username and password while IE 7 does not. Is CF encountering the same underlying prompt, even though a certificate is used?
Anyone have experience doing this? Thanks.
