Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTOM response #7

Open
minimihi opened this issue Jun 5, 2015 · 2 comments
Open

MTOM response #7

minimihi opened this issue Jun 5, 2015 · 2 comments

Comments

@minimihi
Copy link

minimihi commented Jun 5, 2015

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.

@wollanup
Copy link

Exactly same issue with same case there.

wollanup added a commit to wollanup/BeSimpleSoapServer that referenced this issue Apr 18, 2016
@pkendre
Copy link

pkendre commented Aug 10, 2016

Hi, I want to create a soap webservice using Lumen. Please help me with sample code.

Thanks in advance,
Paresh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants