On Friday 07 January 2005 03:31, Michael Schuerig wrote:
I'm using LocalTransport in a unit test involving out parameters.
Currently, I'm getting back these parameters with names that are
determined through introspection. Is there some programmatic way to
set metadata like this explicitly?
Well, I've found a way, but one that's presumably somewhat fragile :-(
I'm initializing the local server with a custom RPCProvider
private class TestProvider extends RPCProvider {
public void initServiceDesc(SOAPService service,
MessageContext msgContext)
throws AxisFault {
super.initServiceDesc(service, msgContext);
fixupServiceDescription(service.getServiceDescription());
}
}
In fixupServiceDescription I get hold of the OperationDesc and
ParameterDesc instances I need to twiddle.
Michael
--
Michael Schuerig The more it stays the same,
mailto:[EMAIL PROTECTED]The less it changes!
http://www.schuerig.de/michael/ --Spinal Tap, The Majesty of Rock