Disclaimer: My Sharepoint knowledge is slim, and my Ruby knowledge is novice-moderate.
I need to be able to programmatically upload files to a Sharepoint server. So far, I've been looking into the Savon gem (patched to add NTLM auth) to accomplish this.
Sample code so far:
require 'rubygems'
require 'savon'
WSDL_URL = 'http://<server removed>/_vti_bin/Lists.asmx?wsdl'
SP_USERNAME = 'user'
SP_PASSWORD = 'password'
client = Savon::Client.new(WSDL_URL)
client.request.ntlm_auth(SP_USERNAME, SP_PASSWORD)
puts client.wsdl.soap_actions
This all works fine, but I'm at a loss where to go next in order to upload files. Any help would be appreciated.