Examples of UDDIClerk


Examples of org.apache.juddi.v3.client.config.UDDIClerk

  public static void handle(Clerk fromClerk, Clerk toClerk, SubscriptionResultsList list) {

    if (list.getServiceList()!=null) {

      for (ServiceInfo serviceInfo : list.getServiceList().getServiceInfos().getServiceInfo() ) {
        UDDIClerk uddiToClerk = new UDDIClerk(toClerk);
        try {
          BusinessEntity existingEntity = uddiToClerk.findBusiness(serviceInfo.getBusinessKey(), toClerk.getNode());
          if (existingEntity!=null) {
            log.info("Found business with key " +  existingEntity.getBusinessKey() + ". No need to add it again");
          } else {
            log.info("Business was not found in the destination UDDI " + toClerk.getNode().getName()
                + ", going to add it in.");
            new XRegistration(serviceInfo.getBusinessKey(), new UDDIClerk(fromClerk), new UDDIClerk(toClerk)).xRegisterBusiness();
          }
          new XRegistration(serviceInfo.getServiceKey(), new UDDIClerk(fromClerk), new UDDIClerk(toClerk)).xRegisterService();
        } catch (Exception e) {
          log.error(e.getMessage(),e)
        }
      }
    }
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClerk

  public static void main (String args[]) {
   
    Setup sp = new Setup();
    try {
      uddiClient = new UDDIClient("META-INF/wsdl2uddi-uddi.xml");
      UDDIClerk clerk = uddiClient.getClerk("joe");
     
      //setting up the publisher
      sp.setupJoePublisher(clerk);
      //publish the business
      sp.publishBusiness(clerk);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.