Learning Apache Axis - I
In the past couple of weeks, I had been getting a lot of fundamental doubts in Web Services, so a friend asked me to learn Apache Axis to get an understanding on Web Services. So, I started with writing a simple web service and deploying it on Axis. Following are the steps to do so.
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="OrderService" provider="java:RPC">
<parameter name="className" value="OrderService"/>
<parameter name="allowedMethods" value="*"/>
</service>
</deployment>
I will provide more details in subsequent posts.
- Create a webapp for axis in Tomcat or any other web container ($:\apache-tomcat-5.5.17\webapps\axis\WEB-INF\classes)
- Create a service class with service methods
- Create deploy.wsdd file (sample code pasted below)
- Deploy using admin client - java org.apache.axis.client.AdminClient OrderDeploy.wsdd
- Copy web service class to Tomcat classes folder - $:\apache-tomcat-5.5.17\webapps\axis\WEB-INF\classes
- By default, the service will be deployed at - http://localhost:8080/axis/services/OrderService.
- Invoke service at above location
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="OrderService" provider="java:RPC">
<parameter name="className" value="OrderService"/>
<parameter name="allowedMethods" value="*"/>
</service>
</deployment>
I will provide more details in subsequent posts.





<< Home