It’s annoying sometimes when there is only a live version of a web service and no test versions. It inhibits the testing of code that integrates with the web service because your best option, many times, is to test connected to the live service, and you don’t want to mess too much with live data (especially if it belongs to a client). I found a tool today that helps with this issue. It simulates a web service given a wsdl. It’s called soapUI (http://www.soapui.org/). I found it fairly easy to use, and it can be used on the command-line (http://www.soapui.org/userguide/commandline/mockrunner.html). The only down-side to it so far is that it requires java to be installed.
February 26, 2010
1 Comment »
RSS feed for comments on this post. TrackBack URI
Something else you could to is wrap your webservice API in an interface, and then using IoC(windsor) you just mock(Rhino Mock) it out and inject it.
Comment by Kevin Upchurch — February 27, 2010 @ 6:50 pm