public BindingDetail saveBinding(SaveBinding body) throws RemoteException { return publication.saveBinding(body); }
public BindingDetail saveBinding(SaveBinding body) throws RemoteException { return publication.saveBinding(body); }
public void saveNotifierBinding(String authInfo, String bindingXML, String bindingKey, Integer port) { try { SaveBinding sb = new SaveBinding(); sb.setAuthInfo(authInfo); BindingTemplate btIn = (BindingTemplate) EntityCreator.buildFromDoc(bindingXML, "org.uddi.api_v3"); String value = btIn.getAccessPoint().getValue(); value = value.replace("{randomPort}", port.toString()); sb.getBindingTemplate().add(btIn); publication.saveBinding(sb); } catch (Exception e) { logger.error(e.getMessage(), e); Assert.fail("No exception should be thrown: " + e.getMessage()); } }
/** * Register a BindingTemplate. Note, if registration fails, no exception * is thrown * * @param binding * @param node * @return a binding object or null */ public BindingTemplate register(BindingTemplate binding, Node node) { BindingTemplate bindingTemplate = null; log.info("Registering bindingTemplate with key " + binding.getBindingKey()); try { SaveBinding saveBinding = new SaveBinding(); saveBinding.setAuthInfo(getAuthToken(node.getSecurityUrl())); saveBinding.getBindingTemplate().add(binding); BindingDetail bindingDetail = getUDDINode(node).getTransport().getUDDIPublishService(node.getPublishUrl()).saveBinding(saveBinding); bindingTemplate = bindingDetail.getBindingTemplate().get(0); if (log.isDebugEnabled()) { log.debug("Registering template binding " + bindingTemplate.getBindingKey() + " completed."); } } catch (Exception e) { log.error("Unable to register template binding " + binding.getBindingKey() + " ." + e.getMessage(), e); } catch (Throwable t) { log.error("Unable to register template binding " + binding.getBindingKey() + " ." + t.getMessage(), t); } return bindingTemplate; }
public void saveBinding(String authInfo, String bindingXML, String bindingKey) { try { // First save the entity SaveBinding sb = new SaveBinding(); sb.setAuthInfo(authInfo); BindingTemplate btIn = (BindingTemplate)EntityCreator.buildFromDoc(bindingXML, "org.uddi.api_v3"); sb.getBindingTemplate().add(btIn); publication.saveBinding(sb); // Now get the entity and check the values GetBindingDetail gb = new GetBindingDetail(); 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()); TckValidator.checkCategories(btIn.getCategoryBag(), btOut.getCategoryBag()); } catch(Exception e) { logger.error(e.getMessage(), e); Assert.fail("No exception should be thrown: " + e.getMessage()); } }
sb.setAuthInfo(auth); sb.getBindingTemplate().add(irr.getBindingTemplate().get(0)); publication.saveBinding(sb); log.log(Level.INFO, "fgsms performance data for " + sp.getURL() + " has been successfully published to UDDI."); if (isPooled) {
sb.getBindingTemplate().add(bt); BindingDetail saveBinding = uddiPublishService.saveBinding(sb); if (saveBinding.getBindingTemplate().isEmpty() || saveBinding.getBindingTemplate().size() > 1) { throw new UnexpectedResponseException("The number of binding templates returned was unexpected, count=" + saveBinding.getBindingTemplate().size());