[ 
https://issues.apache.org/jira/browse/AXIS2-3296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542672
 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-3296:
-----------------------------------------------------

Here is what I thought 
Here is the line it sets the soapFaultCode.

if (context.isSOAP11()) {
                fault.getCode().setText(soapFaultCode);
            } else {
                fault.getCode().getValue().setText(soapFaultCode);
            } 

if the original AxisFault has a code it sets in an initial stage and text 
should also have set.
 if (axisFault.getFaultCodeElement() != null) {
                fault.setCode(axisFault.getFaultCodeElement()); 

So the problem is we replace the correct thing with an empty soapFaultCode.
What you have suggest is to keep the correct value in soapFaultCode and use it 
here.

in that case if there is a correct value for soapFaultCode then we override it.




> When I am creating a AxisFault by giving a SoapFault, the SoapFaultCode is 
> ignored.
> -----------------------------------------------------------------------------------
>
>                 Key: AXIS2-3296
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3296
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3, nightly
>         Environment: Windows XP / JDK 1.4 (but also Sun Machine with 
> WebSphere 5.1 and JDK 1.4)
>            Reporter: Vincent Brabant
>            Assignee: Amila Chinthaka Suriarachchi
>
> I have a SoapFault where the SoapFaultCode is soapenv:Client.
> I am throwing an AxisFault by giving the SoapFault as argument
>           throw new AxisFaul(soapFault)
> But it return always a soapenv:Receiver (SOAP1.2) or a soapenv:Server 
> (SOAP1.1).

-- 
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