public Definition getWSDLDefinitionVerbose(String wsdlURI) throws MalformedURLException, IOException, WWWAuthenticationException, WSDLException { WebServiceEntity wsEntity = getWebServiceEntityByURI(wsdlURI); if (wsEntity == null) { wsEntity = new WebServiceEntity(); wsEntity.setURI(wsdlURI); uriToEntityTable_.put(wsdlURI, wsEntity); } Definition definition = (Definition)wsEntity.getModel(); if (definition == null) { byte[] b = getInputStreamAsByteArray(wsdlURI); wsEntity.setBytes(b); setHTTPSettings(wsEntity); ByteArrayInputStream bais = new ByteArrayInputStream(b); WSDLFactory factory = WSDLPlugin.INSTANCE.createWSDL4JFactory(); WSDLReader wsdlReader = factory.newWSDLReader(); definition = wsdlReader.readWSDL(wsdlURI, new InputSource(bais)); wsEntity.setType(WebServiceEntity.TYPE_WSDL); wsEntity.setModel(definition); } return definition; }
wsEntity.setURI(wsilURI); uriToEntityTable_.put(wsilURI, wsEntity);
wsEntity.setURI(theUri); byte[] b = getInputStreamAsByteArray(theUri); wsEntity.setBytes(b); WebServiceEntity wsilEntity = new WebServiceEntity(); wsilEntity.setType(WebServiceEntity.TYPE_WSIL); wsilEntity.setURI(absoluteURI); associate(wsEntity, wsilEntity); uriToEntityTable_.put(absoluteURI, wsilEntity); discoEntity.setURI(discoURIs[i]); associate(wsEntity,discoEntity); uriToEntityTable_.put(discoURIs[i],discoEntity);
WebServiceEntity wsdlEntity = new WebServiceEntity(); wsdlEntity.setType(WebServiceEntity.TYPE_WSDL); wsdlEntity.setURI(ref); wsdlEntity.setDocumentation(docRef); associate(discoEntity,wsdlEntity); discoLinkEntity.setURI(ref); uriToEntityTable_.put(ref,discoLinkEntity); if ((parseOption | PARSE_LINKS) == parseOption)
WebServiceEntity wsdlEntity = new WebServiceEntity(); wsdlEntity.setType(WebServiceEntity.TYPE_WSDL); wsdlEntity.setURI(absoluteURI); wsdlEntity.setDocumentation(documentation); associate(wsilEntity, wsdlEntity); uddiServiceEntity.setType(WebServiceEntity.TYPE_UDDI_SERVICE); String uddiServiceKeyURI = UDDIURIHelper.getServiceKeyURI(serviceKey,inquiryURL); uddiServiceEntity.setURI(uddiServiceKeyURI); uddiServiceEntity.setDocumentation(documentation); associate(wsilEntity,uddiServiceEntity); wsilLinkEntity.setURI(absoluteURI); wsilLinkEntity.setDocumentation(documentation); uriToEntityTable_.put(absoluteURI, wsilLinkEntity);