Examples of WSDL2UDDI


Examples of org.apache.juddi.v3.client.mapping.WSDL2UDDI

          ReadWSDL rw = new ReadWSDL();
          Definition wsdlDefinition = rw.readWSDL(wsdlUrl);
          if (wsdl.keyDomain!=null) properties.setProperty("keyDomain", wsdl.keyDomain);
          if (wsdl.businessKey!=null) properties.setProperty("businessKey", wsdl.getBusinessKey());
         
          WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(this, new URLLocalizerDefaultImpl(), properties);
          wsdl2UDDI.registerBusinessServices(wsdlDefinition);
        } catch (Exception e) {
          log.error("Unable to register wsdl " + wsdl.getFileName() + " ." + e.getMessage(),e);
        } catch (Throwable t) {
          log.error("Unable to register wsdl " + wsdl.getFileName() + " ." + t.getMessage(),t);
        }
View Full Code Here

Examples of org.apache.juddi.v3.client.mapping.WSDL2UDDI

          ReadWSDL rw = new ReadWSDL();
          Definition wsdlDefinition = rw.readWSDL(wsdlUrl);
          if (wsdl.keyDomain!=null) properties.setProperty("keyDomain", wsdl.keyDomain);
          if (wsdl.businessKey!=null) properties.setProperty("businessKey", wsdl.getBusinessKey());
         
          WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(this, new URLLocalizerDefaultImpl(), properties);
          wsdl2UDDI.unRegisterBusinessServices(wsdlDefinition);
        } catch (Exception e) {
          log.error("Unable to register wsdl " + wsdl.getFileName() + " ." + e.getMessage(),e);
        } catch (Throwable t) {
          log.error("Unable to register wsdl " + wsdl.getFileName() + " ." + t.getMessage(),t);
        }
View Full Code Here

