You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2006/03/13 11:30:53 UTC
[jira] Assigned: (AXIS2-413) SOAPFaultSubCode is lost on
serialization
[ http://issues.apache.org/jira/browse/AXIS2-413?page=all ]
Deepal Jayasinghe reassigned AXIS2-413:
---------------------------------------
Assign To: Eran Chinthaka
I think you already have fix this
> SOAPFaultSubCode is lost on serialization
> -----------------------------------------
>
> Key: AXIS2-413
> URL: http://issues.apache.org/jira/browse/AXIS2-413
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: om
> Versions: 0.94
> Environment: Windows XP, Java 1.4.2 and 1.5.0
> Reporter: Jesse Stockall
> Assignee: Eran Chinthaka
>
> When creating a fault with a value and subcode the element added last is lost when the fault is serialized.
> SOAPFactory sf = OMAbstractFactory.getSOAP12Factory();
> SOAPEnvelope env = sf.createSOAPEnvelope();
> SOAPBody body = sf.createSOAPBody(env);
> SOAPFault fault = sf.createSOAPFault(body);
> SOAPFaultCode faultCode = sf.createSOAPFaultCode(fault);
> SOAPFaultValue faultValue = sf.createSOAPFaultValue(faultCode);
> SOAPFaultSubCode subCode = sf.createSOAPFaultSubCode(faultCode;
> fault.serialize(System.out);
> Will print:
> <soapenv:Fault xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Code>
> <soapenv:Value />
> </soapenv:Code>
> </soapenv:Fault>
> If the subsocde is created before the value:
> SOAPFactory sf = OMAbstractFactory.getSOAP12Factory();
> SOAPEnvelope env = sf.createSOAPEnvelope();
> SOAPBody body = sf.createSOAPBody(env);
> SOAPFault fault = sf.createSOAPFault(body);
> SOAPFaultCode faultCode = sf.createSOAPFaultCode(fault);
> SOAPFaultSubCode subCode = sf.createSOAPFaultSubCode(faultCode);
> SOAPFaultValue faultValue = sf.createSOAPFaultValue(faultCode);
> fault.serialize(System.out);
> Will print:
> <soapenv:Fault xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
> <soapenv:Code>
> <soapenv:Subcode />
> </soapenv:Code>
> </soapenv:Fault>
> fault.getCode().getSubCode() and fault.getCode().getValue() both return the expected values no matter the order they are created in.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira