Web Service unit testing
I have developed an java based Web service and deployed in JBoss. I want to develop an Junit test case for the web service. JUnit test case development of web service can be done in two ways, they are
1. Consuming the Web service (using WSDL link) generating stub and writing the junit test case.
2. Creating test folder in the source and developing an junit test case.
Here, i want to know, which is most used method to develop an junit test case for WS?