You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by gd...@apache.org on 2007/08/01 06:12:37 UTC
svn commit: r561639 - in
/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom:
soap11/ soap12/
Author: gdaniels
Date: Tue Jul 31 21:12:36 2007
New Revision: 561639
URL: http://svn.apache.org/viewvc?view=rev&rev=561639
Log:
More informative error messages.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultTextImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultValueImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultTextImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultValueImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultCodeImpl.java Tue Jul 31 21:12:36 2007
@@ -55,7 +55,7 @@
public void setSubCode(SOAPFaultSubCode subCode) throws SOAPProcessingException {
if (!(subCode instanceof SOAP11FaultSubCodeImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Sub Code. But received some other implementation");
+ "Expecting SOAP11FaultSubCodeImpl, got " + subCode.getClass());
}
super.setSubCode(subCode);
}
@@ -63,7 +63,7 @@
public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
if (!(value instanceof SOAP11FaultValueImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Value. But received some other implementation");
+ "Expecting SOAP11FaultValueImpl, got " + value.getClass());
}
super.setValue(value);
}
@@ -71,7 +71,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault as the parent. But received some other implementation");
+ "Expecting SOAP11FaultImpl, got " + parent.getClass());
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultDetailImpl.java Tue Jul 31 21:12:36 2007
@@ -57,9 +57,8 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
- throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault as the " +
- "parent. But received some other implementation");
+ throw new SOAPProcessingException("Expecting SOAP11FaultImpl, got " +
+ parent.getClass());
}
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java Tue Jul 31 21:12:36 2007
@@ -75,8 +75,7 @@
throws SOAPProcessingException {
if (!(soapFaultCode instanceof SOAP11FaultCodeImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Code. " +
- "But received some other implementation");
+ "Expecting SOAP11FaultCodeImpl, got " + soapFaultCode.getClass());
}
super.setCode(soapFaultCode);
}
@@ -84,8 +83,7 @@
public void setReason(SOAPFaultReason reason) throws SOAPProcessingException {
if (!(reason instanceof SOAP11FaultReasonImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Reason. " +
- "But received some other implementation");
+ "Expecting SOAP11FaultReasonImpl, got " + reason.getClass());
}
super.setReason(reason);
}
@@ -97,8 +95,7 @@
public void setRole(SOAPFaultRole role) throws SOAPProcessingException {
if (!(role instanceof SOAP11FaultRoleImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Role. " +
- "But received some other implementation");
+ "Expecting SOAP11FaultRoleImpl, got " + role.getClass());
}
super.setRole(role);
}
@@ -106,16 +103,14 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11BodyImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Body as the " +
- "parent. But received some other implementation");
+ "Expecting SOAP11BodyImpl, got " + parent.getClass());
}
}
public void setDetail(SOAPFaultDetail detail) throws SOAPProcessingException {
if (!(detail instanceof SOAP11FaultDetailImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Detail. " +
- "But received some other implementation");
+ "Expecting SOAP11FaultDetailImpl, got " + detail.getClass());
}
super.setDetail(detail);
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultReasonImpl.java Tue Jul 31 21:12:36 2007
@@ -65,8 +65,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault as the " +
- "parent. But received some other implementation");
+ "Expecting SOAP11FaultImpl, got " + parent.getClass());
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultRoleImpl.java Tue Jul 31 21:12:36 2007
@@ -51,13 +51,11 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault as the " +
- "parent. But received some other implementation");
+ "Expecting SOAP11FaultImpl, got " + parent.getClass());
}
}
- protected void internalSerialize(
- XMLStreamWriter writer, boolean cache)
+ protected void internalSerialize(XMLStreamWriter writer, boolean cache)
throws XMLStreamException {
// select the builder
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultSubCodeImpl.java Tue Jul 31 21:12:36 2007
@@ -66,7 +66,8 @@
if (!((parent instanceof SOAP11FaultSubCodeImpl) ||
(parent instanceof SOAP11FaultCodeImpl))) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation");
+ "Expecting SOAP11FaultSubCodeImpl or SOAP11FaultCodeImpl, got " +
+ parent.getClass());
}
}
@@ -74,7 +75,8 @@
if (!((parent instanceof SOAP11FaultSubCodeImpl) ||
(parent instanceof SOAP11FaultCodeImpl))) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Sub Code. But received some other implementation");
+ "Expecting SOAP11FaultSubCodeImpl or SOAP11FaultCodeImpl, got " +
+ subCode.getClass());
}
super.setSubCode(subCode);
}
@@ -82,10 +84,8 @@
public void setValue(SOAPFaultValue soapFaultSubCodeValue) throws SOAPProcessingException {
if (!(soapFaultSubCodeValue instanceof SOAP11FaultValueImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Fault Value. But received some other implementation");
+ "Expecting SOAP11FaultValueImpl, got " + soapFaultSubCodeValue.getClass());
}
super.setValue(soapFaultSubCodeValue);
}
-
-
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultTextImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultTextImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultTextImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultTextImpl.java Tue Jul 31 21:12:36 2007
@@ -48,8 +48,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11FaultReasonImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP FaultReason as " +
- "the parent. But received some other implementation");
+ "Expecting SOAP11FaultReasonImpl, got " + parent.getClass());
}
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultValueImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultValueImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultValueImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultValueImpl.java Tue Jul 31 21:12:36 2007
@@ -47,7 +47,7 @@
if (!((parent instanceof SOAP11FaultSubCodeImpl) ||
(parent instanceof SOAP11FaultCodeImpl))) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation." +
+ "Expecting SOAP11FaultSubCodeImpl or SOAP11FaultCodeImpl, got " +
parent.getClass());
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl.java Tue Jul 31 21:12:36 2007
@@ -71,7 +71,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP11HeaderImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.1 implementation of SOAP Body as the parent. But received some other implementation");
+ "Expecting SOAP11HeaderImpl, got " + parent.getClass());
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultCodeImpl.java Tue Jul 31 21:12:36 2007
@@ -58,7 +58,7 @@
public void setSubCode(SOAPFaultSubCode subCode) throws SOAPProcessingException {
if (!(subCode instanceof SOAP12FaultSubCodeImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Sub Code. But received some other implementation");
+ "Expecting SOAP12FaultSubCodeImpl, got " + subCode.getClass());
}
super.setSubCode(subCode);
}
@@ -66,7 +66,7 @@
public void setValue(SOAPFaultValue value) throws SOAPProcessingException {
if (!(value instanceof SOAP12FaultValueImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Value. But received some other implementation");
+ "Expecting SOAP12FaultValueImpl, got " + value.getClass());
}
super.setValue(value);
}
@@ -74,7 +74,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP12FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
+ "Expecting SOAP12FaultImpl as parent, got " + parent.getClass());
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultDetailImpl.java Tue Jul 31 21:12:36 2007
@@ -24,7 +24,6 @@
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFault;
import org.apache.axiom.soap.SOAPProcessingException;
-import org.apache.axiom.soap.SOAP11Constants;
import org.apache.axiom.soap.SOAP12Constants;
import org.apache.axiom.soap.impl.llom.SOAPFaultDetailImpl;
@@ -52,8 +51,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP12FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault as the " +
- "parent. But received some other implementation");
+ "Expecting SOAP12FaultImpl as parent, got " + parent.getClass());
}
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java Tue Jul 31 21:12:36 2007
@@ -76,8 +76,7 @@
throws SOAPProcessingException {
if (!(soapFaultCode instanceof SOAP12FaultCodeImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Code. " +
- "But received some other implementation");
+ "Expecting SOAP12FaultCodeImpl, got " + soapFaultCode.getClass());
}
super.setCode(soapFaultCode);
}
@@ -86,8 +85,7 @@
public void setReason(SOAPFaultReason reason) throws SOAPProcessingException {
if (!(reason instanceof SOAP12FaultReasonImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Reason. " +
- "But received some other implementation");
+ "Expecting SOAP12FaultReasonImpl, got " + reason.getClass());
}
super.setReason(reason);
}
@@ -95,8 +93,7 @@
public void setNode(SOAPFaultNode node) throws SOAPProcessingException {
if (!(node instanceof SOAP12FaultNodeImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Node. " +
- "But received some other implementation");
+ "Expecting SOAP12FaultNodeImpl, got " + node.getClass());
}
super.setNode(node);
}
@@ -104,8 +101,7 @@
public void setRole(SOAPFaultRole role) throws SOAPProcessingException {
if (!(role instanceof SOAP12FaultRoleImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Role. " +
- "But received some other implementation");
+ "Expecting SOAP12FaultRoleImpl, got " + role.getClass());
}
super.setRole(role);
}
@@ -113,8 +109,7 @@
public void setDetail(SOAPFaultDetail detail) throws SOAPProcessingException {
if (!(detail instanceof SOAP12FaultDetailImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Detail. " +
- "But received some other implementation");
+ "Expecting SOAP12FaultDetailImpl, got " + detail.getClass());
}
super.setDetail(detail);
}
@@ -122,8 +117,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP12BodyImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Body as the " +
- "parent. But received some other implementation");
+ "Expecting SOAP12BodyImpl, got " + parent.getClass());
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java Tue Jul 31 21:12:36 2007
@@ -45,7 +45,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP12FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault as the parent. But received some other implementation");
+ "Expecting SOAP12FaultImpl, got " + parent.getClass());
}
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultReasonImpl.java Tue Jul 31 21:12:36 2007
@@ -47,8 +47,7 @@
throws SOAPProcessingException {
if (!(soapFaultText instanceof SOAP12FaultTextImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Text. " +
- "But received some other implementation");
+ "Expecting SOAP12FaultTextImpl, got " + soapFaultText.getClass());
}
addChild(soapFaultText);
}
@@ -72,8 +71,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP12FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault as the " +
- "parent. But received some other implementation");
+ "Expecting SOAP12FaultImpl, got " + parent.getClass());
}
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultRoleImpl.java Tue Jul 31 21:12:36 2007
@@ -45,8 +45,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP12FaultImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault as the " +
- "parent. But received some other implementation");
+ "Expecting SOAP12FaultImpl, got " + parent.getClass());
}
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java Tue Jul 31 21:12:36 2007
@@ -73,8 +73,7 @@
throws SOAPProcessingException {
if (!(subCode instanceof SOAP12FaultSubCodeImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Sub " +
- "Code. But received some other implementation");
+ "Expecting SOAP12FaultSubCodeImpl, got " + subCode.getClass());
}
super.setSubCode(subCode);
}
@@ -83,8 +82,7 @@
throws SOAPProcessingException {
if (!(soapFaultSubCodeValue instanceof SOAP12FaultValueImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Fault Value. " +
- "But received some other implementation");
+ "Expecting SOAP12FaultValueImpl, got " + soapFaultSubCodeValue.getClass());
}
super.setValue(soapFaultSubCodeValue);
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultTextImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultTextImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultTextImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultTextImpl.java Tue Jul 31 21:12:36 2007
@@ -46,7 +46,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP12FaultReasonImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP FaultReason as the parent. But received some other implementation");
+ "Expecting SOAP12FaultReasonImpl as parent, got " + parent.getClass());
}
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultValueImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultValueImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultValueImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultValueImpl.java Tue Jul 31 21:12:36 2007
@@ -47,7 +47,8 @@
if (!((parent instanceof SOAP12FaultSubCodeImpl) ||
(parent instanceof SOAP12FaultCodeImpl))) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation");
+ "Expecting SOAP12FaultSubCodeImpl or SOAP12FaultCodeImpl as parent, got " +
+ parent.getClass());
}
}
}
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java?view=diff&rev=561639&r1=561638&r2=561639
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12HeaderBlockImpl.java Tue Jul 31 21:12:36 2007
@@ -73,8 +73,7 @@
protected void checkParent(OMElement parent) throws SOAPProcessingException {
if (!(parent instanceof SOAP12HeaderImpl)) {
throw new SOAPProcessingException(
- "Expecting SOAP 1.2 implementation of SOAP Body as " +
- "the parent. But received some other implementation");
+ "Expecting SOAP12HeaderImpl as parent, got " + parent.getClass());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org