This seems to be an older issue/question that was never resolved.
Working soap UI 5.4 mock service, works fine in Soap UI (hit the play button) However once deployed to Tomcat, handles the first request fine, truncates the 2nd and any others following. Restarting the service allows the first to work again only. With logging statements in the soapui OnRequest script section, I confirmed mockRequest.requestContent is getting cut off. I've adjusted tomcat server.xml HTTP connector sizing settings, using -1 values to remove limits. :
Wow, a reply, thank you! Script Dispatcher, I'd have to search on that. Below is my script from the OnRequestScript tab. It accepts a mock request, reads it, parses out a message ID and uses that to simply write a file to disk using messageId in the file name. See anything? I uses log.info statements to see the the full request on attempt 1, but truncation on attempt 2, time and again.
//Directory where the SOAP request XML is stored in the file system with messageId as the file name.
//Parse the SOAP request XML file to get the messageID. def xmlRequest = new XmlSlurper().parseText(requestObject); def messageId = xmlRequest.Body.DocumentExchangeInput.exchangeEnvelope.@messageID; log.info ("messageId : $messageId");
def fileName = new File("$soapRequestFilePath"+"$messageId"+".xml"); fileName.write(requestObject);