? StringUtils.getURL(null, contextURI) : null; URL url = StringUtils.getURL(contextURL, wsdlURI); InputStream inputStream = StringUtils.getContentAsInputStream(url); InputSource inputSource = new InputSource(inputStream); inputSource.setSystemId(url.toString());
return StringUtils.parseNMTokens(attrValue); List oldList = StringUtils.parseNMTokens(attrValue); int size = oldList.size(); List newList = new Vector(size);
attrStrValue = StringUtils.getNMTokens(attrValueList);
/** * Run WSDL validation on a given file. * * @param filename * The name of the file to validate. * @throws Exception */ protected IValidationReport validateFile(String filename) { // Resolve the location of the file. String filelocation = null; try { URL fileURL = StringUtils.getURL(new URL(FILE_PREFIX + workingdir + "/"), filename); filelocation = fileURL.toExternalForm(); } catch (MalformedURLException e) { // Do nothing. The WSDL validator will handle the error. //LoggerFactory.getInstance().getLogger().log(MessageFormat.format(WSDLValidateTextUIMessages._ERROR_UNABLE_TO_READ_FILE, new Object[]{filename}), ILogger.SEV_ERROR); } // Run validation on the file. IValidationReport valReport = wsdlValidator.validate(filelocation, null, configuration); return valReport; }
public static String getClassName(Class targetClass) { String className = targetClass.getName(); return targetClass.isArray() ? parseDescriptor(className) : className; }
/** * Parse the XML document and return the document element. * * @param uri the location of the XML document. * @param schema a String identifying related schema document. * @return a Document object. * @throws WSIException if there is a problem parsing the XML document. * @throws IOException if an I/O exception of some sort has occurred. */ public static Document parseXMLDocument(String uri, String schema) throws WSIException, IOException { URL url = StringUtils.getURL(null, uri); InputStream inputStream = (InputStream)url.getContent(); InputSource inputSource = new InputSource(inputStream); inputSource.setSystemId(url.toString()); if (schema == null) return parseXML(inputSource, false); else return parseXML(inputSource, schema); }
public static String getClassName(Class targetClass) { String className = targetClass.getName(); return targetClass.isArray() ? parseDescriptor(className) : className; }
? StringUtils.getURL(null, contextURI) : null; url = StringUtils.getURL(contextURL, locationURI); importedDef = (Definition)importedDefs.get(url.toString()); inputStream = StringUtils.getContentAsInputStream(url);
soapBody.setParts(StringUtils.parseNMTokens(partsStr)); soapBody.setEncodingStyles(StringUtils.parseNMTokens(encStyleStr));
/** * Parse the XML document and return the document element. * * @param uri the location of the XML document. * @param schema a String identifying related schema document. * @return a Document object. * @throws WSIException if there is a problem parsing the XML document. * @throws IOException if an I/O exception of some sort has occurred. */ public static Document parseXMLDocument(String uri, String schema) throws WSIException, IOException { URL url = StringUtils.getURL(null, uri); InputStream inputStream = (InputStream)url.getContent(); InputSource inputSource = new InputSource(inputStream); inputSource.setSystemId(url.toString()); if (schema == null) return parseXML(inputSource, false); else return parseXML(inputSource, schema); }
StringUtils.getNMTokens(soapBody.getParts()), pw); DOMUtils.printAttribute(SOAPConstants.ATTR_USE, soapBody.getUse(), pw); DOMUtils.printAttribute(SOAPConstants.ATTR_ENCODING_STYLE, StringUtils.getNMTokens(soapBody.getEncodingStyles()), pw); DOMUtils.printAttribute(Constants.ATTR_NAMESPACE,
URL contextURL = (contextURI != null) ? StringUtils.getURL(null, contextURI) : null; URL url = StringUtils.getURL(contextURL, schemaRef.getSchemaLocationURI()); location = url.toExternalForm(); inputStream = StringUtils.getContentAsInputStream(url);
op.setParameterOrdering(StringUtils.parseNMTokens(parameterOrderStr));
StringUtils.getNMTokens(soapBody.getParts()), pw); DOMUtils.printAttribute(SOAP12Constants.ATTR_USE, soapBody.getUse(), pw);
URL contextURL = (contextURI != null) ? StringUtils.getURL(null, contextURI) : null; URL url = StringUtils.getURL(contextURL, wsdlURI); InputStream reader = StringUtils.getContentAsInputStream(url); InputSource inputSource = new InputSource(reader); Document doc = getDocument(inputSource, wsdlURI);
soapBody.setParts(StringUtils.parseNMTokens(partsStr));
pw); DOMUtils.printAttribute(SOAPConstants.ATTR_ENCODING_STYLE, StringUtils.getNMTokens(soapHeaderFault.getEncodingStyles()), pw); DOMUtils.printAttribute(Constants.ATTR_NAMESPACE,
? StringUtils.getURL(null, contextURI) : null; URL url = StringUtils.getURL(contextURL, wsdlURI); InputStream inputStream = StringUtils.getContentAsInputStream(url); InputSource inputSource = new InputSource(inputStream); inputSource.setSystemId(url.toString());