This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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