0 Replies Latest reply on Apr 12, 2006 10:35 AM by Amit Mahale

    Transforming SOAPElement gives incomplete data in JBoss

    Amit Mahale Newbie

      SOAPElement response = //response from WS
      TransformerFactory tFactory = TransformerFactory.newInstance();
      Transformer transformer = tFactory.newTransformer();
      DOMSource source = new DOMSource(response);
      StringWriter sw = new StringWriter();
      StreamResult result = new StreamResult(sw);
      transformer.transform(source, result);
      System.err.println(sw.toString());

      Same code works fine with SUN's implementation of SOAPElement i.e.
      com.sun.xml.messaging.saaj.soap.impl.ElementImpl

      But when I run the same code in JBoss 4.0.2 I get an incomplete string representation of the SOAPMessage with org.jboss.axis.message.SOAPElementAxisImpl