<< April 17, 2008 | Home | April 19, 2008 >>

Testing a web service

During the last two weeks I've been busy building a web service at work. It's the first web service for the company I work at as well as the first web service I've ever built so it's been fun to learn a couple of new things.

The work flow consists of a couple of steps, one of them being a connection to another service performing a payment of a credit card if it's a credit card order. I wanted to be sure that it could sustain a fair load and went googling for that kind of tool.

I found soapUI and it's great! It took a couple of hours, but after that I had a call to the web service up and running. A test that asserted a valid soap response as well as a XPath expression that counted the number of messages returned and checked them for correct return codes. Also a load test running tests for both invoice and credit card payments. Really powerful and cool I must say.

Not only that, it also got a good documentation which makes setting up a project really smooth. I will definitely recommend that we buy the Pro version for the next web service project!

Read more...