SOAPFaultDetail serializes the text string twice in the toString() method
-------------------------------------------------------------------------
Key: WSCOMMONS-202
URL: https://issues.apache.org/jira/browse/WSCOMMONS-202
Project: WS-Commons
Issue Type: Bug
Components: AXIOM
Environment: Ubuntu 6.06, JDK 1.5
Reporter: Chathura Ekanayake
org.apache.axiom.soap.SOAPFaultDetail adds the text string twice to the string
returned by toString() method for SOAP 1.2.
Following code illustrates this issue:
import org.apache.axiom.soap.SOAPFactory;
import org.apache.axiom.soap.SOAPFaultDetail;
import org.apache.axiom.om.OMAbstractFactory;
public class SOAPTest {
public static void main(String[] args) {
new SOAPTest().test();
}
private void test() {
SOAPFactory factory = OMAbstractFactory.getSOAP12Factory();
SOAPFaultDetail soapFaultDetail = factory.createSOAPFaultDetail();
soapFaultDetail.setText("a");
System.out.println("Return value of getText(): " +
soapFaultDetail.getText());
System.out.println("Return value of toString(): " +
soapFaultDetail.toString());
}
}
--
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]