BPEL2UDDI extends AnnotationProcessor { public Set<TModel> createWSDLBindingTModels(String wsdlURL, Map<QName,Binding> bindings) throws WSDLException { return wsdl2UDDI.createWSDLBindingTModels(wsdlURL, bindings); } BPEL2UDDI(UDDIClerk clerk, URLLocalizer urlLocalizer, Properties properties); String getKeyDomainURI(); void setKeyDomainURI(String keyDomainURI); UDDIClerk getClerk(); void setClerk(UDDIClerk clerk); String getLang(); void setLang(String lang); URLLocalizer getUrlLocalizer(); void setUrlLocalizer(URLLocalizer urlLocalizer); @SuppressWarnings("unchecked") BindingTemplate register(QName serviceName, String portName, URL serviceUrl, Definition wsdlDefinition); String unRegister(QName serviceName, String portName, URL serviceUrl); BusinessService lookupService(String serviceKey); BusinessService createBusinessService(QName serviceName, Definition wsdlDefinition); Set<TModel> createWSDLPortTypeTModels(String wsdlURL, Map<QName,PortType> portTypes); Set<TModel> createWSDLBindingTModels(String wsdlURL, Map<QName,Binding> bindings); TModel createBPEL4WSProcessTModel(QName serviceName, String targetNamespace, Map<QName,PortType> portTypes, String bpelOverviewURL); BindingTemplate createBPELBinding(QName serviceName, String portName, URL serviceUrl, Definition wsdlDefinition); FindTModel createFindTModelForProcessName(QName serviceName); FindTModel createFindProcessesForPortTypes(String portTypeKey); GetTModelDetail createFindAllPortTypesForProcess_1(String processKey); GetTModelDetail createFindAllPortTypesForProcess_2(List<String> portTypeTModelKeys); FindBinding createFindImplementationsForProcess(String processKey);  }
@Test public void testHelloWorld_UDDIBindingModel() throws WSDLException, JAXBException, Exception { Definition wsdlDefinition = rw.readWSDL("bpel/HelloWorld.wsdl"); @SuppressWarnings("unchecked") Map<QName,Binding> bindings = (Map<QName,Binding>) wsdlDefinition.getAllBindings(); Set<TModel> bindingTModels = bpel2UDDI.createWSDLBindingTModels(wsdlDefinition.getDocumentBaseURI(), bindings); for (TModel tModel : bindingTModels) { System.out.println("***** UDDI Binding TModel: " + tModel.getName().getValue()); if (serialize) System.out.println(pTModel.print(tModel)); } Assert.assertEquals(1,bindingTModels.size()); }