This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes Web Services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Web Services" Watch "Web Services" New topic
Author

Web Services

Stefan Bell
Ranch Hand

Joined: Aug 26, 2003
Posts: 82
My company is just starting to implement some web services. We are doing the back end and each division will design their own GUI. My question is if there are any other way to test web services and does junit/cactus handle using this protocol. We use WebSphere and our Ant scripts are built in to run our tests nightly, but this is first endeavor into web services and I was just looking for some input from the testing side of it. Thanks...
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
How difficult / easy w'd it be to provide for this in cactus? But am kind of confused a little too. I guess the *actual* service will be coded using java/.net / some other language and these can be tested using tools like Cactus.
As far as i understand webservice is just a wrapper on top of the service implementation that we have.
So what c'd be the requirement spec of such a tool?.
Looks like such a framework then needs to reside inside a Web Service engine that can understand soap? and what else? I s'd be able to assert against a soap response..Will the framework itself be a webservice?
Stefan Bell
Ranch Hand

Joined: Aug 26, 2003
Posts: 82
i guess what i was asking is if you need additional testing because it is a web service? Like I said this is my first time doing a web service and just wondering if there was some default test that should be ran. The coding will be the same (java) in WSAD but the protocol will be different and we will be using some classes that I have never used. I am just starting it and at this time don't know what to expect and what the best way to phrase the question. Once I get into it and start coding I will be more informed. I was just trying to get it organized and getting everything lined up and testing was part of that.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I'd suggest testing the back-end as usual, and writing a separate set of functional tests that operate over the web services wrapper (perhaps just a JUnit TestCase using Axis' client libraries).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Web Services
 
Similar Threads
Which java based webservices implementation
is there any differences between clustring and load balancing WS and EJBs?
Secure Web Services
What we can use to load test our web services?
How to build RESTful Web services in Java