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 = new WebServiceEntity(); wsEntity.setURI(wsilURI); uriToEntityTable_.put(wsilURI, wsEntity);
private void parseURL(int parseOption) throws MalformedURLException, IOException, ParserConfigurationException, SAXException, WWWAuthenticationException WebServiceEntity wsEntity = new WebServiceEntity(); WebServiceEntity wsilEntity = new WebServiceEntity(); wsilEntity.setType(WebServiceEntity.TYPE_WSIL); wsilEntity.setURI(absoluteURI); WebServiceEntity discoEntity = new WebServiceEntity(); discoEntity.setType(WebServiceEntity.TYPE_DISCO); discoEntity.setURI(discoURIs[i]);
String ref = reference.getRef(); String docRef = reference.getDocRef(); WebServiceEntity wsdlEntity = new WebServiceEntity(); wsdlEntity.setType(WebServiceEntity.TYPE_WSDL); wsdlEntity.setURI(ref); if (discoLinkEntity == null) discoLinkEntity = new WebServiceEntity(); discoLinkEntity.setType(WebServiceEntity.TYPE_DISCO); discoLinkEntity.setURI(ref);
WebServiceEntity wsdlEntity = new WebServiceEntity(); wsdlEntity.setType(WebServiceEntity.TYPE_WSDL); wsdlEntity.setURI(absoluteURI); String inquiryURL = sd.getLocation(); String serviceKey = sd.getServiceKey().getText(); WebServiceEntity uddiServiceEntity = new WebServiceEntity(); uddiServiceEntity.setType(WebServiceEntity.TYPE_UDDI_SERVICE); String uddiServiceKeyURI = UDDIURIHelper.getServiceKeyURI(serviceKey,inquiryURL); if (wsilLinkEntity == null) wsilLinkEntity = new WebServiceEntity(); wsilLinkEntity.setType(WebServiceEntity.TYPE_WSIL); wsilLinkEntity.setURI(absoluteURI);