axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Senthil_KM" <>
Subject RE: question on Axis Handlers
Date Thu, 08 Apr 2004 02:58:42 GMT

HI Ramesh,

You can get the instance of the axis engine itself. Then you can get the
message context through it. And whatever handlers that you are
specifying can be specified in the client-config.wsdd or
server-config.wsdd depnding on  where the handlers should play the role.

Then when you can pass this wsdd as a property file while you are
getting an instance of the AXIS engine.

Smaple code :

public AxisEngine getAxisEngine() throws Exception {
private  String configuration =
		"C:\\Program Files\\Apache Group\\Tomcat

		if (engine != null) {
			return engine;


		FileProvider provider = new FileProvider(configuration);
		return new AxisServer(provider);

 public static void main(String args[]){

// Create an instance of AxisServer from configuration file
			AxisEngine engine = getAxisEngine();

			// Create a MessageContext and associate with
the engine
			msgContext = new MessageContext(engine);



-----Original Message-----
From: Mantri, Mr. Ramesh (Contractor) [] 
Sent: Thursday, April 08, 2004 6:40 AM
Subject: RE: question on Axis Handlers

In my very brief stint with Axis, I did come across "deploy.wsdd" files.
But I am assuming that this file is read only when you deploy the
service through "AdminClient" which is a totally Axis-specific activity.
In a servlet-engine environment, servlets are "deployed" through
web.xml. Is it somehow possible to reconcile/merge these two different
For instance, one method that quickly comes to my mind is to run this
"AdminClient" inside a servlet's "init" method. Is that possible? I
might understand more if someone would kindly post an example servlet
that makes use of Axis. Here I am visualizing something like getting
access to a "MessageContext" inside of a doGet() or a doPost() method
etc. I am afraid I might not be making too much sense here. But if it
does make any sense, please help. Thanks.

-----Original Message-----
From: Yakulis, Ross (Ross) []
Sent: Wednesday, April 07, 2004 5:55 PM
Subject: RE: question on Axis Handlers

Are you refering to configuring handlers in the deploy.wsdd file?



-----Original Message-----
From: Mantri, Mr. Ramesh (Contractor) []
Sent: Wednesday, April 07, 2004 5:45 PM
Subject: question on Axis Handlers

   we are writing server-side software - Java servlets (SOAP/HTTP, JAXM,
SAAJ). Recently we were told that we would be provided a set of Apache
Axis handlers that "must be confnigured in front of your Web service".
Is it possible to achieve this without making changes to our server-side
code? The documentation says that Axis also provides a server which
"plugs into servlet engines", but I haven't found any examples to help
me understand how this is to be achieved. Please respond with a solution
or references to documentation that might help more. Thank you.
Ramesh Mantri

View raw message