Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis 2 WebSevice - Testing

 
kri shan
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any answer ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic