You need to sign in to do that
Don't have an account?
SoapUi error by testing the Login WebService
Hey there,
we developed an mobile application that we want to deliver in AppExchange.
For that we have to develop the interface to connect the app with Salesforce CRM.
I logged in at developerforce.com and found the WSDL documents.
I tried the login-Webservice in SoapUI, but it doesn't work, although I took out the LoginScopeHeader and tried it with my developeraccount-username and my salesforce-test-account-username (because I wasn't sure which one I should take)...
Does it maybe not work because my salesforce-account is a test-version?
I always get the error "error getting respone; java.net.ConnectException:Connection timed out: connect" :(
Please help!
Thank you very much for your help! :)
I didn't know that I also need the securityToken. That helped a lot :)
Now it worked, but with the Endpoint: https://login.salesforce.com/services/Soap/c/26.0
and with my developerforce-username (not my salesforce-test-account).
and without the "LoginScopeHeader"
Thanks a lot for it!
All Answers
What's the end point you are mentioning for login?
for your test env. it should be something like this:
https://test.salesforce.com/services/Soap/c/24.0/0DFQ000000001hB
Request body:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
<soapenv:Header>
<urn:LoginScopeHeader>
<urn:organizationId></urn:organizationId>
<!--Optional:-->
<urn:portalId></urn:portalId>
</urn:LoginScopeHeader>
</soapenv:Header>
<soapenv:Body>
<urn:login>
<urn:username>username</urn:username>
<urn:password>pwd+security token</urn:password>
</urn:login>
</soapenv:Body>
</soapenv:Envelope>
Please mark it solved if this response helps.
Thanks,
K
Thank you very much for your help! :)
I didn't know that I also need the securityToken. That helped a lot :)
Now it worked, but with the Endpoint: https://login.salesforce.com/services/Soap/c/26.0
and with my developerforce-username (not my salesforce-test-account).
and without the "LoginScopeHeader"
Thanks a lot for it!