Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic