need some help with Zend_Soap_Server
. I am building a webservice to proccess certain fixed xml documents. The issue is that some of the nodes have data set in attributes:
<Car_Interest xmlns="http://schemas.multi-mit.com/DataFormat">
<Model_Of_Interest Code="SOME CAR" />
<Estimated_Purchase_Date>20190509</Estimated_Purchase_Date>
</Car_Interest>
When I pass the soap request in to server my handler class receives a stdObject
with all nodes and values, but does not contain attributes. Here is my controller:
indexAction(){
$server = new Zend_Soap_Server(null,
array('uri' => 'http://some.url/index/soap'));
// set SOAP service class
$server->setClass('Module_Model_SoapHandler');
// handle request
$server->handle($data);
}
And the handler so far:
class Testdrive_Model_SoapHandler {
public function saveSubmission($data)
{
return $data;
}
...
The $data
variable is passed in correctly (stdObject), but it does not include attribute values (arrtibute Code
of node Model_Of_Interest
. Am I missing something?