0

I am trying to receive a SOAP packet using PHP's SoapServer object. I have success with the basic setup of having the request handled by SoapServer, as such:

$server = new SoapServer(null, array('uri' => 'http://'.$_SERVER['SERVER_NAME'].'/lead'));
$server->addFunction('lead');
$server->handle();

which calls the appropriate function and passes in an stdObject representing the XML passed in the HTTP request. My problem is that there is data being passed as an XML attribute which is not conveyed in the object generated by SoapServer:

<Lead LeadID="6">

How can I retrieve the value of the LeadID attribute?

Umbrella
  • 4,733
  • 2
  • 22
  • 31

0 Answers0