<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brain Matters &#187; soap4r</title>
	<atom:link href="http://blog.agoragames.com/tag/soap4r/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.agoragames.com</link>
	<description></description>
	<lastBuildDate>Mon, 16 Aug 2010 19:36:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>wiredump_dev = STDERR</title>
		<link>http://blog.agoragames.com/2009/08/11/wiredump_dev-stderr/</link>
		<comments>http://blog.agoragames.com/2009/08/11/wiredump_dev-stderr/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 15:12:35 +0000</pubDate>
		<dc:creator>David Czarnecki</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[soap4r]]></category>
		<category><![CDATA[wiredump_dev]]></category>

		<guid isPermaLink="false">http://blog.agoragames.com/?p=337</guid>
		<description><![CDATA[If you are ever debugging SOAP web services from Ruby and wondering what information is going across the wire to/from the web service, wiredump_dev = STDERR, may be your best friend.

def some_method_that_uses_a_soap_web_service
storage = SOAP::WSDLDriverFactory.new(STORAGE_WSDL).create_rpc_driver
...
storage.wiredump_dev = STDERR
response = storage.DoSomething(...)
end

When the DoSomething web service method is called, the Ruby SOAP library will print out the request and [...]]]></description>
			<content:encoded><![CDATA[<p>If you are ever debugging SOAP web services from Ruby and wondering what information is going across the wire to/from the web service, wiredump_dev = STDERR, may be your best friend.</p>
<pre class="brush: ruby">
def some_method_that_uses_a_soap_web_service
storage = SOAP::WSDLDriverFactory.new(STORAGE_WSDL).create_rpc_driver
...
storage.wiredump_dev = STDERR
response = storage.DoSomething(...)
end
</pre>
<p>When the DoSomething web service method is called, the Ruby SOAP library will print out the request and response to STDERR.</p>
<p>It is invaluable. Trust me!</p>
<p>Follow-up (8/13/2009): A friend pointed me at <a href="http://github.com/troelskn/handsoap/tree/master">Handsoap</a>, a library for creating SOAP clients in Ruby, which is an alternative to SOAP4R. It apparently does not suck. YMMV.</p>




	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fblog.agoragames.com%2F2009%2F08%2F11%2Fwiredump_dev-stderr%2F&amp;title=wiredump_dev%20%3D%20STDERR" title="Reddit"><img src="http://blog.agoragames.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.agoragames.com%2F2009%2F08%2F11%2Fwiredump_dev-stderr%2F&amp;title=wiredump_dev%20%3D%20STDERR&amp;bodytext=If%20you%20are%20ever%20debugging%20SOAP%20web%20services%20from%20Ruby%20and%20wondering%20what%20information%20is%20going%20across%20the%20wire%20to%2Ffrom%20the%20web%20service%2C%20wiredump_dev%20%3D%20STDERR%2C%20may%20be%20your%20best%20friend.%0D%0A%0D%0A%5Bsourcecode%20language%3D%27ruby%27%5D%0D%0Adef%20some_method_that_uses_a_soap_w" title="Digg"><img src="http://blog.agoragames.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.agoragames.com%2F2009%2F08%2F11%2Fwiredump_dev-stderr%2F&amp;title=wiredump_dev%20%3D%20STDERR&amp;notes=If%20you%20are%20ever%20debugging%20SOAP%20web%20services%20from%20Ruby%20and%20wondering%20what%20information%20is%20going%20across%20the%20wire%20to%2Ffrom%20the%20web%20service%2C%20wiredump_dev%20%3D%20STDERR%2C%20may%20be%20your%20best%20friend.%0D%0A%0D%0A%5Bsourcecode%20language%3D%27ruby%27%5D%0D%0Adef%20some_method_that_uses_a_soap_w" title="del.icio.us"><img src="http://blog.agoragames.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.agoragames.com%2F2009%2F08%2F11%2Fwiredump_dev-stderr%2F&amp;t=wiredump_dev%20%3D%20STDERR" title="Facebook"><img src="http://blog.agoragames.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fblog.agoragames.com%2F2009%2F08%2F11%2Fwiredump_dev-stderr%2F&amp;t=wiredump_dev%20%3D%20STDERR&amp;s=If%20you%20are%20ever%20debugging%20SOAP%20web%20services%20from%20Ruby%20and%20wondering%20what%20information%20is%20going%20across%20the%20wire%20to%2Ffrom%20the%20web%20service%2C%20wiredump_dev%20%3D%20STDERR%2C%20may%20be%20your%20best%20friend.%0D%0A%0D%0A%5Bsourcecode%20language%3D%27ruby%27%5D%0D%0Adef%20some_method_that_uses_a_soap_w" title="Tumblr"><img src="http://blog.agoragames.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=wiredump_dev%20%3D%20STDERR%20-%20http%3A%2F%2Fblog.agoragames.com%2F2009%2F08%2F11%2Fwiredump_dev-stderr%2F" title="Twitter"><img src="http://blog.agoragames.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.agoragames.com/2009/08/11/wiredump_dev-stderr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->