Get capabilities document from server
capabilities = getCapabilities(server)
capabilities = getCapabilities(server) retrieves the capabilities document from the server as a WMSCapabilities object and updates the RequestURL property.
The getCapabilities method accesses the Internet to retrieve the document. Periodically, the WMS server is unavailable. Retrieving the document can take several minutes.