null, new Element[] { root } );
}
JWSClassLoader.removeClassLoader( clsName );
}
JWSClassLoader cl = JWSClassLoader.getClassLoader(clsName);
if (cl == null) {
cl = new JWSClassLoader(clsName,
msgContext.getClassLoader(),
cFile);
}
msgContext.setClassLoader(cl);
/* Create a new RPCProvider - this will be the "service" */
/* that we invoke. */
/******************************************************************/
SOAPService rpc = new SOAPService(new RPCProvider());
msgContext.setService( rpc );
rpc.setOption( "className", clsName );
/** For now, allow all methods - we probably want to have a way to
* configure this in the future.
*/
rpc.setOption( "allowedMethods", "*");
// Set up service description
ServiceDesc sd = rpc.getServiceDescription();
sd.setImplClass(cl.loadClass(clsName));
sd.setTypeMapping(msgContext.getTypeMapping());
// Set engine, which hooks up type mappings.
rpc.setEngine(msgContext.getAxisEngine());