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 Using HttpSevlet features in bottom-up Axis2 WebService class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Using HttpSevlet features in bottom-up Axis2 WebService class" Watch "Using HttpSevlet features in bottom-up Axis2 WebService class" New topic
Author

Using HttpSevlet features in bottom-up Axis2 WebService class

Hikari Shidou
Ranch Hand

Joined: Jan 22, 2013
Posts: 88
When we develop a WebApp using Servlet, we have available all Web features, like setting and retrieving HTTP headers, sessions, etc.

But when we develop it using Axis2 in a bottom-up way, all we have is a Plain Old Java Class.

I know that Axis2 uses Servlet to implement SOAP WS, so Sevlet features are available underground, and of course we're above HTTP messages, but these feature are hidden.

How can our class access them? Would there be for example some Axis2 class we can use to extend our class, with methods we can call to access these features, as we do with HttpServlet?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  70
What functionality are you hoping to gain by doing this?
Hikari Shidou
Ranch Hand

Joined: Jan 22, 2013
Posts: 88
Cookies, Session, HTTP headers.

When I made this post I needed Session support for a Stateful app. But I learned how to do it in Axis2.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using HttpSevlet features in bottom-up Axis2 WebService class