axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Jellinghaus <r...@unrealities.com>
Subject Re: SOAPBodyElement serialization bug
Date Fri, 02 Nov 2001 23:07:09 GMT
It sounds like this should be turned into a unit test...?

(I have no idea what broke or how to fix it, just making a general observation :-)

Cheers,
Rob


At 02:48 PM 11/2/2001 -0500, David Melgar wrote:
>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