Package org.jboss.wsf.common

Examples of org.jboss.wsf.common.DOMWriter


         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


  
   public void writeElement(Writer writer) throws IOException
   {     
      if (soapContent instanceof DOMContent)
      {
         new DOMWriter(writer).print(this);
      }
      else
      {
         transitionTo(State.XML_VALID);
         soapContent.getXMLFragment().writeTo(writer);
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());
      }
      catch (RuntimeException rte)
      {
         throw rte;
      }
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

      appendServices(buffer, wsdl.getTargetNamespace());

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

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

  
   public void writeElement(Writer writer) throws IOException
   {     
      if (soapContent instanceof DOMContent)
      {
         DOMWriter dw = new DOMWriter(writer);
         CommonMessageContext ctx = MessageContextAssociation.peekMessageContext();
         if (ctx != null && Boolean.TRUE == ctx.get(Constants.DOM_CONTENT_CANONICAL_NORMALIZATION))
         {
            if (log.isTraceEnabled())
               log.trace("Forcing canonical normalization of DOMContent...");
            dw.setCanonical(true);
         }
         dw.print(this);
      }
      else
      {
         transitionTo(State.XML_VALID);
         soapContent.getXMLFragment().writeTo(writer);
View Full Code Here

      return Constants.NS_SOAP11_ENV.equals(getNamespaceURI()) ? Constants.SOAP11_FAULT_CODE_SERVER : SOAPConstants.SOAP_RECEIVER_FAULT;
   }

   public void writeElement(Writer writer)
   {
      new DOMWriter(writer).print(this);
   }
View Full Code Here

   {
      Element element = DOMUtils.parse(builder.toString());

      if (charset != null)
         writer.write("<?xml version=\"1.0\" encoding=\"" + charset + "\"?>\n");
      new DOMWriter(writer).setPrettyprint(true).print(element);
   }
View Full Code Here

   }

   public void writeElement(Writer writer) {
      try
      {
         DOMWriter domWriter = new DOMWriter(writer);
         domWriter.print(this);
      }
      catch (Exception e)
      {
         throw new JAXRPCException(e);
      }
View Full Code Here

         source = beginSourceAccess(source);

         if (source instanceof DOMSource)
         {
            DOMSource domSource = (DOMSource)source;
            new DOMWriter(writer).print(domSource.getNode());
         }
         else if (source instanceof StreamSource || source instanceof SAXSource)
         {
            StreamSource streamSource = (StreamSource)source;
            boolean newReader = false;
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.