Can some one tell me the where should be @WebMethod
used and where @Path or @RequestMapping
should be used?
Recently I came through a code where @webmethod
is used, till now I have been using @path and @requestmapping
for implementing my webservices.
Well, the code with Webmethod was using SOAP webservices.
Is it something to do with SOAP or REST? or Java or J2EE?
I have tried googling, but no success till now.
@WebMethod(operationName = "GetPendingrequest")
public abstract ERxPendingRequestsCounts getERxPendingCountsForProvider(@WebParam(name = "pvid") BigDecimal pvid)
throws SystemFault,SecurityFault, IllegalArgumentFault;