SOAP request and digest authentificationError

413 views
Skip to first unread message

CHEN YANQING

unread,
Oct 9, 2015, 6:34:47 AM10/9/15
to Gatling User Group
Hello,

I'm trying to inject a soap request to a http digest authentification URL, but I got errors and I do need help...thanks a lot!

I tried 2 senarios, none of them works. I tried the same soap request (without generation the header with wsse secutiry) in SOAPUI
Generally speaking, on the console I got the error :
> status.find.in(200,304,201,202,203,204,205,206,207,208,209), but actually found 500

In log files I got the error:
BEA-386201 - A web service security fault occurred[{http://www.w3.org/2003/05/soap-envelope}Receiver][Unknown exception, internal system processing error.] - soap:ReceiverUnknown exception, internal system processing error.

My 1st senario:
val request = StringBody("""<soap:Envelope>
<soap:Header/>
<soap:Body>
...
</soap:Body>
</soap:Envelope>""")

val httpConf = http
.baseURL("http://<myURL>:8080/")
.acceptHeader("""text/html,text/xml,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8""")
.acceptEncodingHeader("""gzip, deflate""")
.acceptLanguageHeader("""fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3""")
.userAgentHeader("""Apache-HttpClient/4.1.1 (java 1.5)""")

val scn = scenario("myTest")
.repeat(1) {
exec(
http("Test")
.post("<my_WS>")
.digestAuth("""<MyUsrName>""","""<MyPassword>""")
.body(request)
.header("Content-Type", """text/xml;charset=UTF-8""")
.header("Accept-Encoding", """gzip, deflate""")
.header("Connection", """keep-alive""")
)
}setUp(
scn.inject(atOnceUsers(1))
).protocols(httpConf)
}

=> I tried to add " val headers_0 = Map("""SOAPAction""" -> """""""")" But it doesn't work neither.

Then I tried my seconde senario (file senario2prt.txt attached):
=> Adding the soapHeader with userName, digestpassword ,nonce and date => still doesn't work...could anyone help???Thanks a lot!!


senario2prt.txt

Stéphane LANDELLE

unread,
Feb 3, 2016, 4:44:42 PM2/3/16
to gat...@googlegroups.com
Sorry, but that's the kind of question/issue that's difficult to answer/fix without getting a reproducer.
Could you please either share access to such application, or provide a sample app?

Stéphane Landelle
GatlingCorp CEO


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages