How to create and deploy the web services in java

I wish to know how to create and deploy the web services in java. I just want to add two numbers using Java.

Replies

  • sookie
    sookie
    #-Link-Snipped-# There are few open source frameworks available that allow you to create webservices easily [Apache CXFServlet , Apache Axis]

    CXFServlet (Annotations based)
    You need to create a simple Java class(but need to use annotations to declare that as web service or web methods) and define your methods say "addTwoNumbers" in it and then there will be configuration in the servlet XML file.Add the entries like the implementer of your service class and endpoint , address etc.. You can deploy coded web service on a servlet container and start the server your WSDL is available.

    Apache Axis:
    You have to do similar things for this also but way of doing is different. I guess you have to explicitly generate the WSDL using some commands. You can find tutorials on internet or Apache site.

    Let us know if any issues faced.

You are reading an archived discussion.

Related Posts

guys can anyone tell me when will the L&T infotech group of people will call the campus recruited persons.........trainee freshers 2012
Sir, Please tell me the CT's connections of Merz price scheme of protection for symmetrical and unsymmetrical faults. i am confused whether the CT's on the star connected side of...
Android 4.1 Jelly Bean SDK Release Leaves Developers Rejoicing Sony Walkman F800 Runs Android ICS; E470 Is The World’s Slimmest Bing Gets Bird’s Eye Imagery – 215 TB New Data,...
hello could any one help me out here.I just want to know when does l&t infotech send joining dates for 2012 batch.............
In many sports cars dual clutch is used. How does Dual Clutch works? NOTE: Give links of videos and images also! ====================================== To the optimist, the glass is half full....