/** * sets a custom WSDL locator * * @param customResolver */ public void setCustomWSDLResolver(WSDLLocator customResolver) { this.customWSDLResolver = customResolver; setDocumentBaseUri(this.customWSDLResolver.getBaseURI()); }
/** * sets a custom WSDL locator * * @param customResolver */ public void setCustomWSDLResolver(WSDLLocator customResolver) { this.customWSDLResolver = customResolver; setDocumentBaseUri(this.customWSDLResolver.getBaseURI()); }
/** * Reads the WSDL Object Model from the given location. * * @param wsdlURI the filesystem location (full path) of the WSDL file to read in. * @return the WSDLDescription object containing the WSDL Object Model of the given WSDL file * @throws IOException on errors reading the WSDL file */ public AxisService getAxisService(String wsdlURI) throws Exception { URL url; if (wsdlURI.indexOf("://") == -1) { url = new URL("file", "", wsdlURI); } else { url = new URL(wsdlURI); } WSDL11ToAxisServiceBuilder builder = new WSDL11ToAxisServiceBuilder(url.openConnection().getInputStream()); builder.setDocumentBaseUri(url.toString()); builder.setBaseUri(getBaseUri(wsdlURI)); builder.setCodegen(true); return builder.populateService(); }
in2 = new FileInputStream(file1); wsdlToAxisServiceBuilder = new WSDL11ToAllAxisServicesBuilder(in2); ((WSDL11ToAxisServiceBuilder) wsdlToAxisServiceBuilder).setDocumentBaseUri(file1.toURI() .toString()); } else {
in2 = new FileInputStream(file1); wsdlToAxisServiceBuilder = new WSDL11ToAllAxisServicesBuilder(in2); ((WSDL11ToAxisServiceBuilder) wsdlToAxisServiceBuilder).setDocumentBaseUri(file1.toURI() .toString()); } else {
wsdlToAxisServiceBuilder = new WSDL11ToAllAxisServicesBuilder( new ByteArrayInputStream(out.toByteArray())); ((WSDL11ToAxisServiceBuilder) wsdlToAxisServiceBuilder).setDocumentBaseUri(entryName); } else { throw new DeploymentException(Messages.getMessage("invalidWSDLFound"));
wsdlToAxisServiceBuilder = new WSDL11ToAllAxisServicesBuilder( new ByteArrayInputStream(out.toByteArray())); ((WSDL11ToAxisServiceBuilder) wsdlToAxisServiceBuilder).setDocumentBaseUri(entryName); } else { throw new DeploymentException(Messages.getMessage("invalidWSDLFound"));
wsdl2AxisServiceBuilder.setDocumentBaseUri(wsdlURL.toString()); wsdl2AxisServiceBuilder.setDocumentBaseUri(wsdlURL.toString());
wsdl2AxisServiceBuilder.setDocumentBaseUri(wsdlURL.toString()); wsdl2AxisServiceBuilder.setDocumentBaseUri(wsdlURL.toString());