You need to sign in to do that
Don't have an account?
Soap 4r for API WSDL v23
Hi,
We are using Ruby 1.9.2 and Rails 3.0.5 to create a Heroku app that connects with Salesforce. While we prefer to use Omniauth and databasedotcom to do most of the work, we couldnt reset user password using them. Now we are trying with Soap 4r - using WSDL created from API 23. We are able to reset user pasword but we are not able to get the automatic emailing. We have tried instantiating EmailHeader. What are we missing?
Part of the code looks like this
.
.
.
d = Soap.new
l = d.login(:username => user, :password => passwd)
d.endpoint_url = l.result.serverUrl #
h.sessionid = l.result.sessionId
d.headerhandler << h
em = EmailHeader.new true, false, true
newpassword = d.resetPassword(userId:user).result.password
.
.
Thanks for your help.
Regards
Grace