Package org.apache.juddi.v3.client.mapping.wsdl

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


                                        }
                                        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

                        }
                        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

                                        }
                                        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

                                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

   
        @Test
        public void Nulltest1()
        {
            try {
                WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(null, null, new Properties());
            } catch (ConfigurationException ex) {
                Logger.getLogger(WSDL2UDDITest.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
View Full Code Here

        }
        @Test(expected = IllegalArgumentException.class)
        public void Nulltest2()
        {
            try {
                WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(null, new URLLocalizerDefaultImpl(), null);
            } catch (ConfigurationException ex) {
               
            }
           
        }
View Full Code Here

    Definition wsdlDefinition = rw.readWSDL("wsdl/HelloWorld.wsdl");
    String wsdlURL = wsdlDefinition.getDocumentBaseURI();
   
    Properties properties = new Properties();
    properties.put("keyDomain", "juddi.apache.org");
    WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(null, new URLLocalizerDefaultImpl(), properties);
    Set<TModel> tModels = new HashSet<TModel>();
      @SuppressWarnings("unchecked")
    Map<QName,PortType> portTypes = (Map<QName,PortType>) wsdlDefinition.getAllPortTypes();
      Set<TModel> portTypeTModels = wsdl2UDDI.createWSDLPortTypeTModels(wsdlURL, portTypes);
      tModels.addAll(portTypeTModels);
     
    for (TModel tModel : tModels) {
      System.out.println("UDDI PortType TModel " + tModel.getName().getValue());
                        if (serialize)
View Full Code Here

    Definition wsdlDefinition = rw.readWSDL("wsdl/HelloWorld.wsdl");
    String wsdlURL = wsdlDefinition.getDocumentBaseURI();
   
    Properties properties = new Properties();
    properties.put("keyDomain", "juddi.apache.org");
    WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(null, new URLLocalizerDefaultImpl(), properties);
    Set<TModel> tModels = new HashSet<TModel>();
      @SuppressWarnings("unchecked")
    Map<QName,Binding> bindings= (Map<QName,Binding>) wsdlDefinition.getAllBindings();
      Set<TModel> bindingTModels = wsdl2UDDI.createWSDLBindingTModels(wsdlURL, bindings);
      tModels.addAll(bindingTModels);
     
    for (TModel tModel : tModels) {
      System.out.println("UDDI Binding TModel " + tModel.getName().getValue());
                        if (serialize)
View Full Code Here

        }

        @Test
        public void test_3_2_1_UDDI_portType_tModel() throws WSDLException, IOException, JAXBException, ConfigurationException {

                WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(null, new URLLocalizerDefaultImpl(), properties);
                Set<TModel> tModels = new HashSet<TModel>();
                @SuppressWarnings("unchecked")
                Map<QName, PortType> portTypes = (Map<QName, PortType>) wsdlDefinition.getAllPortTypes();
                Set<TModel> portTypeTModels = wsdl2UDDI.createWSDLPortTypeTModels(wsdlURL, portTypes);
                tModels.addAll(portTypeTModels);

                Assert.assertEquals(1, tModels.size());

                TModel tModel = tModels.iterator().next();
View Full Code Here

TOP

Related Classes of org.apache.juddi.v3.client.mapping.wsdl.WSDL2UDDI

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.