From: Mark Thomas Date: 2009-03-27T18:16:43+09:00 Subject: Re: SOAP and NTLM Authentication On Mar 26, 6:50 pm, Andrew Porter wrote: > [Note:  parts of this message were removed to make it a legal post.] > > I'm trying to integrate with Sharepoint Services, and need to connect   > to the server using NTLM authentication. I can't get the following   > lines of code to work: > > WSDL_URL = 'http://sharepoint.wavetronix.local/_vti_bin/lists.asmx?WSDL' > soap = SOAP::WSDLDriverFactory.new(WSDL_URL).create_rpc_driver > > I keep getting a 401, "Unauthorized" error. This code does work: > > client = HTTPClient.new > client.set_auth(nil, 'DOMAIN\username', 'password') > response = client.get(WSDL_URL) > > All examples I find show setting authorization properties AFTER the   > create_rpc_driver call above. I need to authorize BEFORE so I can   > actually access the WSDL file. How do I do this? http://markthomas.org/2007/09/12/getting-started-with-soap4r/