Forum Discussion
- Hi!
hmm.. do you need to add a message body also?
regards,
/Ole
eviware.com - freedarkOccasional ContributorYes, our service requires this ability.
- Hi!
hmm.. unfortunately this isn't possible for DELETE requests currently (only for POST and PUT), I'll add a feature request to get this fixed in a future release.
If you are interested: the HTTP specification is a bit vague on this: http://stackoverflow.com/questions/2996 ... te-request
regards!
/Ole
eviware.com - How i can do to post this request:
______________________________
DELETE http://virtualstudio.sandbox3.net/2011- ... API2/Users HTTP/1.1
Accept: */*
Content-Type: application/json; charset=utf-8
Referer: http://virtualstudio.sandbox3.net/2011- ... min/DPAT/#
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Host: virtualstudio.sandbox3.net
Content-Length: 52
Connection: Keep-Alive
Pragma: no-cache
Cookie: ASP.NET_SessionId=0dpguk2af2iz0rd0vpdedf5o; .ASPXANONYMOUS=Exmjhh5dzAEkAAAAZTFkZWFmMjEtYWE5OS00NDJmLTliZmMtNDVhNDQyMjQ2ZTcy0; .ASPXAUTH=96A4F3BA2F50E80FFC559E4F06DE31B81CCA1251E9FB6F35CCD788D744B0F6DA6295E3E5D80D120FB4CFE235DDBD8229BB820F055F03C70EB61CEDB4336ADCD3839D4EFDCB67BBD8D700F6D58AEDF32E
{"username":"aaaaaaaaa","deleteAllRelatedData":true}
__________________
the problem is how i can send the body-content : {"username":"aaaaaaaaa","deleteAllRelatedData":true}
I try to do with HTTP Method Overloading
REST API uses HTTP GET, POST, PUT and DELETE methods. Since some HTTP clients do not support methods PUT and DELETE, you can simulate them via POST by appending the query string parameter _method (yes, underscore method) to a resource URL. Valid values are PUT and DELETE.
For example, if you want to perform a DELETE request on a particular phone number resource you could:
DELETE /2010-04-01/Accounts/AC30947.../PhoneNumbers/PN12345567789AFE4433
But if your client is only capable of GET and POST, then you could perform a POST with a _method query string variable to achieve the same result:
POST /2010-04-01/Accounts/AC30947.../PhoneNumbers/PN12345567789AFE4433?_method=DELETE
But it do not work with SOAPUI or maybe you can help me to make it work ?
thanks
Spear. - ViktorHaagNew Contributor
SmartBear Support wrote: Hi!
hmm.. unfortunately this isn't possible for DELETE requests currently (only for POST and PUT), I'll add a feature request to get this fixed in a future release.
I also would like to have this feature available. I am currently using SoapUI Pro 4.5.0. Can you please indicate the general status of this feature and when we could expect to see it?
Thanks! - kdahamOccasional ContributorAny news on this issue? Being able to apply a request body with a specific content type is being used by quite a few services these days.
Not to mention that most HTTP servers allows it as do JAX-RS, while SOAPui wont let me add it at all. Quite a big hindrance. - heathen462New Contributor+1 for this issue. My API requires a JSON array be passed via a DELETE HTTP call. Currently impossible in SoapUI.
- MarcusJModeratorHi,
This enhancement is in our internal tracking system as SOAP-507. We will let you know once it is implemented.
Thanks for your interest in this feature. - For over 3 years we talk about this topic and it is even in your ticket system. I need again this functionality.
I just check in new 5.0 beta and this feature is still missing. Why is this feature still not implemented? - SilverJANew ContributorI've now come accross this need as well, and am also a little dissappointed that it's been over 3 years without a resolution. Maybe it's an implemented option that I'm just overlooking.
Also, looking that their bug tracking tool, I don't see a bug for this. Bug #507 doesn't have anything to do with the Delete request. Who knows, maybe I'm looking totally in the wrong place.
Any updates on this from anybody on this?