











Signup for Training
- Atlanta, GA Dec 3-5
- Melbourne, AU, Dec 9-11
- New York Dec 10-12
- Brussels, BE, Dec 16-18
- Washington, DC, Dec 17-19
More trainings...
Intalio|BPMS Webinars
- Nov 20, 2008 1 PM EST
- Nov 21, 2008 1PM EST
- Nov 26, 2008 10 AM GMT
- Dec 5, 2008 10 AM PST
- Dec 9, 2008 1 PM EST
- Dec 11, 2008 1 PM EST
- Dec 19, 2008 10 AM PST
- Dec 30, 2008 10 AM PST
- Jan 13, 2009 10 AM PST
- Jan 15, 2009 1 PM EST
- Feb 3, 2009 10 AM PST
- Feb 12, 2009 1 PM EST
- Feb 17, 2009 10 AM PST
- Mar 10, 2009 10 AM PST
- Mar 12, 2009 1 PM EST
- Mar 24, 2009 10 AM PST
POLL
Login
Who's online?
- (jloge@ebsco.com)
- Alexander Stuckenholz (alexander.stuckenholz)
- alfons bataller Díaz (alfons.bataller.diaz)
- Antoine Toulme (Antoine)
- chris robson (chris.robson)
- Deepa Tekumalla (deepa.tekumalla)
- Gabriel Giordano (gabriel.giordano)
- gianni naccio (gianni.naccio)
- Ilo Rivero (ilo.rivero)
- Jose Gregorio Castillo (jose.gregorio.castillo)
- Leonardo Lopes (leonardo.lopes)
- Leonardo Saraiva (leonardo.saraiva)
- manindra mallick (manindra.mallick)
- Marcin Urbanski (marcin.urbanski)
- Milos Vacek (milos.vacek)
- nie pin (nie.pin)
- Pavel Lekhanov (lehanov)
- Ravinderjit Singh (ravinderjit.singh)
- Tamara Dobrynina (tamara.dobrynina)
- Wael Soliman (wael.soliman)
Subscribe
MAIN
Reference Guides
Generating web services using Axis2
Reference Guides
Generating web services using Axis2 Generating web services using Axis2
on Nov 27 2007
Last Updated ( Mar 18 2008 )
Next >
sendjmssource 27/11/2007,00:01 10.90 Kb
Steps to generate Java code from WSDL file:
Note: Explanation is given by using the example of Send JMS Message using ActiveMQ sample, In the similar manner you can create any webservice in axis2
- Download axis2- 1.3 version, after which you need to set environment variable for axis2-1.3 (AXIS2_HOME)
- Download Axis2Codegenerator so as to generate the java classes from the wsdl
Note: Download only the zip file for �Code Generator Wizard - Eclipse Plug-in� - Extract the zip file and paste Axis2_Codegen_Wizard_1.3.0 folder into the plugins folder of your designer
Note: Make sure designer is not open - Open your designer go to MenuBar->File->Other->Axis2Wizards->Axis2 CodeGenerator, and click Next
- Select the 1st option (Java source code from WSDL) and click Next
- Give the path where you have pasted SendJMS.wsdl in your system and click Next.
- In the next window use the below given options and then click Next
Codegen option: custom
Check the checkboxes given before:Generate server side code,Generate a default services.xml,Generate an Interface for Skeleton.
- In the next window use the below given options and then click Next
- Provide a path where you want to save all the java files created say C:\sample.
- Check for the checkbox given before Add the Axis2 codegen jars to the codegen resulted project.
- Check for the checkbox given before Add Axis2 libraries to the codegen resulted project.
- Click the browse button and set the path where your axis2-1.3 is places, say C:\axis2-1.3 and then Check Libs and then click on Finish.
- Open the sample folder where you'll find src folder.
- Expand this folder and open the SendJMSServiceWSSkeleton.java file.
- Copy and paste the code given in SendJMSServiceWSSkeleton.java from the attached src folder into this file.
Note: Make sure you don't delete anything and change the object names as generated by the generator - Now after adding the code to skeleton, you need to build all the files, so as to generate .aar file.
- Go to command prompt, give the path of the folder where all your java files are placed, in your case it should be C:\sample.
- Use this command:C:\sample>ant.
- This will build all the files and create a build folder if your build is successful.
- After the build is successful, again go to the sample folder and expand the folders: build->lib where you'll find SendJMSServiceWS.aar file.
Steps to obtain wsdl file:
- Now you need to upload this .aar file into the server:
- Make sure Intalio-bpms server is already started.
- Open a web browser, provide url as: http://localhost:8080/axis2/ that takes to login screen for axis2.
- Click on the "Administration" link.
- Login with the following credentials:
username: "admin" (without quotes).
password: "axis2" (without quotes). - Click on the link to "Upload Service".
- Browse to location of "SendJMSServiceWS.aar" to "Upload a AxisService Archive File page.
- Now click on Available Services link and refresh the webpage
Note: You will see the list of the available services. - Verify that "SendJMSServiceWS" link is present there.
- Click on "SendJMSServiceWS" link it displays respective wsdl file.
- Save the wsdl file and further you can use it in your project

