Author: shameera
Date: Sun May 5 15:41:25 2013
New Revision: 1479342
URL: http://svn.apache.org/r1479342
Log:
Revert 1479332 commit, which build soap message up to body level in builder
level
Modified:
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java
Modified:
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java?rev=1479342&r1=1479341&r2=1479342&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java
(original)
+++
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java
Sun May 5 15:41:25 2013
@@ -169,7 +169,7 @@ public class TransportUtils {
return createSOAPEnvelope(documentElement);
}
- public static SOAPEnvelope createSOAPEnvelope(OMElement documentElement)
throws AxisFault {
+ public static SOAPEnvelope createSOAPEnvelope(OMElement documentElement) {
SOAPEnvelope envelope;
// Check whether we have received a SOAPEnvelope or not
if (documentElement instanceof SOAPEnvelope) {
@@ -183,10 +183,6 @@ public class TransportUtils {
envelope.getBody().addChild(documentElement);
}
}
- //According to both SOAP 1.1 and 1.2 specification SOAP body is
mandatory element for a valid soap envelop
- if (envelope.getBody() == null) {
- throw new AxisFault("soap body element is null, but it is
mandatory for a valid soap envelop");
- }
return envelope;
}