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,438
  • 68
  • 55
  • 126
Roxana
  • 1,525
  • 3
  • 22
  • 39

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,076
  • 2
  • 22
  • 25