Re: LocalTransport: Setting operation metadata?

2005-01-07 Thread Michael Schuerig
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


LocalTransport: Setting operation metadata?

2005-01-06 Thread Michael Schuerig

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?

Michael

-- 
Michael Schuerig Those people who smile a lot
mailto:[EMAIL PROTECTED] Watch the eyes
http://www.schuerig.de/michael/--Ani DiFranco, Outta Me, Onto You