Invoking a webservice from MBo Classes WITHOUT MIF

 

Hi,

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.

Enjoy!!

Regards,

Aniruddh Panvalkar

Advertisements

2 thoughts on “Invoking a webservice from MBo Classes WITHOUT MIF

  1. And_andhoi

    Hi Aniruddh,

    can you give an example(a small appl example) about what you say, how to use it (WSCallClient). I am very interessted in your approach “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” but I don’t know how to apply/practice it.

    Reply
  2. admin Post author

    Hi,

    I am not sure when you say how to apply?

    I have explained how to use this.

    Regards,
    Aniruddh

    Sorry for the delay in answering.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s