Problem with login using xml-rpc api

2008-07-02 Thread Helder Ribeiro
Gentlemen, Im trying to create a bug in a local bugzilla installation using the bugzilla xml-rpc api but I have a problem with login. When I call the services that dont require login (get products or legal values, for example), its working fine. But when I try to create a bug, I get the following

Re: Problem with login using xml-rpc api

2008-07-02 Thread Jochen Wiedmann
On Wed, Jul 2, 2008 at 3:03 PM, Helder Ribeiro <[EMAIL PROTECTED]> wrote: > I tried to run the login before calling the create but. The login works > fine, it returns the logged user id, but when I call the create I got the > same error. Do you have a pointer to the API of the login method? I cou

Re: Problem with login using xml-rpc api

2008-07-02 Thread Helder Ribeiro
This is the api documentation: http://www.bugzilla.org/docs/3.0/html/api/Bugzilla/WebService/User.html It says " *Returns* On success, a hash containing one item, id, the numeric id of the user that was logged in. A set of http cookies is also sent with the response. These cookies must be sent a

Re: Problem with login using xml-rpc api

2008-07-02 Thread Helder Ribeiro
Sorry, its "User.login", not "Bug.login". On Wed, Jul 2, 2008 at 6:15 AM, Helder Ribeiro <[EMAIL PROTECTED]> wrote: > This is the api documentation: > > http://www.bugzilla.org/docs/3.0/html/api/Bugzilla/WebService/User.html > > It says " > *Returns* > > On success, a hash containing one item, id

Re: Problem with login using xml-rpc api

2008-07-02 Thread Jochen Wiedmann
On Wed, Jul 2, 2008 at 3:15 PM, Helder Ribeiro <[EMAIL PROTECTED]> wrote: > This is the api documentation: > > http://www.bugzilla.org/docs/3.0/html/api/Bugzilla/WebService/User.html > > It says " > *Returns* > > On success, a hash containing one item, id, the numeric id of the user that > was logg

Re: Problem with login using xml-rpc api

2008-07-02 Thread Helder Ribeiro
Hi Jochen, I changed my code to use XmlRpcCommonsHttpTransport to handle cookies and its working fine. Thanks a lot. On Wed, Jul 2, 2008 at 6:17 AM, Jochen Wiedmann <[EMAIL PROTECTED]> wrote: > On Wed, Jul 2, 2008 at 3:15 PM, Helder Ribeiro <[EMAIL PROTECTED]> wrote: > > This is the api documen