laki88
10 years agoVisitor
File not uploading properly when use MTOM in SoapUI
I am using SoapUI 5.1.3 version. I am sending below request to the we service.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:upl="http://upload.application.carbon.wso2.org" xmlns:xsd="http://upload.application.carbon.wso2.org/xsd"> <soapenv:Header/> <soapenv:Body> <upl:uploadApp> <!--Zero or more repetitions:--> <upl:fileItems> <!--Optional:--> <xsd:dataHandler>UEsDBBLjAuMC52MjAxMTA1MjcxNTIxMDAvYXJ0aWZhY3QueG1sUEsFBgAAAAAJAAkAMAMAAC4IAAAAAA==</xsd:dataHandler> <!--Optional:--> <xsd:fileName>ESBproject1-1.0.0.car</xsd:fileName> <!--Optional:--> <xsd:fileType>jar</xsd:fileType> </upl:fileItems> </upl:uploadApp> </soapenv:Body> </soapenv:Envelope>
at the web service end, when I check the dataHandler value seems like it is truncated at the end of the string. I inserted file using Insert file as Base64 context menu option. I changed Enable MTOM property to true. what could be the reason for missing a part of data that sends to web service?