dims 2002/06/23 07:48:34
Modified: java/src/org/apache/axis AxisFault.java
java/src/org/apache/axis/message DetailEntry.java
Log:
Make sure that DetailEntry text goes on the "wire"
Revision Changes Path
1.51 +10 -0 xml-axis/java/src/org/apache/axis/AxisFault.java
Index: AxisFault.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/AxisFault.java,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- AxisFault.java 22 Jun 2002 23:14:04 -0000 1.50
+++ AxisFault.java 23 Jun 2002 14:48:34 -0000 1.51
@@ -287,6 +287,16 @@
faultDetails.add(element);
}
+ public void addFaultDetailString(String detail) {
+ if(faultDetails == null)
+ faultDetails = new Vector();
+ Document doc = XMLUtils.newDocument();
+ Element element = doc.createElement("string");
+ Text text = doc.createTextNode(detail);
+ element.appendChild(text);
+ faultDetails.add(element);
+ }
+
public Element[] getFaultDetails() {
if (faultDetails == null) return null;
Element result[] = new Element[faultDetails.size()];
1.3 +8 -0 xml-axis/java/src/org/apache/axis/message/DetailEntry.java
Index: DetailEntry.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/DetailEntry.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DetailEntry.java 23 Jun 2002 14:25:51 -0000 1.2
+++ DetailEntry.java 23 Jun 2002 14:48:34 -0000 1.3
@@ -64,4 +64,12 @@
public DetailEntry(javax.xml.soap.Name name){
super(name);
}
+
+ public javax.xml.soap.SOAPElement addTextNode(String text) throws
javax.xml.soap.SOAPException {
+ javax.xml.soap.SOAPElement element = super.addTextNode(text);
+ org.apache.axis.message.Detail detail =
(org.apache.axis.message.Detail)this.getParentElement();
+ org.apache.axis.AxisFault fault = detail.getFault();
+ fault.addFaultDetailString(text);
+ return element;
+ }
}