• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Access Axis2 properties inside class that generates WebService server

Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using a Java class to build a WebService, using Axis2 and Eclipse. From Eclipse, Axis2 creates whole WebService project, including WSDL, then I use Eclipse to deploy the war file that I'll use in Tomcat.

But I need to access Axis2 properties from inside that class, including Rampart WS-Security and HTTP properties. Since that class is used to build WebService, it has no knowledge of Axis2, Servlet, etc, it's just a plain old Java class.

I know that I could build a WSDL myself and use it for Axis2 to create the class I'll use, and that class would be able to access Axis2 properties. But that makes WebService development more troubling, I'd need to mix code developed by me into Axis2 code, etc.

Is there a way to keep my class the starting point for the WebService, and still be able to access Axis2? maybe use annotation to define a special method in the class that would be extended by Axis2 and would return its properties :p
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic