After 6 hours of searching
|
|
there is the way to accept the soap files from the workflow rules with outbound message for php5 and is soap web service.
<?php
function bar($param)
{
/* Connect to the db */
$link = mysql_connect('localhost', 'webservice', '18067311')
or die('Could not connect : ' . mysql_error($link));
mysql_select_db('webservice', $link)
or die('Could not select database');
// Extract param from the xml file
while (list($key, $val) = each($param)) {
$Soap_Result .= "$key => $val\n";
}
$query = "INSERT INTO `webservice`.`log` (`Id` ,`Soap_Original` ,`Soap_Result`) VALUES (NULL , '".$Soap_Original."', '".$Soap_Result."');";
$result = mysql_query($query, $link) or die('Query failed : ' . mysql_error($link));
/* Mysql connection close */
mysql_close($link);
}
function notifications($param)
{
// Update the db
$result = bar($param);
// Return the result to salesforce Workflow
return array('Ack'=>true);
}
/* Create the Web service - SOAP server */
$server = new SoapServer("workflow.wsdl", array('encoding'=>'UTF-8'));
# Add the action call
$server->addFunction('notifications');
$server->handle();
?>
|