File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes REST server using Axis2/java - writing extensions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "REST server using Axis2/java - writing extensions " Watch "REST server using Axis2/java - writing extensions " New topic
Author

REST server using Axis2/java - writing extensions

Alan Norberg
Greenhorn

Joined: Apr 11, 2008
Posts: 1
I am new to Axis2 and Axis in general. I need to create REST services using Axis2/Java. I already know that Axis2 is supposed to support GET, POST, PUT and DELETE methods and also the possibility to write own extensions to it. What I want to do is create specific url to operation mapping and object serialization and deserialization. I figure that to get the behaviour I need, I can derive my classes from Axis2 classes (dispatcher, URL mapper) (please tell me if I'm wrong).

I encountered problems while trying to apply my dispatcher class that extends AbstractDispatcher. Both the javadoc and Google provide very limited information in the area. What do I have to do to make Axis use my dispatcher? Do I need to create an Axis module (what steps are there to create one?), or is it possible to point Axis to a class placed in a specific classpath? Is there a place in Axis configuration that specifies classpath(s)?

From my research so far I know that axis2.xml contains information about dispatcher chain where Axis is pointed to concrete classes, but mere placing my class in ithe lib directory and referencing it in axis2.xml doesn't work, so I assume that either I did something wrong or something else must be done.

I will be very grateful for any information or material that could help.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12269
    
    1
Unless you have a deep commitment to Axis2, you might find other REST supporting toolkits will be easier. For example:
The Jersey open source project.
The Restlet lightweight engine

Bill
(my recent look at Jersey)


Java Resources at www.wbrogden.com
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Welcome to JavaRanch Espeen,

Please check your private messages.


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Espeen",
Please check your private messages, again.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: REST server using Axis2/java - writing extensions
 
Similar Threads
javax.xml.ws Packaging simple Questions
How to parse XSD
RESTFul webservice with axis2
Java2WSDL in AXIS 1.4 shows shows java.lang.NoClassDefFoundError: org/apache/axis/wsdlgen/Java2WSDL
Webservice client code generation using axis2 and eclipse galilio