Are you using Sandbox ? (test.salesforce.com) that's the only instance that has winter '07 deployed to it so far. If so, are you sending up your own organizations Id in the header ? finally, you should double check the capitalization of the element names, and that the xml namespace on the element is correct.
I try to invoke it using my Dev credentials and I keep getting the same error : <sf:exceptionMessage>Invalid username or password or locked out.</sf:exceptionMessage>
Also I am not sure what value to be used for the Organisation id . Currently XML SPy generated this request message and it has some aaaaaaaa... What value do I pass as my Organisation id ? I guess all it is interested is in 18 chars ..I guess.
Can you clarify what you're trying to achieve? LoginScopeHeader is used purely for authenticating self service users. You should not be passing this header at all to do a login for a regular user account. Please see the docs/quickstarts to get up and running.
Message Edited by SimonF on 12-15-2006 04:36 PM
Does anyone have perl code snippet for this?
INVALID_LOGIN: Invalid username or password or locked out.
Any idea why?
Thanks for your help.
I try to invoke it using my Dev credentials and I keep getting the same error : <sf:exceptionMessage>Invalid username or password or locked out.</sf:exceptionMessage>
The URL that I am using is :
https://www.salesforce.com/services/Soap/c/9.0
Also I am not sure what value to be used for the Organisation id . Currently XML SPy generated this request message and it has some aaaaaaaa... What value do I pass as my Organisation id ? I guess all it is interested is in 18 chars ..I guess.
Kindly advice . My XML request is as follows:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header>
<m:LoginScopeHeader xmlns:m="urn:enterprise.soap.sforce.com">
<m:organizationId>aaaaaaaaaaaaaaaaaa</m:organizationId>
</m:LoginScopeHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<m:login xmlns:m="urn:enterprise.soap.sforce.com">
<m:username>milan.doshi@demandbase.com</m:username>
<m:password>milan</m:password>
</m:login>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Thanks for any help!
Regards,
Milan
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<m:login xmlns:m="urn:enterprise.soap.sforce.com">
<m:username>milan.doshi@mycompany.com</m:username>
<m:password>mypassword</m:password>
</m:login>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Worked!Thanks Simon!
Regards,
Milan