Package org.jboss.wsf.common

Examples of org.jboss.wsf.common.DOMWriter


/* 106 */     appendServices(buffer, this.wsdl.getTargetNamespace());
/*     */
/* 108 */     buffer.append("</definitions>");
/*     */
/* 110 */     Element element = DOMUtils.parse(buffer.toString());
/* 111 */     new DOMWriter(writer).setPrettyprint(true).print(element);
/*     */   }
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

      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

         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

         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

      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

   {
      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

         "</root>";


      Document doc = DOMUtils.parse(expStr).getOwnerDocument();
      StringWriter strwr = new StringWriter();
      new DOMWriter(strwr, "UTF-8").print(doc);
      String wasStr = strwr.toString();
     
      assertEquals(expStr, wasStr);
   }
View Full Code Here

      String xmlIn = "<Hello> <Sub>World</Sub> </Hello>";
      Element root = DOMUtils.parse(xmlIn);
      root.normalize();
     
      StringWriter strwr = new StringWriter();
      new DOMWriter(strwr).setIgnoreWhitespace(true).print(root);
      String xmlOut = strwr.toString();
      assertEquals("<Hello><Sub>World</Sub></Hello>", xmlOut);
   }
View Full Code Here

            File webInf = new File(tmpWar, "WEB-INF");
            webInf.mkdirs();

            File webXml = new File(webInf, "web.xml");
            FileWriter fw = new FileWriter(webXml);
            new DOMWriter(fw).setPrettyprint(true).print(webDoc);
            fw.close();

            File jbossWebXml = new File(webInf, "jboss-web.xml");
            fw = new FileWriter(jbossWebXml);
            new DOMWriter(fw).setPrettyprint(true).print(jbossDoc);
            fw.close();
         }
         catch (IOException e)
         {
            throw new WebServiceException("Failed to create webservice war", e);
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.