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/06/08 16:18:26 UTC
svn commit: r545516 - in /webservices/commons/trunk/modules/axiom/modules:
axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonImpl.java
Author: gdaniels
Date: Fri Jun 8 07:18:26 2007
New Revision: 545516
URL: http://svn.apache.org/viewvc?view=rev&rev=545516
Log:
Implement getTextAsQName() for SOAP 1.2 fault codes in DOOM.
If no language is specified for getSOAPFaultText(), take the first one.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonImpl.java
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java?view=diff&rev=545516&r1=545515&r2=545516
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java Fri Jun 8 07:18:26 2007
@@ -25,6 +25,8 @@
import org.apache.axiom.soap.SOAPProcessingException;
import org.apache.axiom.soap.impl.dom.SOAPFaultCodeImpl;
+import javax.xml.namespace.QName;
+
public class SOAP12FaultCodeImpl extends SOAPFaultCodeImpl {
/**
* Constructor OMElementImpl
@@ -61,6 +63,12 @@
"But received some other implementation");
}
super.setValue(value);
+ }
+
+
+ public QName getTextAsQName() {
+ SOAPFaultValue value = getValue();
+ return value == null ? null : value.getTextAsQName();
}
protected void checkParent(OMElement parent) throws SOAPProcessingException {
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonImpl.java?view=diff&rev=545516&r1=545515&r2=545516
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonImpl.java Fri Jun 8 07:18:26 2007
@@ -75,7 +75,7 @@
while (childrenIter.hasNext()) {
OMNode node = (OMNode) childrenIter.next();
if (node.getType() == OMNode.ELEMENT_NODE && (node instanceof SOAPFaultTextImpl) &&
- language.equals(((SOAPFaultTextImpl) node).getLang())) {
+ (language == null || language.equals(((SOAPFaultTextImpl) node).getLang()))) {
return (SOAPFaultText) node;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org