Author: darran.lofthouse(a)jboss.com
Date: 2010-12-08 11:52:32 -0500 (Wed, 08 Dec 2010)
New Revision: 13431
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java
Log:
[JBPAPP-5506] Revert incorrect change.
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java 2010-12-08
13:55:05 UTC (rev 13430)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/soap/SOAPBodyImpl.java 2010-12-08
16:52:32 UTC (rev 13431)
@@ -292,21 +292,8 @@
return validChild == false;
}
- private static SOAPBodyElementDoc convertToBodyElement(Node node) throws DOMException
+ private static SOAPBodyElementDoc convertToBodyElement(Node node)
{
- if (!(node instanceof SOAPElementImpl) && (node instanceof Element))
- {
- try
- {
- SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
- node = (SOAPElementImpl)soapFactory.createElement((Element)node);
- }
- catch (SOAPException ex)
- {
- throw new DOMException(DOMException.INVALID_STATE_ERR, "Could not
convert Element to a SOAPElement");
- }
- }
-
if (!(node instanceof SOAPElementImpl))
throw new IllegalArgumentException("SOAPElement expected");
Show replies by date