/** * Generates a small XML file that captures the key activity of wsgen, * so that test harness can pick up artifacts. */ private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) { try { ReportOutput.Report report = TXW.create(ReportOutput.Report.class, new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport)))); report.wsdl(wsdlFile.getAbsolutePath()); ReportOutput.writeQName(rtModel.getServiceQName(), report.service()); ReportOutput.writeQName(rtModel.getPortName(), report.port()); ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType()); report.implClass(endpointClass.getName()); for (Map.Entry<String, File> e : schemaFiles.entrySet()) { ReportOutput.Schema s = report.schema(); s.ns(e.getKey()); s.location(e.getValue().getAbsolutePath()); } report.commit(); } catch (IOException e) { // this is code for the test, so we can be lousy in the error handling throw new Error(e); } }
/** * Generates a small XML file that captures the key activity of wsgen, * so that test harness can pick up artifacts. */ private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) { try { ReportOutput.Report report = TXW.create(ReportOutput.Report.class, new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport)))); report.wsdl(wsdlFile.getAbsolutePath()); ReportOutput.writeQName(rtModel.getServiceQName(), report.service()); ReportOutput.writeQName(rtModel.getPortName(), report.port()); ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType()); report.implClass(endpointClass.getName()); for (Map.Entry<String, File> e : schemaFiles.entrySet()) { ReportOutput.Schema s = report.schema(); s.ns(e.getKey()); s.location(e.getValue().getAbsolutePath()); } report.commit(); } catch (IOException e) { // this is code for the test, so we can be lousy in the error handling throw new Error(e); } }
/** * Generates a small XML file that captures the key activity of wsgen, * so that test harness can pick up artifacts. */ private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) { try { ReportOutput.Report report = TXW.create(ReportOutput.Report.class, new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport)))); report.wsdl(wsdlFile.getAbsolutePath()); ReportOutput.writeQName(rtModel.getServiceQName(), report.service()); ReportOutput.writeQName(rtModel.getPortName(), report.port()); ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType()); report.implClass(endpointClass.getName()); for (Map.Entry<String, File> e : schemaFiles.entrySet()) { ReportOutput.Schema s = report.schema(); s.ns(e.getKey()); s.location(e.getValue().getAbsolutePath()); } report.commit(); } catch (IOException e) { // this is code for the test, so we can be lousy in the error handling throw new Error(e); } }
/** * Generates a small XML file that captures the key activity of wsgen, * so that test harness can pick up artifacts. */ private void generateWsgenReport(Class<?> endpointClass, AbstractSEIModelImpl rtModel, File wsdlFile, Map<String, File> schemaFiles) { try { ReportOutput.Report report = TXW.create(ReportOutput.Report.class, new StreamSerializer(new BufferedOutputStream(new FileOutputStream(options.wsgenReport)))); report.wsdl(wsdlFile.getAbsolutePath()); ReportOutput.writeQName(rtModel.getServiceQName(), report.service()); ReportOutput.writeQName(rtModel.getPortName(), report.port()); ReportOutput.writeQName(rtModel.getPortTypeName(), report.portType()); report.implClass(endpointClass.getName()); for (Map.Entry<String, File> e : schemaFiles.entrySet()) { ReportOutput.Schema s = report.schema(); s.ns(e.getKey()); s.location(e.getValue().getAbsolutePath()); } report.commit(); } catch (IOException e) { // this is code for the test, so we can be lousy in the error handling throw new Error(e); } }