rineholt 2002/09/17 08:42:44
Modified: java/src/org/apache/axis/handlers/soap SOAPService.java
java/src/org/apache/axis/utils axisNLS.properties
Log:
Tell in the message which headers are at fault.
Revision Changes Path
1.81 +6 -1 xml-axis/java/src/org/apache/axis/handlers/soap/SOAPService.java
Index: SOAPService.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/handlers/soap/SOAPService.java,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- SOAPService.java 9 Sep 2002 17:03:27 -0000 1.80
+++ SOAPService.java 17 Sep 2002 15:42:44 -0000 1.81
@@ -195,6 +195,7 @@
if (misunderstoodHeaders != null) {
// !!! If SOAP 1.2, insert misunderstood fault header here
+ StringBuffer whatWasMissUnderstood= new StringBuffer(256);
if (doMisunderstoodHeaders) {
Message respMsg = msgContext.getResponseMessage();
if (respMsg == null) {
@@ -208,6 +209,10 @@
nextElement();
QName badQName = new QName(badHeader.getNamespaceURI(),
badHeader.getName());
+
+ if(whatWasMissUnderstood.length() != 0)
whatWasMissUnderstood.append(", ");
+ whatWasMissUnderstood.append( badQName.toString() );
+
SOAPHeaderElement newHeader = new
SOAPHeaderElement(Constants.URI_SOAP12_FAULT,
Constants.ELEM_MISUNDERSTOOD);
@@ -220,7 +225,7 @@
}
throw new AxisFault(Constants.FAULT_MUSTUNDERSTAND,
- Messages.getMessage("noUnderstand00"),
+ Messages.getMessage("noUnderstand00",
whatWasMissUnderstood.toString()),
null, null);
}
}
1.62 +1 -1 xml-axis/java/src/org/apache/axis/utils/axisNLS.properties
Index: axisNLS.properties
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/axisNLS.properties,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- axisNLS.properties 15 Sep 2002 19:16:17 -0000 1.61
+++ axisNLS.properties 17 Sep 2002 15:42:44 -0000 1.62
@@ -441,7 +441,7 @@
noTypeOnGlobalConfig00=GlobalConfiguration does not allow the ''type'' attribute!
# NOTE: in noUnderstand00, do not translate "MustUnderstand"
-noUnderstand00=Did not understand "MustUnderstand" header(s)!
+noUnderstand00=Did not understand "MustUnderstand" header(s):{0}
# NOTE: in noValue00, do not translate "value", "RPCParam"
noValue00=No value field for RPCParam to use?!? {0}