axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r649537 - /webservices/axis2/branches/java/1_4/modules/addressing/src/org/apache/axis2/addressing/AddressingFaultsHelper.java
Date Fri, 18 Apr 2008 13:39:35 GMT
Author: amilas
Date: Fri Apr 18 06:39:34 2008
New Revision: 649537

URL: http://svn.apache.org/viewvc?rev=649537&view=rev
Log:
fixed the issue AXIS2-3749

Modified:
    webservices/axis2/branches/java/1_4/modules/addressing/src/org/apache/axis2/addressing/AddressingFaultsHelper.java

Modified: webservices/axis2/branches/java/1_4/modules/addressing/src/org/apache/axis2/addressing/AddressingFaultsHelper.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_4/modules/addressing/src/org/apache/axis2/addressing/AddressingFaultsHelper.java?rev=649537&r1=649536&r2=649537&view=diff
==============================================================================
--- webservices/axis2/branches/java/1_4/modules/addressing/src/org/apache/axis2/addressing/AddressingFaultsHelper.java
(original)
+++ webservices/axis2/branches/java/1_4/modules/addressing/src/org/apache/axis2/addressing/AddressingFaultsHelper.java
Fri Apr 18 06:39:34 2008
@@ -386,7 +386,20 @@
                     SOAP12Constants.FAULT_CODE_SENDER);
             SOAPFaultSubCode soapFaultSubCode = soapFac.createSOAPFaultSubCode(soapFaultCode);
             SOAPFaultValue soapFaultSubcodeValue = soapFac.createSOAPFaultValue(soapFaultSubCode);
-            soapFaultSubcodeValue.setText(AddressingConstants.WSA_DEFAULT_PREFIX + ":" +
faultCode);
+
+            if (faultCode != null){
+                String namespace =
+                        (String) messageContext.getProperty(AddressingConstants.WS_ADDRESSING_VERSION);
+                if (namespace == null) {
+                    namespace = Final.WSA_NAMESPACE;
+                }
+                OMNamespace wsaNS = soapFac.createOMNamespace(namespace,
+                        AddressingConstants.WSA_DEFAULT_PREFIX);
+                soapFaultSubcodeValue.declareNamespace(wsaNS);
+                soapFaultSubcodeValue
+                        .setText(AddressingConstants.WSA_DEFAULT_PREFIX + ":" + faultCode);
+            }
+
             if (faultSubCode != null) {
                 SOAPFaultSubCode soapFaultSubCode2 =
                         soapFac.createSOAPFaultSubCode(soapFaultSubCode);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message