[ 
https://issues.apache.org/jira/browse/AXIS2-3605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578345#action_12578345
 ] 

Matthias Weber commented on AXIS2-3605:
---------------------------------------

Davanum,

sorry, I'm sitting behind a restrictive Web-Proxy. No chance to commit to SVN.

A quick patch for AXIS2-3605 and AXIS2-3602:

public class MessageContextBuilder {

[...]

                //    Object faultNode = 
context.getProperty(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME);
                //    if (faultNode != null) {
                //        fault.getNode().setText((String) faultNode);
                //    } else if (axisFault != null) {
                //        if (axisFault.getFaultNodeElement() != null) {
                //            fault.setNode(axisFault.getFaultNodeElement());
                //        }
                //    }         
                
                Object faultNode = 
context.getProperty(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME);
                if (context.isSOAP11()) {
                        // TODO: need a way to set faultactor in 
SOAP11FaultImpl. 
                } else {
                        SOAPFaultNode soapFaultNode = 
OMAbstractFactory.getSOAP12Factory().createSOAPFaultNode();
                        if (faultNode != null) {
                                soapFaultNode.setText((String)faultNode);
                                fault.setNode(soapFaultNode);
                        } else if (axisFault != null) {
                                if (axisFault.getFaultNodeElement() != null) {
                                        
fault.setNode(axisFault.getFaultNodeElement());
                                } else if (axisFault.getFaultNode() != null) {
                                        
soapFaultNode.setText(axisFault.getFaultNode());
                                        fault.setNode(soapFaultNode);
                                }
                        }
                }

[...]
}

Works for me but I haven't found a quick way to set <faultactor> for SOAP 1.1 
faults.

Matthias

> MessageContextBuilder.createFaultEnvelope ignores AxisFault.faultNode set by 
> AxisFault constructor
> --------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3605
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3605
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>         Environment: JRE 1.4.2
>            Reporter: Matthias Weber
>
> The constructor AxisFault(QName faultCode, String faultReason, String 
> faultNode, String faultRole, OMElement faultDetail) sets the private field 
> faultNode. MessageContextBuilder ignores this:
>         Object faultNode = 
> context.getProperty(SOAP12Constants.SOAP_FAULT_NODE_LOCAL_NAME);
>         if (faultNode != null) {
>             fault.getNode().setText((String) faultNode);
>         } else if (axisFault != null) {
>             if (axisFault.getFaultNodeElement() != null) {
>                 fault.setNode(axisFault.getFaultNodeElement());
>             }
>         }
> Only soapFaultNode is evaluated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to