• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need of Axis2 runtime for developing a web service in Eclipse.

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am new to webserivce, and did a little exercise as given below.
I followed a simple procedure to create a web service:
1 -> For Service --> Write a simple bean in a dynamic web project, with some methods. Right click on the dynamic web project and say New --> Web Service --> Bottom up approach -->Select the bean written and finish. It will create a WSDL file.
2 -> Client --> Create a new dynamic web project. New -->Web Service Client --> Top down --> Select the WSDL and finish. It will generate the stub, the locaters etc. Invoke the service as :

PackFour.ClassFourServiceLocator cfsl = new ClassFourServiceLocator();
PackFour.ClassFour cf = cfsl.getClassFour();
System.out.println(cf.getStr());

This is tested successfully.
My question : Is this using SOAP? My prediction is no, as I did not configure the Axis2 runtime for the project.
If this is the case, how does the client communicate to the service?
If yes, why do I need to set the Axis2 runtime?

Also, while setting the axis2 runtime, i downloaded it from
http://apache.mirrors.tds.net/ws/axis/1_4/axis-bin-1_4.zip
But while creating a new dynamic web project, with Axis2 selected in project facet, it gives error:
"Failed while installing Axis2 Web Services Core 1.1.
The Axis2 facets cannot be installed since the Axis2 runtime location has not been set.
Go to the Web Services preference page and set the Axis2 runtime location under Axis2 Preferences.
D:\workSpace\.metadata\.plugins\org.apache.axis2.facet\exploadedwar\WEB-INF\lib\axis-ant.jar (The system cannot find the path specified)
"

I have already set the runtime as directed, but still I am getting the error.

Regards,
Amol
 
Ranch Hand
Posts: 577
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lekurwale,

This is tested successfully.


If you managed to test your client successfully, then you are using Axis2 runtime in your case.

s this using SOAP? My prediction is no, as I did not configure the Axis2 runtime for the project.


Webservice is not necessarily required to use SOAP always. If you are unsure of what message protocol your service is using, check out what binding you are using in WSDL.

If this is the case, how does the client communicate to the service?


If you check your class PackFour.ClassFourServiceLocator, it must be using Axis2 runtime classes.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic