Package org.jboss.wsf.common

Examples of org.jboss.wsf.common.DOMWriter


   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

      con.setDoOutput(true);
      con.connect();
     
      OutputStream outs = con.getOutputStream();
      Element reqMsg = DOMUtils.parse(reqEnv);
      new DOMWriter(outs).print(reqMsg);
      outs.close();
     
      int resCode = con.getResponseCode();
      assertEquals(200, resCode);
   }
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

         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;
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

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

      new DOMWriter(output).print(root);
   }
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

         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

      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

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.