0

I have REST services with cxf. My delete method cannot take a custom object:


    @DELETE
    @Path("/soemPath")
    @Produces({ "application/json", "application/xml" })
public void deleteStg(@PathParam("someId") String someId, CustomObject customObject) throws InvalidClientIdException, TermsOfUseBusinessException {

However, I cannot give the customObject (soapui does not have option for this one). If I change the method to update, everything works fine. Can you please tell me how should I handle this to be able to transmit customObject as input param?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Roxana
  • 1,569
  • 3
  • 24
  • 41

1 Answers1

1

"Usually" you don't send a payload body for a DELETE operation, perhaps this is the reason that it can not be defined in SoapUI. However, it is not forbidden as seen here.

Community
  • 1
  • 1
Peter Keller
  • 7,526
  • 2
  • 26
  • 29