0

We use SoapUI for testing of Web Services. It acts as a mock service. Our application sends requests with MTOM attachment. If this attachment is smaller than 6882 B, everything is all right. If it is bigger only a part of it is received by SoapUI - in attachment tab (of Message Viewer in SoapUI) is size 6882 B and when it is exported to the file, broken file is created.

Is there some file size limit or configuration for requests which can be received by SoapUI? Has anybody an experience in sending of XOP (MTOM) attachment which is bigger than 6882 B to SoapUI?

Fenix
  • 2,271
  • 1
  • 16
  • 24
  • Do you mean, you trying to save the attachment which is part of response? what is the file type (extension)? – Rao May 31 '16 at 14:46
  • The attachment is a part of request. Its file type is ZIP (zipped text file). – Fenix May 31 '16 at 14:56
  • If it is part of request, soapui will be able to send it successfully. I believe, there isn't any limit on the file size from soapui side. Hope there is no limit defined on your application size. Also you mentioned that it is borken when exported - what do you mean? – Rao May 31 '16 at 15:02
  • It is a request from our application which is send to SoapUI (mock service). Its attachment is exported through "export" button in attachment tab in SoapUI. – Fenix May 31 '16 at 15:12
  • Are you saving the attachment to file in mock request? Is that what your problem is ? – Rao May 31 '16 at 15:21
  • Our application send (standard) request which contains MTOM attachment. This request is received by mock service in SoapUI. I want to check the attachment of the request (in SoapUI). So, I open this received request via the "Message Log" tab (in SoapUI). There is the "Attachment" tab (for Request Message). The displayed size in this tab is 6882 B for each attachment (if it is not smaller). The same size has the file which I get when I export it from SoapUI. – Fenix May 31 '16 at 15:32
  • I tried to send a request through HTTP (instead of HTTPS). I disabled SSL for transport layer on both our app and SoapUI. Then the received attachment was all right (bigger than 6882 B). – Fenix May 31 '16 at 16:02
  • Are you ok to have a script which can save the attachment automatically? If so, can show the raw request which you send? – Rao May 31 '16 at 16:04
  • Do you aware of these configuration in your application 69127739 69127739 0 and are you sure apart from soapui anywhere else you were able to receive entire attachment that your application sends – Suman g May 31 '16 at 19:27
  • I am using mock and i have sent an 1163252 B pdf document and i am able to receive and able to download from soapui mock request attachments tab with out any breakage – Suman g May 31 '16 at 19:51
  • 1
    Please check if [this](https://community.smartbear.com/t5/SoapUI-Open-Source/Saving-attachments-automatically/m-p/880/highlight/true#M229) helps to save attachments automatically. Note that `messageExchange.response` is replaced with the relevant code in mock script. – Rao Jun 01 '16 at 02:12
  • I tried to create script in SoapUI to save attachments automatically. The saved file has 6882 B again. Also I implemented my own mock service and received file was all right. I found that [the same problem](https://community.smartbear.com/t5/SoapUI-Open-Source/Multipart-requests-to-a-mock-service-under-SSL-appear-to-be/td-p/114786) had somebody else and it was connected with SSL too. Unfortunately, there is not any solution yet. – Fenix Jun 01 '16 at 12:46

0 Answers0