How to Configure the Web Services URLs Used by Outlook 2007
While Exchange 2007 added several new technologies to the product, the most significant addition is the collection of Web Services. Exchange Web Services provide ways to connect to and access data within Exchange using only HTTP as a protocol. This is a huge improvement over older methods like WebDAV, CDOEX, and ExOLEDB primarily because it enables access from anywhere, using an authenticated connection that can be secured using SSL. Whether proxied or accessed directly, clients can connect to Exchange over an HTTPS connection whether on the internal network or across the Internet, greatly extending the reach for many services.
These web services standardize the access method, but still embrace several industry standard specifications including HTTP, XML, SOAP, and WSDL, simplifying the developers work without compromising security. Twenty-nine operations are available, spanning item manipulation, search, subscription, and user actions. These can be leveraged by Outlook clients, as well as by third party software that wish to interact with Exchange. The most commonly accessed Exchange web services are:
- The Offline Address Book (OAB),
- Availability Services and Out Of Office (OOF) responses,
- Unified Messaging.
Clients typically use the Autodiscover service to locate the connection endpoints, or Exchange Web Service URLs. When you deploy Exchange, the Autodiscover service is able to determine the internal URLs to provide clients, based on both the NetBIOS and internal FQDN of the server hosting these services, i.e. your CAS server. Unless you are using the same DNS zone internally and externally, these endpoints won’t work for external users. You must configure the URLs Outlook will use when not connected to the internal network (locally, VPN, or Direct Access) so that remote clients can still reach the Exchange Web Services.
Configuring the URLs Outlook will need to access can be done using the Exchange Management Shell. You can also change the internal URLs used should you implement a CAS array and want to point clients to the DNS name associated with the VIP of the new array. Internally, clients will use a Service Connection Point published in Active Directory to find the Autodiscover service, and externally they will use DNS queries to find the ip.addr of the autodiscover.example.com FQDN. In both cases, they will be looking for an XML file that contains information on the Exchange Web Services URLs.
The following examples use the NetBIOS name excas01, the internal FQDN excas01.domain.local, and the external FQDNs in example.com. Each command wraps due to formatting; they should be entered as a single line of text.
To update the SCP in Active Directory for internal clients:
Set-ClientAccessServer –identity EXCAS01 –AutoDiscoverServiceInternalUri: https://excas01.domain.local/Autodiscover/Autodiscover.xml [enter]
To set the OAB WebService URL, use this command, which will set both the internal and external URLs.
Set-OabVirtualDirectory EXCAS01\OAB* -InternalUrl https://excas01.domain.local/OAB -ExternalUrl https://mail.example.com/OAB [enter]
To set the Availability and OOF URL, use this command, which will set both the internal and external URLs.
Set-WebServicesVirtualDirectory EXCAS01\EWS* -InternalUrl https://excas01.domain.local/EWS -ExternalUrl https://mail.example.com/ews/exchange.asmx [enter]
To set the Unified Messaging URL, use this command, which will set both the internal and external URLs.
Set-UMVirtualDirectory EXCAS01\UnifiedMessaging* -InternalUrl https://excas01.domain.local/UnifiedMessaging -ExternalUrl https://mail.example.com/unifiedmessaging/service.asmx [enter]
And with those commands, you have what you need to change and update your Web Services URLs when necessary. Make sure that if you are publishing Exchange Web Services through an ISA or TMG server that you update your publishing rules when making changes to the external URLs. Unless you are using a wild card certificate, you will also want to be certain that the new URL is listed as either the CN or one of the SANs of the certificate, or clients will begin to see certificate warning dialogs after you change the URLs.