Re: [SOAP] Re: PHP4 SOAP Request problem logging in to salesforce.com
| From: | Michael Rasmussen | Date: | Wed, 26 Oct 2005 20:10:42 +0000 |
| Subject: | Re: [SOAP] Re: PHP4 SOAP Request problem logging in to salesforce.com | ||
| References: | 1 2 3 4 5 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2035@lists.php.net to get a copy of this message | ||
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