cancel
Showing results for 
Search instead for 
Did you mean: 

How to detele the ticket through ticket Web Service

shanmugaraja
Champ in-the-making
Champ in-the-making
I am getting the ticket  using the login service

service/api/login?u="+user+"&pw="+pwd;

I would like to delete the ticket after ticket and get some content
like the one below

service/api/login/ticket/"+ticket

How to set the method delete while calling the ticket service. I am calling the service from the Jboss Server.
or do i need to do the following.

service/api/login/ticket/"+ticket?alf_ticket=ticket

Any help is highly appricated
3 REPLIES 3

davidc
Star Contributor
Star Contributor
How are you calling the service from jBoss?  Via a HTTP API? …?

You need to invoke the HTTP DELETE method - how you do that depends on the client (library) you're using.

If you can't call HTTP DELETE, you can either tunnel through a POST call, or add the url argument <tt>alf_method=DELETE</tt> as described here…

http://wiki.alfresco.com/wiki/Web_Scripts#HTTP_Method_Tunneling

You don't need ?alf_ticket=ticket, if you're using HTTP authentication.

shanmugaraja
Champ in-the-making
Champ in-the-making
Hello David thanks a lot for your response.

I am using the following way. Which has authentication and delete method
parameters

http://localhost:8080/alfresco/service/api/login/ticket/TICKET_9ea0b72a46cc7cc281f520e6fa506b65b8143...

However the response is coming as a ticket back in xml format. I not sure the ticket is deleted on the Alfresco end.  Your help is appreciated

davidc
Star Contributor
Star Contributor
Let me test here.