From: Jan Svitok Date: 2007-02-20T08:11:19+09:00 Subject: Re: Web service client help needed On 2/19/07, dima wrote: > I still can do this web service right so I ask for some help please. > I got the wsdl and make a client with wsdl2ruby.rb. When I run ruby -d > client I got the following output: > > = Request > > ! CONNECT TO XXX.XXX.XXX.XXX:80 > ! CONNECTION ESTABLISHED > POST /DataFeed/DataFeed.asmx HTTP/1.1 > SOAPAction: "http://tempuri.org/ReturnLastPriceList" > Content-Type: text/xml; charset=utf-8 > User-Agent: SOAP4R/1.5.5 (http-access2.rb/1.1.1.1, ruby 1.8.5 > (2006-12-25) [i386 > -mswin32]) > Date: Mon Feb 19 20:41:00 +0100 2007 > Content-Length: 339 > Host: XXX.XXX.XXX.XXX > > > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > ZVDPR ReturnLastPriceList> > > > > > = Response > > HTTP/1.1 401 Access Denied > Server: Microsoft-IIS/5.0 > Date: Mon, 19 Feb 2007 19:40:40 GMT > WWW-Authenticate: Negotiate > WWW-Authenticate: NTLM > Connection: close > Content-Length: 4431 > Content-Type: text/html > > ...... > > I have this web service client in C# but I would like to make it on > ruby. I ask you for some help, example or a hint. > Thanks in advance. > > dima Just a guess (knowing almost nothing about IIS, NTLM nor WSDL): This seems to be an authentication problem. Somewhere (ruby's tracker? svn?) there's a patch that adds ntlm auth support for net/http. Perhaps you could try that. (see ruby-core:10341)