Examples of UDDIClerk


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

        @Test
        public void registerBPELProcess() throws WSDLException, ConfigurationException,
                MalformedURLException, RemoteException, TransportException, Exception {

                UDDIClerk clerk = new UDDIClerk();
                clerk.setManagerName(manager.getName());
                clerk.setName("testClerk");
                clerk.setPublisher(TckPublisher.getRiftSawPublisherId());
                clerk.setPassword(TckPublisher.getRiftSawPassword());

                clerk.setUDDINode(manager.getClientConfig().getHomeNode());

                Properties properties = manager.getClientConfig().getHomeNode().getProperties();
                properties.put("keyDomain", "riftsaw.jboss.org");
                properties.put("nodeName", "localhost");
                properties.put("businessName", "redhat-jboss");
View Full Code Here

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

                this.credFile = credFile;
                this.preserveOwnership = preserveOwnership;

                UDDIClient clerkManager = new UDDIClient(config);
                clerkManager.start();
                UDDIClerk clerk = clerkManager.getClerk(name);
                // a ClerkManager can be a client to multiple UDDI nodes, so
                // supply the nodeName (defined in your uddi.xml.
                // The transport can be WS, inVM, RMI etc which is defined in the uddi.xml
                Transport transport = clerkManager.getTransport(name);
                // Now you create a reference to the UDDI API
                security = transport.getUDDISecurityService();
                publish = transport.getUDDIPublishService();
                inquiry = transport.getUDDIInquiryService();
                juddi = transport.getJUDDIApiService();
                this.username = user;
                if (username == null || pass == null) {
                        username = clerk.getPublisher();
                        pass = clerk.getPassword();
                }
                if (username == null || pass==null) {
                   System.out.println("No credentials are available. This will probably fail spectacularly");
                } else {
                        GetAuthToken getAuthTokenRoot = new GetAuthToken();
View Full Code Here

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

                // create a manager and read the config in the archive;
                // you can use your config file name
                UDDIClient clerkManager = new UDDIClient(config);
                clerkManager.start();
                UDDIClerk clerk = clerkManager.getClerk(name);
                // a ClerkManager can be a client to multiple UDDI nodes, so
                // supply the nodeName (defined in your uddi.xml.
                // The transport can be WS, inVM, RMI etc which is defined in the uddi.xml
                Transport transport = clerkManager.getTransport(name);
                // Now you create a reference to the UDDI API
                security = transport.getUDDISecurityService();
                publish = transport.getUDDIPublishService();
                inquiry = transport.getUDDIInquiryService();
                juddi = transport.getJUDDIApiService();
                String token = null;
                if (username == null || pass == null) {
                        username = clerk.getPublisher();
                        pass = clerk.getPassword();
                }
                if (username != null && pass != null) {
                }

View Full Code Here

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

  public static void main (String args[]) {
   
    Publish sp = new Publish();
    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

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

  public static void main (String args[]) {
   
    Delete sp = new Delete();
    try {
      uddiClient = new UDDIClient("META-INF/wsdl2uddi-uddi.xml");
      UDDIClerk clerk = uddiClient.getClerk("joe");
     
      sp.deleteWSDL(clerk);
      sp.deleteBusiness(clerk);
     
    } catch (Exception e) {
View Full Code Here

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

public class Find {
 
  public void find() {
    try {
      UDDIClient uddiClient = new UDDIClient("META-INF/wsdl2uddi-uddi.xml");
      UDDIClerk clerk = uddiClient.getClerk("joe");
         
          BusinessEntity businessEntity = clerk.findBusiness("uddi:uddi.joepublisher.com:business-for-wsdl");
          //
          if (businessEntity!=null) {
            System.out.println("Found business with name " + businessEntity.getName().get(0).getValue());
            System.out.println("Number of services: " + businessEntity.getBusinessServices().getBusinessService().size());
           
View Full Code Here

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

    public void Test1_NoAutoRegister() throws Exception {
        log.info("Test1_NoAutoRegister");

        UDDIClient c = new UDDIClient("META-INF/uddi-subcallback1.xml");
        c.start();
        UDDIClerk clerk = c.getClerk("default");
        // TModel createKeyGenator = UDDIClerk.createKeyGenator("uddi:org.apache.juddi:test:keygenerator", "Test domain", "en");
        //clerk.register(createKeyGenator);
        BindingTemplate start = SubscriptionCallbackListener.start(c, "default");
        Assert.assertNotNull(start);
        Assert.assertNotNull(start);
View Full Code Here

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

    public void Test2_NoAutoRegisterAndShortCircuitReceive() throws Exception {
        log.info("Test2_NoAutoRegisterAndShortCircuitReceive");
        Test2_NoAutoRegisterAndShortCircuitReceive_ = false;
        UDDIClient c = new UDDIClient("META-INF/uddi-subcallback1.xml");
        c.start();
        UDDIClerk clerk = c.getClerk("default");
        // TModel createKeyGenator = UDDIClerk.createKeyGenator("uddi:org.apache.juddi:test:keygenerator", "Test domain", "en");
        //clerk.register(createKeyGenator);
        BindingTemplate start = SubscriptionCallbackListener.start(c, "default");
        Assert.assertNotNull(start);
        //Assert.assertNotNull(start.getBindingKey());
View Full Code Here

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

    @Test(expected = ServiceAlreadyStartedException.class)
    public void Test3_StartWhenAlreadyStarted() throws Exception {
        log.info("Test3_StartWhenAlreadyStarted");
        UDDIClient c = new UDDIClient("META-INF/uddi-subcallback1.xml");
        c.start();
        UDDIClerk clerk = c.getClerk("default");
        // TModel createKeyGenator = UDDIClerk.createKeyGenator("uddi:org.apache.juddi:test:keygenerator", "Test domain", "en");
        //clerk.register(createKeyGenator);
        BindingTemplate start = SubscriptionCallbackListener.start(c, "default");
        try {
            BindingTemplate start1 = SubscriptionCallbackListener.start(c, "default");
View Full Code Here

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

        log.info("Test4_NotifyEndpointStopped");
        //reset
        Test4_NotifyEndpointStopped_ = false;
        UDDIClient c = new UDDIClient("META-INF/uddi-subcallback1.xml");
        c.start();
        UDDIClerk clerk = c.getClerk("default");

        BindingTemplate start = SubscriptionCallbackListener.start(c, "default");
        SubscriptionCallbackListener.registerCallback(this);

        SubscriptionCallbackListener.stop(c, "default", null);
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.