This post will walk through creating a simple camel route that will retrieve weather results from a SOAP web-service for cities contained in a CSV file and write the responses out to a file.
WSSimulator is a new open source library that easily allows for you to simulate web service calls and their responses. Useful for when can not (or don’t want to) interact with web services but need to still test these points in your code without mocking objects.
When to use WSSimulator?
- If you quickly need to serve up static repeatable content over HTTP.
- In integration tests when real web service calls cannot be made (for example, when the producing service does not yet exist, costs prohibit calling the services within tests or the services are not accessible). Continue reading