Package org.jboss.wsf.common

Examples of org.jboss.wsf.common.DOMWriter


      }

      if (tmpFile != null)
      {
         FileWriter fwrite = new FileWriter(tmpFile);
         new DOMWriter(fwrite).setPrettyprint(true).print(schemaEl);
         fwrite.close();

      }

      if (targetNS != null)
View Full Code Here


      WSDLRequestHandler wsdlRequestHandler = new WSDLRequestHandler(epMetaData);
      Document document = wsdlRequestHandler.getDocumentForPath(reqURL, wsdlHost, resPath);

      OutputStreamWriter writer = new OutputStreamWriter(outputStream);
      new DOMWriter(writer, Constants.DEFAULT_XML_CHARSET).setPrettyprint(true).print(document.getDocumentElement());
   }
View Full Code Here

      File tmpdir = IOUtils.createTempDirectory();
      xsdFile = File.createTempFile("jbossws_schema", ".xsd", tmpdir);
      xsdFile.deleteOnExit();

      OutputStreamWriter outwr = new OutputStreamWriter(new FileOutputStream(xsdFile));
      DOMWriter domWriter = new DOMWriter(outwr);
      domWriter.setPrettyprint(true);
      domWriter.print(schemaElement);
      outwr.close();

      return xsdFile.toURL();
   }
View Full Code Here

      WSDLRequestHandler wsdlRequestHandler = new WSDLRequestHandler(epMetaData);
      Document document = wsdlRequestHandler.getDocumentForPath(reqURL, wsdlHost, resPath);

      OutputStreamWriter writer = new OutputStreamWriter(outputStream);
      new DOMWriter(writer).setPrettyprint(true).print(document.getDocumentElement());
   }
View Full Code Here

      }

      // (re-)write generated webservices descriptor to file
      Element root = DOMUtils.parse(webservices.serialize());
      FileWriter fwriter = new FileWriter(wsXmlFile);
      new DOMWriter(fwriter).setPrettyprint(true).print(root);
      fwriter.close();
   }
View Full Code Here

      for (Object obj : elements)
      {
         if (obj instanceof Element)
         {
            StringWriter strwr = new StringWriter();
            DOMWriter domWriter = new DOMWriter(strwr).setCompleteNamespaces(false);
            domWriter.print((Element)obj);
            String xmlFragment = strwr.toString();
            xmlBuffer.append(xmlFragment);
         }
         else if (obj instanceof String)
         {
View Full Code Here

      appendServices(buffer, wsdl.getTargetNamespace());

      buffer.append("</definitions>");

      Element element = DOMUtils.parse(buffer.toString());
      new DOMWriter(writer).setPrettyprint(true).print(element);
   }
View Full Code Here

         tmpFile = SchemaUtils.getSchemaTempFile(targetNS);
         tempFiles.add(tmpFile);

         FileWriter fwrite = new FileWriter(tmpFile);
         new DOMWriter(fwrite).setPrettyprint(true).print(schemaEl);
         fwrite.close();

         schemaLocationsMap.put(targetNS, tmpFile.toURL());
      }
View Full Code Here

      if (log.isTraceEnabled())
      {
         log.trace("Outgoing Message\n" + DOMWriter.printNode(root, true));
      }

      new DOMWriter(output).print(root);
   }
View Full Code Here

         throw new WebServiceException("Invalid qname: " + operation);

      try
      {
         Element root = DOMUtils.parse(wsdlSource);
         new DOMWriter(System.out).setPrettyprint(true).print(root);
      }
      catch (IOException ex)
      {
         throw new WebServiceException("Cannot parse MessageContext.WSDL_DESCRIPTION", ex);
      }
View Full Code Here

TOP

Related Classes of org.jboss.wsf.common.DOMWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.