Re: PHP4 SOAP Request problem logging in to salesforce.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 25 Oct 2005 13:08:27 -0400, Colin Goldberg wrote:

> Can you help me discover why parameters username and password do not
> appear in the request?
In your client you need to do this:

require_once("../SalesforceClient.php");

$client = new SalesforceClient();

$header =& new SOAP_Header(
        '{urn:partner.soap.sforce.com}login',
        'Struct',
        array('username'=>'foo','password'=>'bar'),
        1);

$client->addHeader($header);

....
$resquest = array(....);

$response =& $client->call('theFunction', $request, $namespace);
if (PEAR::isError($response))
    echo "Fault: " . $response->message. "\n";
else
    echo "Response from server:\n $response\n\n";
	
-- 
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux