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

Hi.

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(“https://55.37.106.18:14600/lps”) .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){
exec(
http(“Appel WebService”)
.post("""/""")
.headers(headers_1)
.body(StringBody(xmlbodyLine))
.check(status.is(200))
)
}

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
Host: 55.37.106.18:14600
SOAPAction:
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=“http://www.w3.org/2003/05/soap-envelope”><S:Body xmlns:S=“http://www.w3.org/2003/05/soap-envelope”>OK</S:Body></soap:Envelope>

Have you any idea for the problem ?

Thanks

logback.xml (838 Bytes)

Hi,

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: http://www.charlesproxy.com, so you can compare what you get from SoapUi and from Gatling.

Syntax for setting a proxy looked like this in 2M3: https://github.com/excilys/gatling/blob/2.0.0-M3X/gatling-app/src/test/scala/io/gatling/app/test/CompileTest.scala#L38

Hi Stéphane,

Thanks a lot for your answer.