Sometimes there can be a situation when you want to invoke a webservice on Mbo Save or delete or from a WorkFlow action class and do not want to go through building the integration components.
So, you straight away want to call this webservice from your custom code. One of the option in that case would be to use “WSCallClient”.
This class can be found in psdi.iface.webservices package.
OMElement respOME = callClient.invokeWebService(servicename,endPointUrl, omeObject, null, null, null, action, null, soapVersion, null, mxUsername,mxPassword, null);
The omeObject above is the service payload object.
In WebServicesUtil there are some utility methods like “convertToOMElement” where you can pass raw xml and it will give back an OMElement payload object.
Checkout maximo java docs for details on all the methods in WSCallClient and WebServicesUtil classes.