Ignore:
Timestamp:
07/11/14 14:09:42 (10 years ago)
Author:
sherbold
Message:
  • the methodName of the SOAPEventType is now normalized, e.g., by removing quotation marks around the method name
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/eventcore/SOAPEventType.java

    r1599 r1600  
    8383        this.soapRequest = soapRequest; 
    8484        this.soapResponse = soapResponse; 
    85         this.calledMethod = determineCalledMethod(exchange, soapRequest); 
     85        this.calledMethod = normalizeCalledMethod(determineCalledMethod(exchange, soapRequest)); 
    8686         
    8787        String path = null; 
     
    251251        return null; 
    252252    } 
     253     
     254    /** 
     255     * removes unnecessary characters from the method name 
     256     */ 
     257    private String normalizeCalledMethod(String calledMethod) { 
     258        if (calledMethod != null) { 
     259            if (calledMethod.startsWith("\"") && calledMethod.endsWith("\"")) { 
     260                calledMethod = calledMethod.substring(1, calledMethod.length() - 1); 
     261            } 
     262            if (calledMethod.startsWith("urn:")) { 
     263                calledMethod = calledMethod.substring(4); 
     264            } 
     265        } 
     266        return calledMethod; 
     267    } 
    253268} 
Note: See TracChangeset for help on using the changeset viewer.