public static org.uddi.api_v2.GetBindingDetail MapGetBindingDetail(org.uddi.api_v3.GetBindingDetail body) { GetBindingDetail r = new GetBindingDetail(); r.getBindingKey().addAll(body.getBindingKey()); r.setGeneric(VERSION); return r; }
public static void validateGetBindingDetail(GetBindingDetail body) throws DispositionReport { validateVersion(body.getGeneric()); }
ServiceList list1=inquiryService.findService(findservice); GetServiceDetail gsd=new GetServiceDetail(); for(ServiceInfo serviceInfo :list1.getServiceInfos().getServiceInfo()){ gsd.getServiceKey().add(serviceInfo.getServiceKey()); System.out.println(serviceInfo.getServiceKey()); String servicekey=serviceInfo.getServiceKey(); GetServiceDetail getServiceDetail=new GetServiceDetail(); getServiceDetail.setAuthInfo(authinfo); getServiceDetail.getServiceKey().add(servicekey); ServiceDetail serviceDetail=inquiryService.getServiceDetail(getServiceDetail); BusinessService businessservice=serviceDetail.getBusinessService().get(0); System.out.println("fetched service name:"+businessservice.getName().get(0).getValue()); String bindingkey = businessservice.getBindingTemplates().getBindingTemplate().get(0).getBindingKey(); System.out.println(bindingkey); GetBindingDetail gbd = new GetBindingDetail(); gbd.setAuthInfo(authinfo); gbd.getBindingKey().add(bindingkey); BindingDetail bindingdetail=inquiryService.getBindingDetail(gbd); BindingTemplate bindingtemplate=bindingdetail.getBindingTemplate().get(0); String accesspoint=bindingtemplate.getAccessPoint().getValue(); System.out.println(accesspoint); }
/** * Create an instance of {@link GetBindingDetail } * */ public GetBindingDetail createGetBindingDetail() { return new GetBindingDetail(); }
public static GetBindingDetail MapGetBindingDetail(org.uddi.api_v2.GetBindingDetail body) { if (body == null) { return null; } GetBindingDetail r = new GetBindingDetail(); r.getBindingKey().addAll(body.getBindingKey()); return r; }
public void saveBinding(String authInfo, String bindingXML, String bindingKey) { try { // First save the entity SaveBinding sb = new SaveBinding(); sb.setAuthInfo(authInfo); sb.setGeneric("2.0"); BindingTemplate btIn = (BindingTemplate)EntityCreator.buildFromDoc(bindingXML, "org.uddi.api_v2"); sb.getBindingTemplate().add(btIn); publication.saveBinding(sb); // Now get the entity and check the values GetBindingDetail gb = new GetBindingDetail(); gb.setGeneric("2.0"); gb.getBindingKey().add(bindingKey); BindingDetail bd = inquiry.getBindingDetail(gb); List<BindingTemplate> btOutList = bd.getBindingTemplate(); BindingTemplate btOut = btOutList.get(0); assertEquals(btIn.getServiceKey(), btOut.getServiceKey()); assertEquals(btIn.getBindingKey(), btOut.getBindingKey()); TckValidator.checkDescriptions(btIn.getDescription(), btOut.getDescription()); } catch(Exception e) { logger.error(e.getMessage(), e); Assert.fail("No exception should be thrown: " + e.getMessage()); } }
public static void validateGetBindingDetail(GetBindingDetail body) throws DispositionReport { validateVersion(body.getGeneric()); }