Examples of org.apache.juddi.v3.client.mapping.wsdl.WSDL2UDDI

                                properties.put("keyDomain", "domain");
                                properties.put("businessName", "biz");
                                properties.put("serverName", "localhost");
                                properties.put("serverPort", "80");

                                WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(null, new URLLocalizerDefaultImpl(), properties);
                                BusinessServices businessServices = wsdl2UDDI.createBusinessServices(wsdlDefinition);
                                for (int i = 0; i < businessServices.getBusinessService().size(); i++) {
                                        if (businessServices.getBusinessService().get(i).getBindingTemplates() != null) {
                                                for (int k = 0; k < businessServices.getBusinessService().get(i).getBindingTemplates().getBindingTemplate().size(); k++) {
                                                        items.addAll(ParseBinding(businessServices.getBusinessService().get(i).getBindingTemplates().getBindingTemplate().get(k), null));
                                                }
View Full Code Here

Examples of org.apache.juddi.v3.client.mapping.wsdl.WSDL2UDDI

 
  public void publishAndRegisterHttpCallbackEndpoint() throws BindException {
    if (clerk!=null && listenerEndpoint==null) {
      try {
        listenerServiceUrl = new URL(urlLocalizer.rewrite(new URL(DEFAULT_SUBSCRIPTION_LISTENER_URL)));
        WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(clerk, urlLocalizer, properties);
        Definition wsdlDefinition = new ReadWSDL().readWSDL("org/apache/juddi/v3/client/mapping/UDDIClientSubscriptionListener.wsdl");
       
        String bindingKey = wsdl2UDDI.registerBusinessService(
            SUBSCRIPTION_LISTENER_SERVICE_NAME,
            SUBSCRIPTION_LISTENER_PORT_NAME, listenerServiceUrl, wsdlDefinition).getBindingKey();
        UDDISubscriptionListenerPortType subscriptionListener = new UDDIClientSubscriptionListenerImpl(bindingKey, this);
        log.info("Bringing up a UDDIClientSubscriptionListenerImpl on Endpoint " + listenerServiceUrl.toExternalForm());
        listenerEndpoint = Endpoint.create(subscriptionListener);
View Full Code Here

Examples of org.apache.juddi.v3.client.mapping.wsdl.WSDL2UDDI

    if (subscriptionKey!=null) {
      clerk.unRegisterSubscription(subscriptionKey);
    }
    if (listenerEndpoint!=null) {
      listenerEndpoint.stop();
      WSDL2UDDI wsdl2UDDI;
      try {
        wsdl2UDDI = new WSDL2UDDI(clerk, urlLocalizer, properties);
        wsdl2UDDI.unRegisterBusinessService(
            SUBSCRIPTION_LISTENER_SERVICE_NAME,
            SUBSCRIPTION_LISTENER_PORT_NAME, listenerServiceUrl);
      } catch (Exception e) {
        /* we did our best*/
        log.debug(e.getMessage(),e);
 
View Full Code Here

Examples of org.apache.juddi.v3.client.mapping.wsdl.WSDL2UDDI

        } else {
          serviceLocator = serviceLocators.get(clerk.getName());
        }
      }
      if (RegistrationType.WSDL.equals(registrationInfo.getRegistrationType())) {
        WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(clerk, urlLocalizer, properties);
        wsdl2UDDI.registerBusinessService(registrationInfo.getServiceQName(),
                   registrationInfo.getPortName(),
                   registrationInfo.getServiceUrl(),
                   registrationInfo.getWsdlDefinition()).getBusinessService();
       
      } else if (RegistrationType.BPEL.equals(registrationInfo.getRegistrationType())) {
View Full Code Here

Examples of org.apache.juddi.v3.client.mapping.wsdl.WSDL2UDDI

                                        }
                                        if (wsdl.businessKey != null) {
                                                properties.setProperty("businessKey", wsdl.getBusinessKey());
                                        }

                                        WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(this, new URLLocalizerDefaultImpl(localizerBaseUrl), properties);
                                        wsdl2UDDI.registerBusinessServices(wsdlDefinition);
                                } catch (Exception e) {
                                        log.error("Unable to register wsdl " + wsdl.getFileName() + " ." + e.getMessage(), e);
                                } catch (Throwable t) {
                                        log.error("Unable to register wsdl " + wsdl.getFileName() + " ." + t.getMessage(), t);
                                }
View Full Code Here

Examples of org.apache.juddi.v3.client.mapping.wsdl.WSDL2UDDI

                        }
                        if (businessKey != null) {
                                properties.setProperty("businessKey", businessKey);
                        }

                        WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(this, new URLLocalizerDefaultImpl(), properties);
                        wsdl2UDDI.registerBusinessServices(wsdlDefinition);
                } catch (Exception e) {
                        log.error("Unable to register wsdl " + " ." + e.getMessage(), e);
                } catch (Throwable t) {
                        log.error("Unable to register wsdl " + " ." + t.getMessage(), t);
                }
View Full Code Here

Examples of org.apache.juddi.v3.client.mapping.wsdl.WSDL2UDDI

                                        }
                                        if (wsdl.businessKey != null) {
                                                properties.setProperty("businessKey", wsdl.getBusinessKey());
                                        }

                                        WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(this, new URLLocalizerDefaultImpl(), properties);
                                        wsdl2UDDI.unRegisterBusinessServices(wsdlDefinition);
                                } catch (Exception e) {
                                        log.error("Unable to register wsdl " + wsdl.getFileName() + " ." + e.getMessage(), e);
                                } catch (Throwable t) {
                                        log.error("Unable to register wsdl " + wsdl.getFileName() + " ." + t.getMessage(), t);
                                }
View Full Code Here

Examples of org.apache.juddi.v3.client.mapping.wsdl.WSDL2UDDI

                                properties.put("keyDomain", "domain");
                                properties.put("businessName", "biz");
                                properties.put("serverName", "localhost");
                                properties.put("serverPort", "80");

                                WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(null, new URLLocalizerDefaultImpl(), properties);
                                BusinessServices businessServices = wsdl2UDDI.createBusinessServices(wsdlDefinition);
                                for (int i = 0; i < businessServices.getBusinessService().size(); i++) {
                                        if (businessServices.getBusinessService().get(i).getBindingTemplates() != null) {
                                                for (int k = 0; k < businessServices.getBusinessService().get(i).getBindingTemplates().getBindingTemplate().size(); k++) {
                                                        items.addAll(ParseBinding(businessServices.getBusinessService().get(i).getBindingTemplates().getBindingTemplate().get(k)));
                                                }
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.