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)