axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Melgar" <dmel...@us.ibm.com>
Subject SOAPBodyElement serialization bug
Date Fri, 02 Nov 2001 19:48:14 GMT
I am writing a client that works with DOM elements. This was working with
alpha 2. It is no longer working. The problem I'm running into is when a
SOAPBodyElement is created from a DOM element, then serialized to a string,
the element names all end up as null.

The testcase below is very simple illustration of the problem.
SOAPBodyElement converted to a string shows up as "<null/>".


import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Element;
import org.apache.axis.message.SOAPBodyElement;

public class Testcase1 {
   public static void main (String args[]) {
      try {
         DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance
().newDocumentBuilder();
         Element base = docBuilder.newDocument().createElement("tmp");
         SOAPBodyElement body = new SOAPBodyElement(base);
         System.out.println("Body:" + body);
      } catch (Exception e) {
         e.printStackTrace();
      }
   }
}

David Melgar
Web Services Toolkit Development
Emerging Technologies
dmelgar@us.ibm.com


Mime
View raw message