msgContext.setClassLoader( cl );
/* Create a new RPCProvider - this will be the "service" */
/* that we invoke. */
/******************************************************************/
Handler rpc = new RPCProvider();
msgContext.setServiceHandler( rpc );
rpc.addOption( "className", clsName );
/** For now, allow all methods - we probably want to have a way to
* configure this in the future.
*/
rpc.addOption( "methodName", "*");
rpc.init(); // ??
if (doWsdl)
rpc.generateWSDL(msgContext);
else
rpc.invoke( msgContext );
rpc.cleanup(); // ??
}
catch( Exception e ) {
category.error( "JWSProcessor fault", e );
if ( !(e instanceof AxisFault) ) e = new AxisFault( e );
throw (AxisFault) e ;