Axis2 POJO
Axis2 POJO
certain rules and well in these way you never need to run Java2wsdl tool :- Hello
friends, if you wanted to deploy your pojo class then you have to follow certain
rules and well in these way you never need to run Java2wsdl tool :- 1) Select a
simple java project 2) write your Input and Output classes if you want or you can
simply work with primitive types 3) write your interface(but it is optional), here
i am using Interface 4) write your Implementation class and override all the
methods that you wanted to expose as WebService 5) create a folder called lib and
put all the Axis2 jars inside it. 6) The main part is you have to write
services.xml and this is so easy -
1
2
3
4
5
6
7
8
[Note :- copy and paste this xml and do ctrl+shift+f then it will format
automatically] [Note: Don't change anything inside the tag like <parameter
name="ServiceClass"> if you are going to change your service will become not
accessible] 7) Now save this file as must and should be services.xml only 8) now
export your project as anything.jar and rename it anything.aar 9) finally deploy
this into services directory. 10) goto
http://localhost:8855/axis2/services/listServices I think every one is able to
access service successfully if any one face any problem then ask me
Name of the xml must and should be services.xml and place it inside src\META-
INF\services.xml i think you missed 's' thats why its telling services.xml cannot
be found