cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
161
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Tom Dyer on 10-01-2011 10:24:33 AM
Hi.
 
Trying to use the XML API to reset a users password to a set string. I don't want to just set it to require updating next time. I simply want to programatically set it to a new password.
 

            Dim strXML As String
            strXML = "<?xml version='1.0' encoding='UTF-8'?>" & _
                    "<serv:message xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:serv='http://www.webex.com/schemas/2002/06/service'>" & _
                    "  <header>" & _
                    "    <securityContext>" & _
                    "      <webExID>" & v_strAdminUsername & "</webExID>" & _
                    "      <password>" & v_strAdminPassword & "</password>" & _
                    "      <siteID>" & v_strSiteID & "</siteID>" & _
                    "      <partnerID>" & v_strPartnerID & "</partnerID>" & _
                    "    </securityContext>" & _
                    "  </header>" & _
                    "  <body>" & _
                    "       <bodyContent xsi:type='java:com.webex.service.binding.user.SetUser'>" & _
                    "           <webExId>" & v_strUserToUpdate.Trim & "</webExId>" & _
                    "           <security>" & _
                    "               <use:password>" & v_strNewPassword & "</use:password>" & _
                    "           </security>" & _
                    "       </bodyContent>" & _
                    "  </body>" & _
                    "</serv:message>"

 
....isn't working. Returning error "validation: unable to find FieldDescriptor for 'password' in ClassDescriptor of securityType" which is probably fair enough as I am probably firing the wrong thing at the API. Please can somebody point me in the right direction.
 
Thanks
Tom.

Subject: RE: Reset a user password using SetUser
Replied by: Tom Dyer on 10-01-2011 11:12:39 AM
Fixed this. Took out the security tag. Not needed. Also changed <use:password> to just <password>
 
Tom.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links