JaiswalTraining

Get the online training



Corejava Servlet Jsp  Php  Hibernate  Ajax Web Service   Ejb2.1 Ejb3.0 Struts Struts2  JPA Spring Ibatis   JSF    JSF2.0  CoreJavaDesignPattern    Jquery  Flex J2EE-Design-Patterns  Jboss7  Maven  Contact Me                                                                                                                                                                        
            IGNOU SMU PTU Project                                           Training                                                                                                                              
              

Contact Us  0091- 9210721663         jaiswaltraining@gmail.com





Corejava
Servlet
Jsp
Php
Hibernate
Ajax
Web Service
Ejb2.1
Ejb3.0
Struts  
Struts2
JPA
Spring
Ibatis
JSF
JSF2.0
CoreJavaDesignPattern
Jquery
Flex
J2EE-Design-Patterns
Jboss7
Maven









Web Service  On JBoss Server(using AXIS with Eclipse IDE)

  •  Take a new EnterpriseApplication Project.



  • Give it name as CircleEar.
  • Select the server in target runtime as Jboss4.x




  • Now take a Dynamic Web project.
  • Give it name as Circle.
  • Select the server in  target runtime as Jboss4.x
  • Click on the finish button.






  • Now we will create a java file for web service program
  • Create a java file named mycircle.java.
  • Add the given code

public class mycircle {
  
  public String area(double s) {
    return "area of" + s + " is  "+(3.14*s*s);
  }
}

Creating Web Service program


  • Now create a web service program using the  mycircle.java
  • Select new Web Service from Web Services





  • Click on the next button
  • Now select mycircle class




  • In this window select
    • Server(jboss)
    • Web Service runtime i.e axis
  • Drag the slider to topfor both client and web service
  • It will create web service program and client program.
  • Then it will be tested using Web Service explorer.



  • Now in this window select the WSDL file(mycircle.wsdl).
  • Select the method.
  • Click on Next button.




  • This wizard creates and deploys the web service on the server.
  • So it will ask you to start the server.


  • This step will start the jboss server.
  • Then our web service will get deployed on the server.
  • It will automatically open the web service explorer for testing the program.