我是Gatling和Scala的新手。如何使用Gatling 2.2.0调用/测试Java SOAP Web服务?我已经搜索谷歌和加特林的文件,但找不到任何链接对于如何使用Gatling调用SOAP Web服务2.2.0
代码 VAL httpProtocol = HTTP .baseURL( “http://PUNITP83267L:8081/WebServiceProject/services/MyService”) VAL headers_0 =地图( “接受编码” - >“压缩,“deflate”, “Content-Type” - >“text/xml; charset = UTF-8”, “SOAPAction” - >“”, “Content-Length” - >“275”, “Host” >“PUNITP83267L:8081”, “Connection” - >“alive”, “accept-language” - >“en-US,en; q = 0.8”, “user-agent” - >“Mozilla/5.0 Windows NT 6.1; Win64; x64)AppleWebKit/537.36(KHTML,li柯壁虎)的Chrome/Safari浏览器49.0.2623.112/537.36" )
val scn = scenario("SOAPRecordedSimulation")
.exec(http("simple Soap Request")
.post("<?xml version=\"1.0\" encoding=\"UTF-8\"?><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><greetMeResponse xmlns=\"http://ws.star.fs.infosys.com\"><greetMeReturn>Hello uMESH</greetMeReturn></greetMeResponse></soapenv:Body></soapenv:Envelope>\"\r\n")
.headers(headers_0))
setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol)
}
是否有任何SOAP服务调用记录器?使用SOAP UI? – UmeshPathak