Share Point Serverä¸ã«ãã©ã«ããä½æãããµã³ãã«
Share Point Serverä¸ã®æå®ãããµã¤ã以ä¸ã«ãã©ã«ããä½æãããµã³ãã«ã§ããä¾ã«ãã£ã¦Webãµã¼ãã¹ãå©ç¨ãã¦ãã¾ãã
- WSSã¯ã©ã¹ã¯å¥ãã¡ã¤ã«ã«åé¢ãã¾ããã
- åºæ¬çã«ã¯æ¨æ¥ã®å®è£
ã¨åãã§ããããXSD:: Charset.encoding="UTF8"ãã®è¨å®ã追å ãã¦ãã¾ãã
- æå®ããªãå ´åããªã¯ã¨ã¹ããã¬ã¹ãã³ã¹ã«æ¥æ¬èªãå«ã¾ãã¦ããå ´åãããããããªãã¨ã©ã¼ã«ãªãã¾ãã
- åºæ¬çã«ã¯æ¨æ¥ã®å®è£
ã¨åãã§ããããXSD:: Charset.encoding="UTF8"ãã®è¨å®ã追å ãã¦ãã¾ãã
- ä½æãããã©ã«ãã¯ãããµã¤ããããã®ç¸å¯¾URL(ä¾:"Shared Documents/ãã¹ããã©ã«ã")ã§æå®ãã¾ãã
- ãå ±æããã¥ã¡ã³ããã¯å é¨çã«ã¯ãShared Documentsãã¨ãªã£ã¦ãããããªã®ã§æ³¨æã
require 'wss' home = WSS.new( "SharePointServerã®ãã¹ãå", ãã¼ã, "<ã¦ã¼ã¶ã¼å>", "<ãã¹ã¯ã¼ã>" ) dws = home.service(:Dws, "ãµã¤ãã®ãã¹ ä¾) sites/foo") result = dws.createFolder( { "url"=>"Shared Documents/ãã¹ããã©ã«ã" }) p result.createFolderResult
wss.rbã¯ä»¥ä¸ã§ãã
require 'rubygems' require 'httpclient' require 'soap/wsdlDriver' XSD:: Charset.encoding="UTF8" class WSS def initialize( host, port, user, pass ) @host = host @port = port @user = user @pass = pass end def service( name, target ) wsdl = "http://#{@host}:#{@port}/#{target}/_vti_bin/#{name}.asmx?WSDL" driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver driver.options["protocol.http.basic_auth"] << ["http://#{@host}:#{@port}",@user,@pass] return driver end end