[jboss-svn-commits] JBossWS SVN: r832 - branches/jbossws-1.0/src/main/java/org/jboss/ws/soap

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Aug 25 15:22:06 EDT 2006


Author: jason.greene at jboss.com
Date: 2006-08-25 15:22:05 -0400 (Fri, 25 Aug 2006)
New Revision: 832

Modified:
   branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPDocument.java
   branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPPartImpl.java
Log:
Implement getNodeName(), now compatible with DOMWriter in Branch_1_0


Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPDocument.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPDocument.java	2006-08-25 18:52:59 UTC (rev 831)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPDocument.java	2006-08-25 19:22:05 UTC (rev 832)
@@ -159,7 +159,7 @@
    // Node methods
    public String getNodeName()
    {
-      throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Node operations not allowed on SOAPDocument");
+      return doc.getNodeName();
    }
 
    public String getNodeValue() throws DOMException

Modified: branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPPartImpl.java
===================================================================
--- branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPPartImpl.java	2006-08-25 18:52:59 UTC (rev 831)
+++ branches/jbossws-1.0/src/main/java/org/jboss/ws/soap/SOAPPartImpl.java	2006-08-25 19:22:05 UTC (rev 832)
@@ -60,8 +60,8 @@
 import org.w3c.dom.UserDataHandler;
 
 /** An implementation of SOAPPart.
- * 
  *
+ *
  * @author Thomas.Diesler at jboss.org
  */
 public class SOAPPartImpl extends SOAPPart
@@ -83,7 +83,7 @@
    {
       return soapMessage;
    }
-   
+
    public SOAPEnvelope getEnvelope() throws SOAPException
    {
       return soapEnvelope;
@@ -144,7 +144,7 @@
 
    public void setContent(Source source) throws SOAPException
    {
-      // R2714 For one-way operations, an INSTANCE MUST NOT return a HTTP response that contains a SOAP envelope. 
+      // R2714 For one-way operations, an INSTANCE MUST NOT return a HTTP response that contains a SOAP envelope.
       // Specifically, the HTTP response entity-body must be empty.
       if (source == null)
       {
@@ -300,7 +300,7 @@
       if (soapEnvelope != null)
       {
          list.add((NodeImpl)soapEnvelope);
-      }      
+      }
       return new NodeListImpl(list);
    }
 
@@ -331,7 +331,7 @@
 
    public String getNodeName()
    {
-      throw new NotImplementedException();
+      return doc.getNodeName();
    }
 
    public short getNodeType()




More information about the jboss-svn-commits mailing list