Re: 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 21:29:24 -0400, Colin Goldberg wrote:

> produced error "Did not understand "MustUnderstand" header(s)" when set to
> 1 - so it was changed to 0.
>
Why use a login method with MustUnderstand=0?
 
> 
> The login function used is as follows:
>  function &login($username, $password) {
>         $login =& new
> SOAP_Value('{urn:partner.soap.sforce.com}login',false,$v=array("username"=>$username,
> "password"=>$password));
>         $header =& new SOAP_Header(
>             '{urn:partner.soap.sforce.com}login', 'Struct',
>             array("username"=>$username, "password"=>$password), 0);
>         $this->addHeader($header);
>         $request = array('login'=>$login);
>         return $this->call('login', $request,
>             array('namespace'=>'urn:partner.soap.sforce.com',
>                             'soapaction'=>'',
>                             'style'=>'document',
>                             'use'=>'literal' ));
> }
> }
> Why are the username and password not being inserted into the body?
> 
Why do you send login information in both header and body?

To give you any further help I would need to see the entire WSDL. An
online link would be preferred.

-- 
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