|
|
|
| HOME | J2ME | Struts | AJAX | SOAP | SOA | MEDIA STREAMING | AXIS | | |
|
|
AXIS Hello World ProgramBack | Tutorial Home | Next Here is the simple Hello World Program. Click here to Download this source code of this example
Wow!! This is the simplest it can get. And this is the only java file you need to write. Now lets create services.xml
Above xml defines that
Now finally have a look at the ant build file build.xml In AXIS2_HOME\samples create a new folder helloworld. Create folders in helloworld folder as shown in the following picture
Finnaly execute following command ant generate.service in helloworld folder A new folder build is created which has HelloWorldService.aar. This is the service executable. Place HelloWorldService.aar in the <Tomcat-Home>\webapps\axis2\WEB-INF\services folder And check the following URL to check the loading of the service
The HelloWorldService should be visible as shown in the below picture
You might need to restart your Tomcat if the service HelloWorldService is not visible in the service console. Use following URL to execute the web service http://localhost:8080/axis2/services/HelloWorldService/getHello?username=Tom You will get following response on your browser
Congratulations your Hello World web service is up and running WSDL File WSDL file can be viewed by URL
It can also be created by using ant command
XSD File XSD file can be viewed using following command
Back | Tutorial Home | Next site comments powered by Disqus |
|
| toolbar powered by Conduit |
|
| Copyright © 2009. All rights reserved | Terms and Conditions | About | Contact | Feed Back | |