Ignore:
Timestamp:
09/23/15 16:21:12 (9 years ago)
Author:
sherbold
Message:
  • enabled working with SOAP events that do not have a message body
Location:
trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/eventcore
Files:
2 edited

Legend:

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

    r1993 r2037  
    276276    public Element getSoapResponseBody() { 
    277277        try { 
    278             return soapResponse.getSOAPBody(); 
     278            if( soapResponse!=null ) { 
     279                return soapResponse.getSOAPBody(); 
     280            } else { 
     281                return null; 
     282            } 
    279283        } 
    280284        catch (SOAPException e) { 
  • trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/eventcore/SimpleSOAPEventType.java

    r1994 r2037  
    188188            throw new RuntimeException( 
    189189                                       "cannot use random mode is no request map is available; different data missing"); 
     190        } 
     191        if( soapMsgBody == null ) { 
     192            return null; 
    190193        } 
    191194        return createDOMElement(equalBodyMap.getRandom(this)); 
     
    278281 
    279282    private Element createDOMElement(String requestBody) { 
     283        if( requestBody==null ) { 
     284            return null; 
     285        } 
    280286        try { 
    281287            return DocumentBuilderFactory.newInstance().newDocumentBuilder() 
Note: See TracChangeset for help on using the changeset viewer.