throws Exception
{
ByteArrayOutputStream bos = new ByteArrayOutputStream();
getWSDL("Echo").write(bos);
WSDLServiceBuilder builder = new WSDLServiceBuilder(new ByteArrayInputStream(bos.toByteArray()));
builder.setTransportManager(getTransportManager());
builder.build();
Service service = (Service) builder.getAllServices().iterator().next();
assertTrue(service.getBindingProvider() instanceof AegisBindingProvider);
AbstractSoapBinding binding = (AbstractSoapBinding) service.getBindings().iterator().next();
Client client = new Client(binding, "xfire.local://" + service.getSimpleName());
client.setXFire(getXFire());