Monday, June 12, 2006

Eclipse WTP Tomcat axis Web Service

in eclipse
. create a server instance
. switch to J2EE perspective
. create dynamic web project
. "web Content" --> import the wsdl file
. file->new->web service -> top down from wsdl
. make sure the an instance of the server is created and started in eclipse with the web service running
. check the following in web browser
http://localhost:8080/WebServiceTest/services , it should display something as below:

And now... Some Services
AdminService (wsdl)
AdminService
Version (wsdl)
getVersion

. windows->preference->java->Installed JRE->JDK1.5->add External JARs to inlcude activations.jar and mail.jar from jaf and javamail. (this will remove the attachment not supported warning)


P.S. it is not http://localhost:8080/WebServiceTest/ which only returns HTTP Status 404 - /WebServiceTest/


Ref: http://www.eclipse.org/webtools/jst/components/ws/1.5M6/tutorials/TopDownWebService/TopDownWebService.html

No comments: