I'm new to Mtom topic. I try to build an Mtom message with attachment in response while my request is string. I tested it with SOAPUI but the resnpose is not in Mtom format and is like inline message:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetMaintenanceProtocolPdfAttachmentResponse xmlns="http://schemafileaddress">
<GetMaintenanceProtocolPdfAttachmentResult>
</GetMaintenanceProtocolPdfAttachmentResponse>
</s:Body>
<a:Titles>MAI_PRINT_164341883_1.pdf</a:Titles>
<a:file>JVBERi0xLjQNCiXi48/TDQoxIDAg</a:file>
</s:Envelope>
The raw view of SOAPUI response is as follows:
TTP/1.1 200 OK
Cache-Control: private
Content-Length: 1265591
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
Set-Cookie: ASP.NET_SessionId=435hj33ut2nusjpt1rjtrg5c; path=/; HttpOnly
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 19 Jan 2016 10:26:06 GMT
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetMaintenanceProtocolPdfAttachmentResponse xmlns="http://schemaAddres">
<GetMaintenanceProtocolPdfAttachmentResult xmlns:a="http://schemaAddres" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:Titles>MAI_PRINT_112605460_1.pdf</a:Titles>
<a:file>JVBERi0xLjQNCiXi48</a:file>
I tried this but couldn't get the desired result. I would be grateful if anyone could help me to fix the problem.