# Testing code that calls a SOAP service with RSpec

**URL:** <https://www.ruby-forum.com/t/testing-code-that-calls-a-soap-service-with-rspec/128281>\
**Category:** Ruby\
**Created:** [February 6, 2008, 11:58am UTC](https://www.ruby-forum.com/t/testing-code-that-calls-a-soap-service-with-rspec/128281 "2008-02-06T11:58:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![timperrett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Post date:** [February 6, 2008, 11:58am UTC](https://www.ruby-forum.com/t/testing-code-that-calls-a-soap-service-with-rspec/128281/1 "2008-02-06T11:58:19Z")

</div>

Hey chaps,

I have a load of code that is dependent on calling a webservice. Im not  
sure how to go about writing the tests for it however - presumably I  
need to mock it somehow? Might someone be able to point me in the right  
direction?

Cheers

Tim
