• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis: Instantiating class with parameters  RSS feed

Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!