0% found this document useful (0 votes)
72 views1 page

Axis2 POJO

The document provides instructions for deploying a POJO class as a web service without using Java2wsdl. It outlines creating a simple Java project, writing input/output classes, an interface, and implementation class. It describes creating a services.xml file to define the service and deploying the project JAR file to Axis2 to make the service accessible.

Uploaded by

Ashok Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views1 page

Axis2 POJO

The document provides instructions for deploying a POJO class as a web service without using Java2wsdl. It outlines creating a simple Java project, writing input/output classes, an interface, and implementation class. It describes creating a services.xml file to define the service and deploying the project JAR file to Axis2 to make the service accessible.

Uploaded by

Ashok Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

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 :- 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

<service name=" any thing">


<description>any thing</description> <messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> </messageReceivers>
<parameter name="ServiceClass">fully qualified name of your implementation class
</parameter>
</service>

[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

You might also like