I am just wondering, is there any Java library to test SOAP web services?
Here is my requirement. There is already an existing web service. The web service can be used to create a record in the database by sending number of input parameters along with authentication in the SOAP header. Now I want to test this web service with different combinations of data and assert the data in the database.
It will be handy if there is an API such that I can create my own automated test suite in Java by interacting with that API. I can handle the response and assert the data in database using JDBC and I also need to verify it on the UI Screen using Selenium.
I came across several APIs in this page: http://java-source.net/open-source/web-services-tools
I am not sure whether I can use API Apache Axis2 in my situation or not.
I know we can use SOAP UI but there is not much documentation. https://www.soapui.org/developers-corner/integrating-with-soapui.html
Any thoughts on this?
Thanks.
SOAP-UI is one of the leading web service testing tools. We have used it at my company for years and now use it for nightly automated testing of 100's of different web services, both SOAP and REST.
It has a significant user community, including right here on Stack Overflow. There is good documentation out there although I agree it can be hard to find.
SOAP-UI exposes its object model via Groovy, so you should be able to integrate with custom Java code. In fact, it supports JDBC out of the box, so you might be able to do your database assertions without writing custom Java code.
The tool also provides decent high-level abstractions around different types of requests, thus you do not have to be a developer to author SOAP-UI tests.