jr3 (63K)

Java Web Services

Posted by closetmaster Tue, 24 Jan 2006 23:26:00 GMT

Steps for providing and consuming a web service with Java web services development pack.

Provide
  1. Write and compile .jws file, place in (move to) the correct folder and access with a web browser
  2. Download wsdl file from .jws file in browser, run wsdl2java on it
  3. Find .java files generated by wsdl2java; compile them and move the .class files generated into Tomcat\axis\WEB-INF\classes… folder
Consume
  1. Write html page that POSTs to servlet file; place in servlet folder
  2. Write servlet file that extends HTTPServlet; compile and place in servlet\WEB-INF\classes\package…
  3. Place axis libraries in the lib folder in servlet\WEB-INF

◙ Have J2EE listen on port 8080 and Tomcat listen on 80.

◙ Double check spelling!!!


designed by jowensbysandifer