Search in sources :

Example 1 with TXWResult

use of com.sun.xml.txw2.output.TXWResult in project metro-jax-ws by eclipse-ee4j.

the class WSDLGenerator method createInlineSchema.

private Result createInlineSchema(String namespaceUri, String suggestedFileName) throws IOException {
    Result result;
    if (namespaceUri.equals("")) {
        return null;
    }
    // Holder<String> fileNameHolder = new Holder<String>();
    // fileNameHolder.value = schemaPrefix+suggestedFileName;
    // result = wsdlResolver.getSchemaOutput(namespaceUri, fileNameHolder);
    // if (result == null) {
    // // JAXB doesn't have to generate it, a schema is already available
    // com.sun.xml.ws.wsdl.writer.document.xsd.Import _import = types.schema()._import().namespace(namespaceUri);
    // _import.schemaLocation(fileNameHolder.value);
    // } else {
    // Let JAXB write the schema directly into wsdl's TypedXmlWriter
    result = new TXWResult(types);
    result.setSystemId("");
    // }
    return result;
}
Also used : TXWResult(com.sun.xml.txw2.output.TXWResult) Result(javax.xml.transform.Result) SAXResult(javax.xml.transform.sax.SAXResult) TXWResult(com.sun.xml.txw2.output.TXWResult) DOMResult(javax.xml.transform.dom.DOMResult)

Aggregations

TXWResult (com.sun.xml.txw2.output.TXWResult)1 Result (javax.xml.transform.Result)1 DOMResult (javax.xml.transform.dom.DOMResult)1 SAXResult (javax.xml.transform.sax.SAXResult)1