WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter(); String baseURI = null; if (wsdlDefinition.getLocation() != null) { baseURI = wsdlDefinition.getLocation().toString(); } else { baseURI = "generated.wsdl"; for (WSDLDefinition importedWSDLDefintion : wsdlDefinition.getImportedDefinitions()){ outStream.write(separator); baseURI = importedWSDLDefintion.getLocation().toString(); outStream.write(baseURI.getBytes()); outStream.write(separator);
protected Dispatch<SOAPMessage> createStaticDispatch() { URL wsdlLocation = null; try { if (wsBinding.getGeneratedWSDLDocument() != null && wsBinding.getGeneratedWSDLDocument().getDocumentBaseURI() != null) { wsdlLocation = new URL(wsBinding.getGeneratedWSDLDocument().getDocumentBaseURI()); } } catch (Exception e) { // ignore and try getting the location from the other places } try { if (wsBinding.getUserSpecifiedWSDLDefinition().getLocation() != null) { wsdlLocation = wsBinding.getUserSpecifiedWSDLDefinition().getLocation().toURL(); } } catch (MalformedURLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } if (wsdlLocation != null) { return createDispatchFromWSDL(wsdlLocation); } else { return createDispatchFromURI(endpointReference.getDeployedURI()); } }
if (unresolved.getDefinition() == null && unresolved.getLocation() != null) { try {
if (unresolved.getDefinition() == null && unresolved.getLocation() != null) { try {
if (!resolved.isUnresolved()) { wsdlDefinition.setDefinition(resolved.getDefinition()); wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions());
if (!resolved.isUnresolved()) { wsdlDefinition.setDefinition(resolved.getDefinition()); wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions());
artifactURL = new URL(loc); } else { if (wsdlDef.getLocation() == null) { return; artifactURL = wsdlDef.getLocation().toURL();
artifactURL = new URL(loc); } else { if (wsdlDef.getLocation() == null) { return; artifactURL = wsdlDef.getLocation().toURL();
wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions());
wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions());
wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions());
wsdlDefinition.setLocation(resolved.getLocation()); wsdlDefinition.setURI(resolved.getURI()); wsdlDefinition.getImportedDefinitions().addAll(resolved.getImportedDefinitions());