CUC Forums

« Back to CUPI Questions

Error 405 in setting password

Combination View Flat View Tree View
Threads [ Previous | Next ]
Experts,
 
I am new in CUPI programming. Got an error 405 "Method not allowed" when attempt (as 'admin') to set password for a user. 'admin' has System Admin and Remote Admin roles. What might be wrong?
 
Contents type is set to 'application/xml'.
 
thanks,
feng

can you please share the details like method, url and content

Thanks Sascha for looking into this.

I am programming via a .NET client. Using PUT, with URL https://<Unity Connection Server>/vmrest/users/<uid>/credential/password and Request <Credential><Credentials>newPassword</Credentials></Credential>.

Hi Feng - can you verify you are doing a PUT request?  If you were doing a POST, you would get a 405 back like you are seeing.
 
BTW I use the "Poster" addon for Firefox to test requests, it's quite handy:
https://addons.mozilla.org/en-US/firefox/addon/poster/
 
 
Thanks Sascha for looking into this.

I am programming via a .NET client. Using PUT, with URL https://<Unity Connection Server>/vmrest/users/<uid>/credential/password and Request <Credential><Credentials>newPassword</Credentials></Credential>.

it looks okay, have you set the header;
"Content-Type" to "application/xml;charset=utf-8" ?