hastikeyvan
9 years agoNew Contributor
don't get attachment while sending mtom message with wcf in soapUI
I'm implementing a service which receives some string as request and should return back a pdf file in mtom attachment format. When I test it on my own machine with the client forms I can read the data from the content of message but when I checked the output in SOAPUI I found that the message is not sending in mtom format and is sending message in inline format . The raw view of the out put is as follows:
HTTP/1.1 200 OK Cache-Control: private Content-Length: 1252359 Content-Type: text/xml; charset=utf-8 Server: Microsoft-IIS/7.5 Set-Cookie: ASP.NET_SessionId=itqdxvdxyovixbj1iglyy5n0; path=/; HttpOnly X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Wed, 20 Jan 2016 13:13:58 GMT <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><GetMaintenanceProtocolPdfAttachmentResponse xmlns="http://xmlns.scania.com/maintenance/schema/technicalinformationmsgs/v1"><GetMaintenanceProtocolPdfAttachmentResult>JVBERi0xLjQNCiXi48/TDQo
How can I activate mtom to get the attachment in the output? ( I changed the messageEncoding to Mtom but doesn't work I think)