Soapui request in gatling

<soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
soapenv:Body
<ns1:outgoingTransaction soapenv:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/” xmlns:ns1=“urn:OutgoingTransaction”>

2342343
WAV
19
100
75112676
7511243
0
0
5311694090467013
2459709559338701
1234567887654325
USD
0
0
2015-06-04
114918
5
EUR
10
2
0
1
1
12345679
Term1298
Visa Europe~~London
7995
2
U
9
0
96412
2015-06-04
0
0

O2CA
U
2015-06-04
172622
0
U
0.0


</ns1:outgoingTransaction>
</soapenv:Body>
</soapenv:Envelope>

how to run this request in gatling scenario

Steps:

  1. Stick the response in a file and put it in request-bodies or bodies (depending on your gatling version)
  2. Include the following header in httpProtocol
val httpProtocol = http
  .baseURL("http://My-WS-Example/test")
  .contentTypeHeader("""application/xml;charset=UTF-8""")
  1. use the following syntax in your scenario
val scn = scenario("Test-WS")
  .exec(http("Test-WS")
  .post("/")
  .body(ELFileBody("demo-WS/soap.xml"))
  .check(xpath("//totalResults/text()").find.not("0")))

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

Also, you can parametrize the response (objects in file) with string interpolation (eg: “${myVar}”) and use feeder for different variables.

Hope that helps

Thanks Abhinav,

I copied the particular auth request in gatling/request-bodies…And run the Gatling scenario.
This is my outgoing request and response…But how to validate the response.

Please help me…

How to add header for soapui request in gatling multiscenario file using scala language???

Error:no soapaction header error

What is the solution for that??

http://www.w3schools.com/webservices/ws_soap_httpbinding.asp

.contentTypeHeader("""application/soap+xml; charset=utf-8""")