Transport transport = WebHelper.getTransport(session.getServletContext());
UDDIInquiryPortType inquiryService = transport.getUDDIInquiryService();
BusinessList businessList = inquiryService.findBusiness(findBusiness);
for (BusinessInfo businessInfo : businessList.getBusinessInfos().getBusinessInfo()) {
Business business = new Business(
businessInfo.getBusinessKey(),
EntityForLang.getName(businessInfo.getName(),lang).getValue(),
EntityForLang.getDescription(businessInfo.getDescription(),lang).getValue());
List<Service> services = new ArrayList<Service>();
if (businessInfo.getServiceInfos()!=null) {
for (ServiceInfo serviceInfo : businessInfo.getServiceInfos().getServiceInfo()) {
Service service = new Service(
serviceInfo.getServiceKey(),
EntityForLang.getName(serviceInfo.getName(), lang).getValue());
services.add(service);
}
}
business.setServices(services);
businesses.add(business);
}
response.setSuccess(true);
response.setBusinesses(businesses);
} catch (Exception e) {