ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ven...@apache.org
Subject cvs commit: ws-axis/java/test/message TestSOAPBody.java
Date Thu, 09 Jun 2005 16:42:48 GMT
venkat      2005/06/09 09:42:48

  Modified:    java/test/message TestSOAPBody.java
  Log:
  cleanup.
  
  Revision  Changes    Path
  1.5       +6 -10     ws-axis/java/test/message/TestSOAPBody.java
  
  Index: TestSOAPBody.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/test/message/TestSOAPBody.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestSOAPBody.java	9 Jun 2005 16:36:27 -0000	1.4
  +++ TestSOAPBody.java	9 Jun 2005 16:42:48 -0000	1.5
  @@ -35,7 +35,6 @@
   import org.apache.axis.Message;
   import org.apache.axis.utils.XMLUtils;
   
  -
   /**
    * @author john.gregg@techarch.com
    * @author $Author$
  @@ -145,20 +144,17 @@
           ((Message) msg).setMessageContext(
                   new org.apache.axis.MessageContext(axisengine));
           SOAPPart sp = msg.getSOAPPart();
  -        SOAPEnvelope se = (org.apache.axis.message.SOAPEnvelope) sp.getEnvelope();
  -        SOAPHeader sh = (org.apache.axis.message.SOAPHeader)se.getHeader();
  -        SOAPBody sb = (org.apache.axis.message.SOAPBody)se.getBody();
  +        SOAPEnvelope se = sp.getEnvelope();
  +        SOAPBody sb = se.getBody();
   
           Node myNode = (Element) sb.getElementsByTagName("City").item(0);
  -
           myNode.replaceChild( myNode.getOwnerDocument().createTextNode("NY"), myNode.getFirstChild());
  -        System.out.println(XMLUtils.ElementToString(sb));
   
           msg.saveChanges();
           
           sp = msg.getSOAPPart();
  -        se = (org.apache.axis.message.SOAPEnvelope) sp.getEnvelope();
  -        javax.xml.soap.SOAPBody sb2 = se.getBody();
  +        se = sp.getEnvelope();
  +        sb = se.getBody();
           myNode = (Element) sb.getElementsByTagName("City").item(0);
           Node city = myNode.getFirstChild();
           assertEquals("City name did not change to NY", city.toString(), "NY");
  
  
  

Mime
View raw message