Can Gatling log xml stream response when running a simulation for calling a webservice?


I have a Gatling simulation (I use Gatling 2.0.0-M3) for calling a webservice and here is an extract :

val httpProtocol = http .baseURL(“”) .acceptHeader(“image/png,image/;q=0.8,/*;q=0.5”) .acceptEncodingHeader(“gzip, deflate”) .acceptLanguageHeader(“en-us,en;q=0.5”) .userAgentHeader(“Jakarta Commons-HttpClient/3.1”) .extraInfoExtractor((v_requeststatus:Status, v_session:Session, v_request:Request, v_response:Response) => {ListString})

val headers_1 = Map(
“Accept-Encoding” → “”“gzip,deflate”"",
“Content-Type” → “”“application/soap+xml;charset=UTF-8"”",
“SOAPAction” → “”""""

val scn = scenario(“Call WebService”)
.during(15 minutes){
http(“Appel WebService”)

And I have my logback .xml with DEBUG mode

But when I run gatling simulation I have the following data and especially the response data in the log file :

16:24:41.541 [DEBUG] c.n.h.c.p.n.NettyAsyncHttpProvider -

Request DefaultHttpRequest(chunked: false)
POST /lps/ HTTP/1.1
Accept: image/png,image/;q=0.8,/*;q=0.5
Content-Type: application/soap+xml;charset=UTF-8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip
Connection: keep-alive
User-Agent: Jakarta Commons-HttpClient/3.1

Content-Length: 5186

Response DefaultHttpResponse(chunked: false)
HTTP/1.1 200 OK
Content-Length: 619
Content-Type: application/soap+xml; charset=utf-8
X-Powered-By: Servlet/2.5 JSP/2.1

And I have not the xml stream response like the case when I make a test with soapui

<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:soap=“”><S:Body xmlns:S=“”>OK</S:Body></soap:Envelope>

Have you any idea for the problem ?


logback.xml (838 Bytes)


Sorry for the delay, this mail ended up in my spams…

Difficult to say.
You could get the http traffic with a proxy such as Charles:, so you can compare what you get from SoapUi and from Gatling.

Syntax for setting a proxy looked like this in 2M3:

Hi Stéphane,

Thanks a lot for your answer.