<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Commenti a: Interrogare un servizio SOAP con Ruby</title>
	<atom:link href="http://www.tommyblue.it/2009/06/15/interrogare-un-servizio-soap-con-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tommyblue.it/2009/06/15/interrogare-un-servizio-soap-con-ruby/</link>
	<description>Bombardare per la pace è un po' come trombare per la verginità...</description>
	<lastBuildDate>Sun, 13 Nov 2011 21:31:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Di: superion</title>
		<link>http://www.tommyblue.it/2009/06/15/interrogare-un-servizio-soap-con-ruby/comment-page-1/#comment-499</link>
		<dc:creator>superion</dc:creator>
		<pubDate>Thu, 23 Jul 2009 19:29:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.tommyblue.it/?p=518#comment-499</guid>
		<description>Ciao, ti è mai capitato di accedere ad un webservice SOAP sotto basic authentication?&lt;br&gt;Io ne ho uno microsozz che però richiede uno username che contiene pure il carattere chiocciolina @&lt;br&gt;Ti riporto il codice:&lt;br&gt;&lt;br&gt;require &#039;soap/wsdlDriver&#039;&lt;br&gt;WSDL_URL = &#039;http://grl.lloy.net/grlweb/services/grlws.asmx?WSDL&#039;&lt;br&gt;s = SOAP::WSDLDriverFactory.new(WSDL_URL).create_rpc_driver&lt;br&gt;s.options[&#039;protocol.http.basic_auth&#039;] &lt;&lt; [WSDL_URL, &#039;websiteuser@lloy.net&#039;, &#039;zjikh4wxr10q&#039;]&lt;br&gt;&lt;br&gt;`follow_redirect&#039;: unexpected response: #&lt;HTTP::Message::Headers:0x3a3093c @body_date =nil, @status_code=401, @dumped=false, @request_method=nil, @body_charset=nil, @request_via_proxy=nil, @header_item=[[&quot;Content-Length&quot;, &quot;1656&quot;], [&quot;Content-Type&quot; , &quot;text/html&quot;], [&quot;Server&quot;, &quot;Microsoft-IIS/6.0&quot;], [&quot;WWW-Authenticate&quot;, &quot;Basic realm=&quot;grl.lloy.net&quot;&quot;], [&quot;X-Powered-By&quot;, &quot;ASP.NET&quot;], [&quot;Date&quot;, &quot;Thu, 23 Jul 2009 12:21:30 GMT&quot;]], @chunked=false, @body_size=0, @body_type=nil, @request_query =nil, @is_request=false, @http_version=&quot;1.1&quot;, @reason_phrase=&quot;Unauthorized&quot;, @request_uri=nil&gt; (HTTPClient::BadResponseError)&lt;br&gt;&lt;br&gt;Ovviamente perchè per accedere al WSDL devo prima autenticarmi.&lt;br&gt;&lt;br&gt;però il codice si schianta già nella riga dove istanzio WSDLDriverFactory.&lt;br&gt;Nella console mi trovo:</description>
		<content:encoded><![CDATA[<p>Ciao, ti è mai capitato di accedere ad un webservice SOAP sotto basic authentication?<br />Io ne ho uno microsozz che però richiede uno username che contiene pure il carattere chiocciolina @<br />Ti riporto il codice:</p>
<p>require &#39;soap/wsdlDriver&#39;<br />WSDL_URL = &#39;<a href="http://grl.lloy.net/grlweb/services/grlws.asmx?WSDL&#039;" rel="nofollow">http://grl.lloy.net/grlweb/services/grlws.asmx?WSDL&#039;</a><br />s = SOAP::WSDLDriverFactory.new(WSDL_URL).create_rpc_driver<br />s.options[&#39;protocol.http.basic_auth&#39;] &lt;&lt; [WSDL_URL, &#39;websiteuser@lloy.net&#39;, &#39;zjikh4wxr10q&#39;]</p>
<p>`follow_redirect&#39;: unexpected response: #&lt;HTTP::Message::Headers:0x3a3093c @body_date =nil, @status_code=401, @dumped=false, @request_method=nil, @body_charset=nil, @request_via_proxy=nil, @header_item=[["Content-Length", "1656"], ["Content-Type" , "text/html"], ["Server", "Microsoft-IIS/6.0"], ["WWW-Authenticate", "Basic realm="grl.lloy.net""], ["X-Powered-By", "ASP.NET"], ["Date", "Thu, 23 Jul 2009 12:21:30 GMT"]], @chunked=false, @body_size=0, @body_type=nil, @request_query =nil, @is_request=false, @http_version=&#8221;1.1&#8243;, @reason_phrase=&#8221;Unauthorized&#8221;, @request_uri=nil&gt; (HTTPClient::BadResponseError)</p>
<p>Ovviamente perchè per accedere al WSDL devo prima autenticarmi.</p>
<p>però il codice si schianta già nella riga dove istanzio WSDLDriverFactory.<br />Nella console mi trovo:</p>
]]></content:encoded>
	</item>
</channel>
</rss>

