Hi guys
I'm currently using Eclipse 3.6 (Helios). I have tried using Ant wsgen
task but that doesn't exist on Ant (what am I missing?)
I want to generate a Web Service WSDL from the following sample code:
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
/**
* @author Let's keep this private for now :p
* @since 19 July 2010
*
*/
@WebService(name="SampleWS")
@SOAPBinding
(
style = SOAPBinding.Style.DOCUMENT,
use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.WRAPPED
)
public class SampleWSImpl implements SampleWS {
private static String userName;
/* (non-Javadoc)
* @see SampleWS#setUserName(java.lang.String)
*/
@WebMethod
@Override
public void setUserName(@WebParam(name="userName") String userName) {
// TODO Auto-generated method stub
this.userName = userName;
}
/* (non-Javadoc)
* @see SampleWS#getUserName()
*/
@WebMethod
@Override
public String getUserName() {
// TODO Auto-generated method stub
return userName;
}
}
Using Eclipse Axis 1.4 Web Service generator, it works fine. However, I want to get away from using Axis 1 completely.
Thanks in advance.
PPS* How do I setup Eclipse to use Axis2?