axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/message SOAPFaultBuilder.java
Date Mon, 23 Jul 2001 22:30:41 GMT
rubys       01/07/23 15:30:41

  Modified:    java/src/org/apache/axis/message SOAPFaultBuilder.java
  Log:
  Don't blow up if the fault is ill formed.
  
  Try running the interop tests against the following endpoint to see
  an example of ill formed faults:
  	http://soaptest.activestate.com:8080/PerlEx/soap.plex
  
  Revision  Changes    Path
  1.4       +2 -3      xml-axis/java/src/org/apache/axis/message/SOAPFaultBuilder.java
  
  Index: SOAPFaultBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SOAPFaultBuilder.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SOAPFaultBuilder.java	2001/07/16 17:37:03	1.3
  +++ SOAPFaultBuilder.java	2001/07/23 22:30:41	1.4
  @@ -114,9 +114,8 @@
       {
           String name = (String)hint;
           if (name.equals("faultcode")) {
  -            fault.setFaultCode(
  -                         new QFault(
  -                               context.getQNameFromString((String)value)));
  +            QName qname = context.getQNameFromString((String)value);
  +            if (qname != null) fault.setFaultCode(new QFault(qname));
           } else if (name.equals("faultstring")) {
               fault.setFaultString((String)value);
           } else if (name.equals("faultactor")) {
  
  
  

Mime
View raw message