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
Mark.ax54Mark.ax54 

set_password issue with version 2.0

binding.set_password(userName, password) throws the following exception:

"unknown method name set_password"

any thoughts?

Thanks.

DevAngelDevAngel

Hi Mark,

What are you using? XML-RPC SOAP?

Mark.ax54Mark.ax54
Yep.  Sorry I didn't state that earlier.
DevAngelDevAngel

Hi Mark,

Sorry for answering with more questions, but here I go.

What is the services endpoint that you are making the request to?  It should not be https://www.salesforce.com, if it is you will get that messsage.

An xml-rpc set password request should look like this:

<methodCall>
   <methodName>
      sfdc.set_password
   </methodName>
   <params>
      <param>
         <value>
            <struct>
               <member>
                  <name>
                     userID
                  </name>
                  <value>
                     <string>
                        098098asdf
                     </string>
                  </value>
               </member>
               <member>
                  <name>
                     password
                  </name>
                  <value>
                     <string>
                        asdlkjf
                     </string>
                  </value>
               </member>
               <member>
                  <name>
                     version
                  </name>
                  <value>
                     <string>
                        2.0
                     </string>
                  </value>
               </member>
            </struct>
         </value>
      </param>
   </params>
</methodCall>

Mark.ax54Mark.ax54

Hi Mark,

The xml is hard to get to because we're using axis to generate the doc...  but we are using https://www.salesforce.com/servlet/servlet.SoapApi

Mark.ax54Mark.ax54
Sorry Dave, I know you not Mark :-)
DevAngelDevAngel

Hi Mark,

You need to change the endpoint after you login to the one returned by the login call.

Mark.ax54Mark.ax54

Thanks Dave, you sure know how to make a guy feel stupid... but I can live with that :-) 

I'm glad to have this one resolved.

Thanks again.