Re: [rt-users] REST add/update a user

2009-03-02 Thread Jesse Vincent
On Fri 27.Feb'09 at 15:31:58 -0800, Tom Lahti wrote: Can we please get some example code for this up somewhere so those of us that have automated employee fulfillment workflows can integrate this fairly easily? At the moment, I've a JSP utility that is used to create new users, and I'd

Re: [rt-users] REST add/update a user

2009-03-02 Thread Tom Lahti
Well, I can tell you off the top of my head that what you POST is XML, but the contents of that XML are not what you would think. Nope, it's a regular form-encoded post. There's no XML anywhere. Ah, I was right the first time. It's been about 2 weeks since I was at the HTTP level with my

Re: [rt-users] REST add/update a user

2009-03-02 Thread Tom Lahti
Can we please get some example code for this up somewhere so those of us that have automated employee fulfillment workflows can integrate this fairly easily? At the moment, I've a JSP utility that is used to create new users, and I'd like pre-instantiate the RT user for them (While we do use

[rt-users] REST add/update a user

2009-02-27 Thread Joel Schuweiler
Anyone have example code, or know where I can find any, for using rest to add/update/delete users, including their passwords. Thanks, Joel ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help:

Re: [rt-users] REST add/update a user

2009-02-27 Thread Tom Lahti
Joel Schuweiler wrote: Anyone have example code, or know where I can find any, for using rest to add/update/delete users, including their passwords. Thanks, Joel It's just a form, with the id: field set to user/login instead of ticket/number, and use the edit REST method. To create a user,

Re: [rt-users] REST add/update a user

2009-02-27 Thread Joel Schuweiler
@lists.bestpractical.com Subject: Re: [rt-users] REST add/update a user Joel Schuweiler wrote: Anyone have example code, or know where I can find any, for using rest to add/update/delete users, including their passwords. Thanks, Joel It's just a form, with the id: field set to user/login instead

Re: [rt-users] REST add/update a user

2009-02-27 Thread Tom Lahti
Joel Schuweiler wrote: Hrm... I thought xml was standard when doing rest, is this not the case? Is there a method to get rt to handle xml for bother get/post ? Nope. RT uses RFC822 formatted forms, not XML. You can write a library that transforms your XML into the forms and vice versa, if you

Re: [rt-users] REST add/update a user

2009-02-27 Thread Gary Greene
-Original Message- From: rt-users-boun...@lists.bestpractical.com [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Tom Lahti Sent: Friday, February 27, 2009 12:56 PM To: Joel Schuweiler Cc: rt-users@lists.bestpractical.com Subject: Re: [rt-users] REST add/update

Re: [rt-users] REST add/update a user

2009-02-27 Thread Tom Lahti
Can we please get some example code for this up somewhere so those of us that have automated employee fulfillment workflows can integrate this fairly easily? At the moment, I've a JSP utility that is used to create new users, and I'd like pre-instantiate the RT user for them (While we do use

Re: [rt-users] REST add/update a user

2009-02-27 Thread Gary Greene
-Original Message- From: Tom Lahti [mailto:t...@bitstatement.net] Sent: Friday, February 27, 2009 3:32 PM To: Gary Greene Cc: Joel Schuweiler; rt-users@lists.bestpractical.com Subject: Re: [rt-users] REST add/update a user Can we please get some example code for this up