aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis: Instantiating class with parameters" Watch "Axis: Instantiating class with parameters" New topic
Author

Axis: Instantiating class with parameters

Joel Carklin
Greenhorn

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?

Thanks
Joel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis: Instantiating class with parameters