Author: alessio.soldano(a)jboss.com
Date: 2009-11-09 05:39:11 -0500 (Mon, 09 Nov 2009)
New Revision: 11099
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java
Log:
[JBWS-2746] Make SOAPFactoryImpl directly use its own createElement(..) method instead of
looking for the current configured SOAPFactory
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java 2009-11-09
10:24:19 UTC (rev 11098)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java 2009-11-09
10:39:11 UTC (rev 11099)
@@ -134,7 +134,7 @@
{
// Construct the envelope
SOAPPartImpl soapPart = (SOAPPartImpl)soapMessage.getSOAPPart();
- SOAPEnvelopeImpl soapEnv = new SOAPEnvelopeImpl(soapPart,
soapFactory.createElement(domEnv, false), false);
+ SOAPEnvelopeImpl soapEnv = new SOAPEnvelopeImpl(soapPart,
(SOAPElementImpl)soapFactory.createElement(domEnv, false), false);
DOMUtils.copyAttributes(soapEnv, domEnv);
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java 2009-11-09
10:24:19 UTC (rev 11098)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPEnvelopeImpl.java 2009-11-09
10:39:11 UTC (rev 11099)
@@ -21,11 +21,8 @@
*/
package org.jboss.ws.core.soap;
-import java.util.Iterator;
-
import javax.xml.namespace.QName;
import javax.xml.soap.Name;
-import javax.xml.soap.Node;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPEnvelope;
@@ -52,9 +49,9 @@
/** Construct a SOAP envelope for the given SOAP version URI prefix, etc.
*/
- public SOAPEnvelopeImpl(SOAPPartImpl soapPart, SOAPElement element, boolean
addHeaderAndBody) throws SOAPException
+ public SOAPEnvelopeImpl(SOAPPartImpl soapPart, SOAPElementImpl element, boolean
addHeaderAndBody) throws SOAPException
{
- super((SOAPElementImpl)element);
+ super(element);
this.soapPart = soapPart;
soapPart.setEnvelope(this);
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java 2009-11-09
10:24:19 UTC (rev 11098)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPFactoryImpl.java 2009-11-09
10:39:11 UTC (rev 11099)
@@ -118,8 +118,7 @@
String prefix = domElement.getPrefix() != null ? domElement.getPrefix() :
"";
String nsURI = domElement.getNamespaceURI() != null ? domElement.getNamespaceURI()
: "";
- SOAPFactory factory = SOAPFactory.newInstance();
- SOAPElement soapElement = factory.createElement(localName, prefix, nsURI);
+ SOAPElement soapElement = this.createElement(localName, prefix, nsURI);
DOMUtils.copyAttributes(soapElement, domElement);
Show replies by date