public void testDyanamicClient() throws Exception
{
ByteArrayOutputStream bos = new ByteArrayOutputStream();
getWSDL("AuthService").write(bos);
Client client = new Client(new ByteArrayInputStream(bos.toByteArray()), null);
client.setXFire(getXFire());
client.setUrl("xfire.local://AuthService");
client.setTransport(getTransportManager().getTransport(LocalTransport.BINDING_ID));
try {
Object[] response = client.invoke("authenticate", new Object[] {"yo", "yo"});
fail("Should have thrown response. Received: " + response);
}
catch (XFireFault fault) {
assertEquals("message", fault.getReason());
}