You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When providing \BeSimple\SoapServer\SoapServer with option 'attachment_type' => \BeSimple\SoapCommon\Helper::ATTACHMENTS_TYPE_MTOM
two \BeSimple\SoapCommon\SoapResponseFilter filters are registered (MimeFilter and XmlMimeFilter)
When response has attachments MimeFilter create multipart message and overwrites \BeSimple\SoapCommon\SoapResponse$content property with it.
Next filter (XmlMimeFilter) tries to create\DOMDocument from \BeSimple\SoapCommon\SoapResponse$content (contains multipart message string, not plain XML), as expected, fails with PHP warning PHP Warning: DOMDocument::loadXML(): Start tag expected, '<' not found in Entity, line: 2 in /var/www/vendor/besimple/soap-common/BeSimple/SoapCommon/SoapMessage.php on line 197
To my understanding last filter executed on response should be MimeFilter.
Activity
wollanup commentedon Apr 18, 2016
Exactly same issue with same case there.
fix send MTOM attachment to client
pkendre commentedon Aug 10, 2016
Hi, I want to create a soap webservice using Lumen. Please help me with sample code.
Thanks in advance,
Paresh
fix send MTOM attachment to client