SoapUI endpoint error randomly

Emmanuel Gauthier picture Emmanuel Gauthier · Apr 11, 2013 · Viewed 10k times · Source

I don't understand something about SoapUI and his mockservice's behaviour. I'm using the client of SoapUI (testcase) and a Java EE application with JAX-RPC.

My problem is :

when I'm trying to call any webservice, from my Java Client, or the testcase of SoapUI, the mockservice return a well message at first call, and the error below at the second call, with the same call or not. But if I'm waiting, It works ...

So, I have enabled the option in SOAPui : "close HTTP connection after each SOAP request" and it works all the time...

So my question is :

"Is it a normal behaviour of the mockservice, and how to implement this with my java client ?"

Thank you all.

 <soapenv:Fault>
         <faultcode>Server</faultcode>
         <faultstring>Missing operation for soapAction [] and body element [null] with SOAP Version [SOAP 1.1]</faultstring>
      </soapenv:Fault>

Answer

Emmanuel Gauthier picture Emmanuel Gauthier · Apr 12, 2013

OK, I found a solution on the forum of SoapUI : http://www.soapui.org/forum/viewtopic.php?t=5648

It is when you have the settings flag "HTTP Settings/Logs wire content of all mock requests" set to true. => Uncheck the flag and it works fine!