Skip to content

SOAP doesn't not work in production mode #3944

@vesan-83

Description

@vesan-83

Steps to reproduce

  1. Install Magento from 2.0 branch (2.0.3 version)
  2. bin/magento deploy:mode:set production
  3. bin/magento setup:di:compile
  4. Send SOAP request

Expected result

See expected-result.png in the attachment

Actual result

See actual-result.png in the attachment

Details

See line
$soapServer = $this->_objectManager->create('SoapServer', ['wsdl' => $url, 'options' => $options]);
It gives fatal error because object manager config Magento\Framework\ObjectManager\Config\Compiled pass invalid arguments to SoapServer class.
It works normally if instantiate SoapServer without object manager e.g.
$soapServer = new \SoapServer($url, $options);
Also following will work (pass arguments without keys):
$soapServer = $this->_objectManager->create('SoapServer', [$url, $options]);

attachments.tar.gz

Metadata

Metadata

Assignees

Labels

Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for development

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions