function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dj_saaspointdj_saaspoint 

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