Logging complete Request

Hi Group,

I have a request that is succeeding when I send it to a service using SOAP UI tool. Next I intercepted this request using Gating.io recorder. Here is the
simulation:

import scala.concurrent.duration._

import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._

class RecordedSimulation extends Simulation {

val httpProtocol = http
.baseURL(“http://localhost:9632”)
.inferHtmlResources()
.acceptEncodingHeader(“gzip,deflate”)
.contentTypeHeader(“application/soap+xml;charset=UTF-8”)
.userAgentHeader(“Apache-HttpClient/4.1.1 (java 1.5)”)

val uri1 = “localhost”

val scn = scenario(“RecordedSimulation”)
.exec(http(“request_0”)
.post("/storeboard-link/services/1.0/storeboard")
.body(RawFileBody(“RecordedSimulation_0000_request.txt”))
.basicAuth(“user”, “password”))

setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol)
}

Here is the body:

<soap:Envelope xmlns:req=“http://xmlns.int.a.com/notifications/request” xmlns:ser=“http://a.com/” xmlns:soap=“http://www.w3.org/2003/05/soap-envelope”>
soap:Header/
soap:Body
ser:setS

req:payload
<Actual payload removed.
</req:payload>

</ser:set>
</soap:Body>
</soap:Envelope>

When I run the simulation I am getting an HTTP 500 - Internal Server error. It’s failing for “A security error was encountered when verifying the message”.

HTTP request summary:

POST http://localhost:9632/link/services/1.0/storeboard
headers=
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Content-Length: 3281
Host: localhost:9632
Authorization: Basic <User/Password ommitted>
Accept: /
file=C:\NDEV\gatling-charts-highcharts-bundle-2.2.0\user-files\bodies\RecordedSimulation_0000_request.txt
realm=Realm{principal=‘user’, scheme=BASIC, realmName=‘null’, nonce=‘null’, algorithm=‘null’, response=‘null’, qop='null
', nc=‘00000001’, cnonce=‘null’, uri=‘null’, methodName=‘GET’, useAbsoluteURI=‘false’, omitQuery=‘false’}

Is there any way to capture the entire request into a log file for troubleshooting purposes?

Thanks,

Robert

Version is 2.2.0.