This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Axis: Instantiating class with parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis: Instantiating class with parameters" Watch "Axis: Instantiating class with parameters" New topic

Axis: Instantiating class with parameters

Joel Carklin

Joined: Jun 15, 2001
Posts: 28
Hi, I'm new to web services and Axis, I don't quite understand the workings yet, and hope I can explain myself clearly.
I'm using a wsdd file to inform the Axis server which class to instantiate when it receives a method call. The class contains the method logic for dealing with the call. These methods need to connect to databases and in some cases need to 'forward' the method call to another web service. The database connection data (address, passwords etc) as well as the endpoint of the web service the call is forwarded to, are dynamic, and are contained in configuration files for another app within which axis is 'embedded'. Is there any way to pass this information to axis so when it instantiates the class it does so with the correct parameters. Can Axis call a construcor which accepts parameters? Alternatively, can I point axis to an already instantiated object of the defined class, so it doesn't need to instatiate it at all?

I agree. Here's the link:
subject: Axis: Instantiating class with parameters
Similar Threads
can I create a web service that generates a .csv or .txt file ?
Webservice client code generation using axis2 and eclipse galilio
Starting with web service
Which Web Service implementation to use?
Axis 404 error