Search code examples
javaweb-servicessoapjunitsoa

How to test SOAP Services?


How do you guys Test your SOAP Services? Do you use Tools like soapUI or do you write Unit Tests? Just wanted to hear some opinions, what you prefer, what the advantages or disadvantages of both approaches are? And if someone writes Unit Tests, can you give me an example how to write those???

Edit: I developed a lot of REST services, which I usually tested using JUnit and a REST Client Framework. So when the REST Service was deployed, I was able to invoke those services with as a JUnit Test using a http connection. Is there something similiar in SOAP too? Does anyone have an example code for a SOAP Client?


Solution

  • The best way to test your SOAP service is by using the SOAPUI testing tool.

    With JDEF you can create your SOAP Application, following SOAP standards - and then easily verify this through the Enterprise Manager Console provided by Oracle.

    You just get an instance of that particular service, and then you can see the audit flow.