woolfel     2005/05/13 21:36:26

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/sampler
                        WebServiceSampler.java
  Log:
  catch each exception separately to make it easier to tell what is wrong. this 
will make it
  easier to tell when the user puts in a bad message or the soap version is not 
compatible
  peter
  
  Revision  Changes    Path
  1.22      +12 -5     
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/WebServiceSampler.java
  
  Index: WebServiceSampler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/WebServiceSampler.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- WebServiceSampler.java    14 May 2005 01:46:48 -0000      1.21
  +++ WebServiceSampler.java    14 May 2005 04:36:26 -0000      1.22
  @@ -21,12 +21,15 @@
   import java.io.BufferedReader;
   import java.io.File;
   import java.io.FileInputStream;
  +import java.io.IOException;
   import java.io.StringReader;
   import java.net.URL;
  +import java.net.MalformedURLException;
   import java.util.Enumeration;
   import java.util.Random;
   import java.util.Hashtable;
   
  +import javax.mail.MessagingException;
   import javax.xml.parsers.DocumentBuilder;
   
   import org.xml.sax.InputSource;
  @@ -574,10 +577,14 @@
               log.debug(exception.getMessage());
               RESULT.setSuccessful(false);
           }
  -        catch (Exception exception)
  -        {
  +        catch (MalformedURLException exception){
  +            log.debug(exception.getMessage());
  +        }
  +        catch (IOException exception){
  +            log.debug(exception.getMessage());
  +        }
  +        catch (MessagingException exception){
               log.debug(exception.getMessage());
  -            RESULT.setSuccessful(false);
           }
                return RESULT;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to