Page 1 of 1

SoapServer doubts

Posted: Thu Jul 07, 2011 5:01 am
by cluster28
Hi,

I don´t how to do that:

I receive a soapxml correctly and i want to get the values and insert into a DB.

Code: Select all

$soap_msg = new DOMDocument();
$soap_msg->load('php://input');
$server = new SoapServer('wsdl.wsdl');
$server->setClass("NeonServer");
$server->handle($soap_msg->saveXML()); <- Correct?
And in Class NeonServer:

Code: Select all

public function WsdlFunction($xml) <- Correct? XML don´t arrive to function
{
    //Get data into array from xml
    //Insert into table
    return array();
}