How do I execute the callServerMethod method using REST instead of SOAP?
I needed to figure out some way to run a Spel method in the background using REST.
Can anyone tell if this is possible?
I did a check against REST and SOAP functionality. SOAP presents the callServerMethod method but there is no equivalent method I could find in REST. This was from an examination of all methods I could find for the REST wadl as exposed in Service Desk.
Can you provide more details on what you're trying to do with this method? What is the scenario in place and how are you looking to leverage the given spel method?
To add a little more context, REST web services typically involve posting an HTTP method such as GET or POST on a given object. The URI would have the given object specified in which the change is being applied as part of the syntax, ie: http://SERVER1:8051/caisd-rest/chg would apply an update on change orders. As a result, SOAP methods such as callServerMethod do not necessarily translate into REST directly.
My feeling is that one could indirectly trigger the spel method you're interested in by leveraging the given object that the spel method might be attached to at the factory level or via an alternate approach such as invoking an event.
The only way I see is to create proxy REST service on the server with the method that will call webservice method, or even execute bop_cmd. Since most probably You are working with on premise installation this may be feasible solution
Do you require any additional assistance on this topic?
If not, please mark one of the provided responses as correct so that this thread can be closed.