Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JBoss/WildFly and the fly likes Junit to call webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Junit to call webservice" Watch "Junit to call webservice" New topic
Author

Junit to call webservice

Tanu Gulati
Ranch Hand

Joined: Oct 06, 2008
Posts: 113

i have a werservice which i deployed on a url now i want to call this web service from my Junit class. can you please tell how we can call a webservice from a junit class.


thanks
Tanu Gulati
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

You would do this the same way that you do it from a standalone client.


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Junit to call webservice