CSIG WS Creating Web Services
CSIG WS Creating Web Services
Presented by
Ashraf Memon
Hands-on
Ashraf Memon, Ghulam Memon
2
Overview
Generating Service
• Navigate to solutions directory c:\data\csig05\ws\solutions
• Open command prompt by right clicking on the math
directory and selecting “Command Prompt Here”
• Change to math directory by typing following at the
command prompt
cd math
• Compile Math.java file by typing following at command
prompt
javac Math.java
• Run program by typing following at command prompt
java Math
• Output should be
Sum of 3 and 4 is 7
• Type exit on the command prompt to quit
7
• Navigate to C:\tools\tomcat4.1\webapps\axis\WEB-INF\
• Open command prompt by right clicking on the classes
directory and selecting “Command Prompt Here”
• Change to classes directory by typing following at the
command prompt
cd classes
• Set classpath by typing classpath.bat on the command
prompt
• Execute deployment descriptor by typing deploy.bat
deployMath.wsdd at command prompt
• This will deploy math webservice on Axis SOAP Server
• Test it by going to http://localhost/axis/ and navigating
to Math Service
9
Next Chapter