Package org.uddi.api_v3

Examples of org.uddi.api_v3.DiscoveryURLs


 
  public void deleteServices(String authInfo, String serviceKey, int numberOfCopies) {
    try {
      for (int i=0; i<numberOfCopies; i++) {
        // Delete the entity and make sure it is removed
        DeleteService ds = new DeleteService();
        ds.setAuthInfo(authInfo);
       
        ds.getServiceKey().add(serviceKey + "-" + i);
        publication.deleteService(ds);
        logger.debug("Deleted Service with key " + serviceKey + "-" + i);
      }
    }
    catch(Exception e) {
View Full Code Here


  public void deleteTModel(String authInfo, String tModelXml, String tModelKey) {
   
    try {
      //Now deleting the TModel
      // Delete the entity and make sure it is removed
      DeleteTModel dt = new DeleteTModel();
      dt.setAuthInfo(authInfo);
     
      dt.getTModelKey().add(tModelKey);
      publication.deleteTModel(dt);
     
    } catch(Exception e) {
      logger.error(e.getMessage(),e);
      Assert.fail("No exception should be thrown");
View Full Code Here

    DiscoveryURL discoveryURL = new DiscoveryURL();
    discoveryURL.setUseType("General Description");
    discoveryURL.setValue("http://www." + StringUtils.deleteWhitespace(businessName) + ".com");
   
    //All business URLs if many (here we only give one).
    DiscoveryURLs discoveryURLs = new DiscoveryURLs();
    discoveryURLs.getDiscoveryURL().add(discoveryURL);
   
    //Contact info:
    //Name of contact in English.
    PersonName personName = new PersonName();
    personName.setLang("en");
View Full Code Here

    Contacts contacts = new Contacts();
    contacts.getContact().add(generateContact(contactAddress, contactDescription, contactEmail,
        contactName, contactPhone, null));
    businessEntity.setContacts(contacts);
   
    DiscoveryURLs discoveryURLs = new DiscoveryURLs();
    discoveryURLs.getDiscoveryURL().add(generateDiscoveryURL(discoveryURL));
    businessEntity.setDiscoveryURLs(discoveryURLs);
   
    //businessEntity.setCategoryBag(?)
    //businessEntity.setIdentifierBag(?)
    //businessEntity.getSignature(?)
View Full Code Here

    return contacts;
  }
 
  public static DiscoveryURLs generateDiscoveryURLs (List<DiscoveryURL> discoveryURLList)
  {
    DiscoveryURLs discoveryURLs = new DiscoveryURLs();
    for (DiscoveryURL du : discoveryURLList)
      discoveryURLs.getDiscoveryURL().add(du);
   
    return discoveryURLs;
  }
View Full Code Here

                return c;
               
        }

        private static DiscoveryURLs getDisco() {
                DiscoveryURLs r = new DiscoveryURLs();
                r.getDiscoveryURL().add(new DiscoveryURL("public website", "http://localhost"));
                return r;
               
        }
View Full Code Here

                BusinessEntity be = new BusinessEntity();
                Name n = new Name();

                n.setValue("BusinessDiscoveryURLTooLongTest A Test business");
                be.getName().add(n);
                be.setDiscoveryURLs(new DiscoveryURLs());
                DiscoveryURL d = new DiscoveryURL();
                d.setValue(str4097);
                be.getDiscoveryURLs().getDiscoveryURL().add(d);
                sb.getBusinessEntity().add(be);
                try {
View Full Code Here

                BusinessEntity be = new BusinessEntity();
                Name n = new Name();

                n.setValue("BusinessDiscoveryURLMaxLengthTest A Test business");
                be.getName().add(n);
                be.setDiscoveryURLs(new DiscoveryURLs());
                DiscoveryURL d = new DiscoveryURL();
                d.setValue(str4096);
                be.getDiscoveryURLs().getDiscoveryURL().add(d);
                sb.getBusinessEntity().add(be);
View Full Code Here

                BusinessEntity be = new BusinessEntity();
                Name n = new Name();

                n.setValue("BusinessDiscoveryURLMaxLengthMaxUseTypeTest A Test business");
                be.getName().add(n);
                be.setDiscoveryURLs(new DiscoveryURLs());
                DiscoveryURL d = new DiscoveryURL();
                d.setValue(str4096);
                d.setUseType(str255);
                be.getDiscoveryURLs().getDiscoveryURL().add(d);
                sb.getBusinessEntity().add(be);
View Full Code Here

                BusinessEntity be = new BusinessEntity();
                Name n = new Name();

                n.setValue("BusinessDiscoveryURLMaxLengthToolongUseTypeTest A Test business");
                be.getName().add(n);
                be.setDiscoveryURLs(new DiscoveryURLs());
                DiscoveryURL d = new DiscoveryURL();
                d.setValue(str4096);
                d.setUseType(str256);
                be.getDiscoveryURLs().getDiscoveryURL().add(d);
                sb.getBusinessEntity().add(be);
View Full Code Here

TOP

Related Classes of org.uddi.api_v3.DiscoveryURLs

Copyright © 2018 www.massapicom. 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.