Refactored call to getSoapResponse and parseSoapResponse