# soap request

**URL:** <https://community.gatling.io/t/soap-request/675>\
**Category:** Gatling (Open-Source)\
**Created:** [November 14, 2013, 2:32pm UTC](https://community.gatling.io/t/soap-request/675 "2013-11-14T14:32:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joachim\_Rodrigues](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Joachim\_Rodrigues](https://community.gatling.io/u/Joachim_Rodrigues)\
**Post date:** [November 14, 2013, 2:32pm UTC](https://community.gatling.io/t/soap-request/675/1 "2013-11-14T14:32:14Z")

</div>

Hi  
I’m trying to run a soap request with gatling but it doesn’t work.

Indeed when loaded the project into soapUi it correctky works with soapUI :

here the project :

\<soap:Envelope xmlns:soap=“[http://www.w3.org/2003/05/soap-envelope](http://www.w3.org/2003/05/soap-envelope)” xmlns:ws=“[https://sddqsdqs](https://sddqsdqs)”\>  
soap:Header/  
soap:Body  
ws:azertyuiop\_001

ws:001Request  
ws:AAA

ws:BBB20131105\</ws:DAT\>  
\</ws:AAA\>

\</ws:Request\>  
\</ws:azertyuiop\_001\>  
\</soap:Body\>  
\</soap:Envelope\>

And when trying to intercep the request using the recorder this one doesn’t see anything.

thanks

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [November 14, 2013, 2:42pm UTC](https://community.gatling.io/t/soap-request/675/2 "2013-11-14T14:42:42Z")

</div>

Hi,

Could you share your simulation, please?  
Regarding the recorder, did you properly set it up as a proxy in SoapUi?

---

<div class="post-metadata">

**Author:** ![Joachim\_Rodrigues](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Joachim\_Rodrigues](https://community.gatling.io/u/Joachim_Rodrigues)\
**Post date:** [November 14, 2013, 3:19pm UTC](https://community.gatling.io/t/soap-request/675/3 "2013-11-14T15:19:01Z")

</div>

Yes in soapUi, the proxy is correctly set up  
and in the gatling recorder log i’m getting this error :

nov. 14, 2013 4:13:20 PM org.jboss.netty.channel.SimpleChannelHandler  
WARNING: EXCEPTION, please implement com.excilys.ebi.gatling.recorder.http.handler.ServerHttpResponseHandler.exceptionCaught() for proper handling.  
java.lang.IllegalArgumentException: invalid version format:   
at org.jboss.netty.handler.codec.http.HttpVersion.(HttpVersion.java:102)  
at org.jboss.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62)  
at org.jboss.netty.handler.codec.http.HttpResponseDecoder.createMessage(HttpResponseDecoder.java:104)  
at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:189)  
at org.jboss.netty.handler.codec.http.HttpClientCodec$Decoder.decode(HttpClientCodec.java:143)  
at org.jboss.netty.handler.codec.http.HttpClientCodec$Decoder.decode(HttpClientCodec.java:127)  
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500)  
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.cleanup(ReplayingDecoder.java:554)  
at org.jboss.netty.handler.codec.frame.FrameDecoder.channelDisconnected(FrameDecoder.java:365)  
at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:92)  
at org.jboss.netty.channel.Channels.fireChannelDisconnected(Channels.java:396)  
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:361)  
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:93)  
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)  
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)  
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)  
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
at java.lang.Thread.run(Thread.java:722)

---

<div class="post-metadata">

**Author:** ![Stefan\_Magnus\_Landro](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Stefan\_Magnus\_Landro](https://community.gatling.io/u/Stefan_Magnus_Landro)\
**Post date:** [November 14, 2013, 8:34pm UTC](https://community.gatling.io/t/soap-request/675/4 "2013-11-14T20:34:57Z")

</div>

What does the accept and content-type headers look like?

---

<div class="post-metadata">

**Author:** ![Joachim\_Rodrigues](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Joachim\_Rodrigues](https://community.gatling.io/u/Joachim_Rodrigues)\
**Post date:** [November 14, 2013, 9:24pm UTC](https://community.gatling.io/t/soap-request/675/5 "2013-11-14T21:24:17Z")

</div>

Accept-Encoding: gzip,deflate  
Content-Type: application/soap+xml;charset=UTF-8;action=“[https://sqsdqsdqsd](https://sqsdqsdqsd)”

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [November 15, 2013, 8:59am UTC](https://community.gatling.io/t/soap-request/675/6 "2013-11-15T08:59:42Z")

</div>

Hi,

I’ve tested current Gatling 2 snapshot against this free SOAP webservice: [http://www.webservicex.net/CurrencyConvertor.asmx?WSDL](http://www.webservicex.net/CurrencyConvertor.asmx?WSDL)

Both recording from SoapUi 4.6.1 and replaying from Gatling work fine.

Do you use special WS features such as WS-Security?

Could you provide more information about your service and what you’re doing exactly?  
Could you give Gatling 2 snapshot a try, please? [https://github.com/excilys/gatling/wiki/Continuous-Integration](https://github.com/excilys/gatling/wiki/Continuous-Integration)

Cheers,

Stéphane

---

<div class="post-metadata">

**Author:** ![Daan\_Horn](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Daan\_Horn](https://community.gatling.io/u/Daan_Horn)\
**Post date:** [December 16, 2013, 2:53pm UTC](https://community.gatling.io/t/soap-request/675/7 "2013-12-16T14:53:47Z")

</div>

Hey,

I had the same problem trying to record the SoapUI tests with the recorder using release 2.0.0-M3a. Using the current snapshot version, as Stephane suggested, solved my problem!

My raw request looks like this:

POST [http://msl-fac-vip.nl.rsg/MSL/3/FactuurService](http://msl-fac-vip.nl.rsg/MSL/3/FactuurService) HTTP/1.1  
Accept-Encoding: gzip,deflate  
Content-Type: text/xml;charset=UTF-8  
SOAPAction: “leesFactuur”  
Content-Length: 376  
Host: msl-fac-vip.nl.rsg  
Proxy-Connection: Keep-Alive  
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)  
\<soapenv:Envelope xmlns:soapenv=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)” xmlns:fac=“[http://xml.ibridge.nl/nl/rsg/msl/3/factuurservice](http://xml.ibridge.nl/nl/rsg/msl/3/factuurservice)”\>  
soapenv:Header/  
soapenv:Body  
fac:leesFactuurRequest  
fac:factuurNummer21202409\</fac:factuurNummer\>  
fac:afnemerKIM\</fac:afnemer\>  
\</fac:leesFactuurRequest\>  
\</soapenv:Body\>  
\</soapenv:Envelope\>

Cheers!

---

<div class="post-metadata">

**Author:** ![Stefan\_Magnus\_Landro](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Stefan\_Magnus\_Landro](https://community.gatling.io/u/Stefan_Magnus_Landro)\
**Post date:** [December 17, 2013, 11:00pm UTC](https://community.gatling.io/t/soap-request/675/8 "2013-12-17T23:00:21Z")

</div>

If I were you, I’d stop using the recorder, and just use template files that support expressions instead. Just copy paste request bodies from let’s say soap ui into the data folder and POST them.
