Obama '08

               
   

Go Back   Mike Simonds > Salesforce > Salesforce Coding Discussions

This is a discussion on Soap Server with Workflow rules within the Salesforce Coding Discussions forums, part of the Salesforce category; Here is the challenge. I'm trying to return a notification message to

Reply
 
LinkBack Thread Tools Rate Thread
  #1  
Old 12-15-2007, 07:20 AM
Patrick Aubé
Guest
 
Posts: n/a
Soap Server with Workflow rules

Here is the challenge. I'm trying to return a notification message to the workflow rules systme in salesforce.

But, I got this message : SOAP response was a nack

My code for php5 - Soap Server is :

// première étape : désactiver le cache lors de la phase de test
ini_set("soap.wsdl_cache_enabled", "0");

// on indique au serveur à quel fichier de description il est lié
$serveurSOAP = new SoapServer('workflow.wsdl');

// ajouter la fonction getHello au serveur
$serveurSOAP->addFunction('notifications');

// lancer le serveur
if ($_SERVER['REQUEST_METHOD'] == 'POST')

{
$serveurSOAP->handle();
}
else
{
echo 'désolé, je ne comprends pas les requêtes GET, veuillez seulement utiliser POST';
}

function notifications()
{
return 0;
}

Who know how to manipulate data coming from outbound message coming from salesforce ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2  
Old 12-18-2007, 09:18 AM
Administrator
 
Join Date: May 2007
Posts: 246
Send a message via AIM to mike Send a message via MSN to mike Send a message via Yahoo to mike Send a message via Skype™ to mike

Patrick

thanks for posting your problem but I do not connect to Salesforce this way and I am not familiar with the WSDL file that you are referring to in your post. Have you checked the API documentation to see if this is even a can do? Maybe it would be better to post this over at the Salesforce developers forum

Sorry if this is not the response you were looking for

~Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 12-18-2007, 03:29 PM
Unregistered
Guest
 
Posts: n/a
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();


?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 12-18-2007, 03:31 PM
Unregistered
Guest
 
Posts: n/a
The WSDL files come from your workflow interface in salesforce

You'll find you file inside the details of an outbound action message
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump



Powered by vBulletin


SEO by vBSEO 3.2.0 RC8 ©2008, Crawlability, Inc.

1 2 3 4 5