}
catch (UDDIException ex1) {
fail(ex1.toString());
}
BusinessEntity bEntity = new BusinessEntity();
bEntity.setDefaultName(new Name("saveBindingBusiness"));
Vector busVector = new Vector();
busVector.add(bEntity);
Vector victor = null;
try {
BusinessDetail busDetail = proxy.save_business(token.getAuthInfoString(),
busVector);
victor = busDetail.getBusinessEntityVector();
assertEquals(victor.size(), 1);
}
catch (TransportException ex) {
fail(ex.toString());
return;
}
catch (UDDIException ex) {
fail(ex.toString());
return;
}
BusinessEntity returnedBusinessEntity = (BusinessEntity)victor.elementAt(0);
BusinessService service = new BusinessService();
service.setBusinessKey(returnedBusinessEntity.getBusinessKey());
Name name = new Name("saveBindingService");
service.setDefaultName(name);
java.util.Vector servicesVector = new Vector();
servicesVector.add(service);