I created a Magento 2.0 module and it calls an external web service with the command \Zend_XmlRpc_Client
.
/* REST */
$client = new \Zend_XmlRpc_Client($this->_scopeConfig->getValue('akria_store/store_view/domain_configurateur').'/api/xmlrpc/');
$session = $client->call('login', array($this->_scopeConfig->getValue('akria_store/soap/user'), $this->_scopeConfig->getValue('akria_store/soap/password')));
$result = $client->call('call', array ($session, 'configurateur_api.setprojectstate' ,array(array('order_id'=>$order_id,'state' => \Akria\Configurateur\Model\Project::PENDING,'project' => $item->getData('configurateur_project_id')))));
But this function no longer exists.
How can I now call an external web service without using curl? replacement function of \Zend_XmlRpc_Client
.
thank you in advance.