3

I provide a web service to my organisation. i was wondering would anyone recommeding the use of apache cactus for setting up a testing framework or has anyone worked with any other web service frameworks that may be useful?

Thanks Damien

asked Oct 14, 2008 at 9:41
1

3 Answers 3

4

As you are dealing with a web service you would not need to use Jakarta Cactus and could get away with writing plain old JUnit tests.

The tests would take two forms:

1. Does the underlying functionality work as expected?

This has nothing to do with the web service itself but the underlying functionality it provides. e.g. Does your Data access objects retrieve/process data correctly? Hopefully your web service interface and the underlying functionality are not tightly coupled.

2. Does the live web service (be it SOAP/REST/XMLRPC) function correctly?

In this case a good way to test this is to build a web service client and write tests to see whether this client works correctly against the web service. e.g. Use Axis/CXF/XFire to build the web service client and then write JUnit tests for the data it returns.

Also remember to target your testing towards what the end users of this web service will be using. If you have written a Java web service but it is being consumed by .Net clients then make sure you test the service against a .Net client. SOAP services are especially troublesome when it comes to consistent cross-platform behavior.

answered Oct 14, 2008 at 9:57
Sign up to request clarification or add additional context in comments.

1 Comment

Hi David Thanks so much for these responses. These points are very valid and i will definitely look at implementing them. Thanks Damien
3

There is an open source application called SoapUI(http://www.soapui.org/). With this application, you can do 1) manual testing of webservices OR 2) use groovy (a java like scripting) language to do functional testing.

It works pretty well and a lot of organizations are using it. They have an open source version as well as a commercial (with more functionality and support) version. Check it out.

answered Oct 14, 2008 at 9:58

Comments

1

Apache retired Jakarta Cactus on 2011年08月05日, so it can't be recommended for any new project.

answered Jun 10, 2013 at 12:32

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.