Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using HttpSevlet features in bottom-up Axis2 WebService class

 
Hikari Shidou
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What functionality are you hoping to gain by doing this?
 
Hikari Shidou
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic