SoapServer doubts

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cluster28
Forum Newbie
Posts: 10
Joined: Mon May 24, 2010 5:29 am

SoapServer doubts

Post 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();
}
Post Reply