This handler create a file that is then uploaded to a SharePoint document library using an HTTP Put method call. Before making the call, the handler appends an extension to the file (if necessary). It then uses the given parameters to form the URL where the new file will be uploaded to. Lastly, the call is made (using the Rest Client gem) and the file is created and uploaded to the specified SharePoint document library. If the document library has versioning enabled, a duplicate file name will be uploaded as a new version and the file will be overwritten if versioning is disabled (versioning is disabled by default in new libraries). Any errors that occur during this process will be caught and re-raised by the handler. Authentication is done through SSL, so the SharePoint site being accessed needs to be setup to allow SSL connections.
Make sure the SharePoint Web Services database is turned on.