aspose file tools*
The moose likes Testing and the fly likes Axis 2 WebSevice - Testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Axis 2 WebSevice - Testing" Watch "Axis 2 WebSevice - Testing" New topic
Author

Axis 2 WebSevice - Testing

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
I have implemented WebServices using Axis 2. I followed top-down approach(ie: creating java classes from WSDL). How to test my WebServices? Currently i am sending the request(data) from UI layer to WebServices and checking the DB. My WSDL has just XML messages. I do not want send my request from UI layer thru WebService to DB layer. I want to test WebService layer alone. Any suggestion (or) tool recommendation ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Do you want to test the results of your services, or do you want to actually test the web service container itself?

If you're just testing the service methods themselves, then just call the methods in your services. If you want to test the full stack, you can do something as easy as using HttpUnit (or an equivalent), or create client wrappers automagically (like Jersey, or whatever that's called) and do it through the full stack.
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
Hi David, I want to test the full stack using opensource or commercial tools. Looks Jersey Test Framework supports RESTful Web Services. My Axis2 WebService is SOAP based document/literal.
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
Any answer ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Axis 2 WebSevice - Testing