Package org.jboss.wsf.common

Examples of org.jboss.wsf.common.DOMWriter


/*     */   public void writeElement(Writer writer)
/*     */     throws IOException
/*     */   {
/* 525 */     if ((this.soapContent instanceof DOMContent))
/*     */     {
/* 527 */       new DOMWriter(writer).print(this);
/*     */     }
/*     */     else
/*     */     {
/* 531 */       transitionTo(SOAPContent.State.XML_VALID);
/* 532 */       this.soapContent.getXMLFragment().writeTo(writer);
View Full Code Here


/* 757 */     return "http://schemas.xmlsoap.org/soap/envelope/".equals(getNamespaceURI()) ? Constants.SOAP11_FAULT_CODE_SERVER : SOAPConstants.SOAP_RECEIVER_FAULT;
/*     */   }
/*     */
/*     */   public void writeElement(Writer writer)
/*     */   {
/* 762 */     new DOMWriter(writer).print(this);
/*     */   }
View Full Code Here

/*      */
/*  530 */       tmpFile = SchemaUtils.getSchemaTempFile(targetNS);
/*  531 */       this.tempFiles.add(tmpFile);
/*      */
/*  533 */       FileWriter fwrite = new FileWriter(tmpFile);
/*  534 */       new DOMWriter(fwrite).setPrettyprint(true).print(schemaEl);
/*  535 */       fwrite.close();
/*      */
/*  537 */       this.schemaLocationsMap.put(targetNS, tmpFile.toURL());
/*      */     }
/*      */
View Full Code Here

/*     */   {
/* 156 */     Element element = DOMUtils.parse(builder.toString());
/*     */
/* 158 */     if (charset != null)
/* 159 */       writer.write("<?xml version=\"1.0\" encoding=\"" + charset + "\"?>\n");
/* 160 */     new DOMWriter(writer).setPrettyprint(true).print(element);
/*     */   }
View Full Code Here

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

/* 166 */       this.source = beginSourceAccess(this.source);
/*     */
/* 168 */       if ((this.source instanceof DOMSource))
/*     */       {
/* 170 */         DOMSource domSource = (DOMSource)this.source;
/* 171 */         new DOMWriter(writer).print(domSource.getNode());
/*     */       }
/* 173 */       else if (((this.source instanceof StreamSource)) || ((this.source instanceof SAXSource)))
/*     */       {
/* 175 */         StreamSource streamSource = (StreamSource)this.source;
/*     */
View Full Code Here

      }

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

      }

      if (targetNS != null)
View Full Code Here

/* 267 */     for (Iterator i$ = elements.iterator(); i$.hasNext(); ) { Object obj = i$.next();
/*     */
/* 269 */       if ((obj instanceof Element))
/*     */       {
/* 271 */         StringWriter strwr = new StringWriter();
/* 272 */         DOMWriter domWriter = new DOMWriter(strwr).setCompleteNamespaces(false);
/* 273 */         domWriter.print((Element)obj);
/* 274 */         String xmlFragment = strwr.toString();
/* 275 */         xmlBuffer.append(xmlFragment);
/*     */       }
/* 277 */       else if ((obj instanceof String))
/*     */       {
View Full Code Here

/* 68 */     if (log.isTraceEnabled())
/*    */     {
/* 70 */       log.trace("Outgoing Message\n" + DOMWriter.printNode(root, true));
/*    */     }
/*    */
/* 73 */     new DOMWriter(output).print(root);
/*    */   }
View Full Code Here

/* 152 */       webservices = existingWebservices;
/*     */     }
/*     */
/* 156 */     Element root = DOMUtils.parse(webservices.serialize());
/* 157 */     FileWriter fwriter = new FileWriter(wsXmlFile);
/* 158 */     new DOMWriter(fwriter).setPrettyprint(true).print(root);
/* 159 */     fwriter.close();
/*     */   }
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.