Maximo Web Services tutorial

This entry is part of the Maximo Integration Framework series.

This article explains how to setup and use Web Services capabilities of the Maximo Integration Framework (MIF/MEA).
In Maximo there are three different types of services that can be invoked from Web Services: Object Structure, Enterprise and Standard Services. This article will focus on Object Structure Services for simplicity of discussion but is generally useful to understand how to interact with Maximo through Web Services.

Test tool setup

To play with Web Services you need a client to generate test calls to Maximo. I strongly suggest to use soapUI. It may seems complex at the beginning but is a very powerful and easy tool in the real world. You can download soapUI from here.

Create the Web Service

The first step is to define the Object Structure.
In this example we will create a person record using the out-of-the-box MXPERSON object structure so we don’t need to create a new one. In real world scenarios, you typically clone an existing Object Structure to simplify or enrich it. To see the list of object structures defined or to create new object structure, use the Object Structures application under the Integration module.

Now it’s time to create the Web Service. To create a new Web Service from the MXPERSON object structure go to Integration – Web Services Library – Create WS from Object Structure and select the MXPERSON object structure.

Deploy the Web Service

Now that we have defined the MXPERSON Web Service it’s time to generate the XSD files that describes the service. Open the MXPERSON service in the Web Services Library application and click on the ‘Generate schema/View XML’ button.

The schema files are generated under the directory defined in the system property (e.g. C:\MIF\schema\service).

The last step is to deploy the Web Service and generate the Web Service Definition Language (WSDL) file. The WSDL file provides a description of how the service can be called, what parameters it expects, and what data structures it returns.
To deploy the Web Service, select the Deploy Web Service menu option of the Web Services Library application. If you are on TPAE 7.5 choose Deploy to Product Web Service Container – Deploy Web Service. If you get a BMXAA7755E error follow this technote to fix it.
On successful deployment the “Is Deployed?” check box should be checked.

To retrieve the WSDL file you have two options:

  • On the local filesystem in the directory
  • With the web browser at address http://[MXHOST]/meaweb/wsdl/[OSNAME].wsdl

Test the Web Service

Open soapUI and create a new project importing the WSDL files generated in the previous steps.

I started from QueryMXPERSON sample request, removing most of the optional elements. With the following request I was able to retrieve a PERSON record from Maximo.

<max:QueryMXPERSON rsStart="0">
<max:MXPERSONQuery operandMode="AND">
<max:DISPLAYNAME operator="=">Tom Revis</max:DISPLAYNAME>

This is the result in soapUI.

With a similar approach is possible to use the other interfaces to create, delete and update records in the Maximo database.


If security is enabled you will get an ‘Unauthorized error’. To solve this problem you must add the MAXAUTH HTTP header.
First of all you have to encode username and password to be sent. The MAXAUTH should be formatted like this [USERNAME]:[PASSWORD] and encoded in Base 64. Here is a free Base64 online encoder.
Now you can add the encoded string to the HTTP header. In the request page where you can see your XML request on the left and response on the right, click Headers tab under the window where you can see the XML request text. Then click Add a custom HTTP header icon, specify MAXAUTH as the header name, and the value should be the encoded string.


Maximo Web Services tutorial

47 thoughts on “Maximo Web Services tutorial

  1. Thanks for the post Bruno.

    One question though, you wrote that in this example you create a WO using the MXPERSON OS, how do we do that?

  2. Bruno, can you describe authentication process of soap services, I am using soap ui and every time I attempt to invoke the web service I get an Unauthorized error. I am not sure if the issue is related to soap ui or if there is an SCCD exception preventing authentication into the service.

  3. Using soapUI for a MAM75 WS and using the security as Bruno mentioned in his article
    when I leave the soapUI XML as
    < soapenv:Header / >
    I receive the error msg
    "javax.ejb.EJBException: nested exception is: psdi.util.MXApplicationException: BMXAA1268E – No user credentials."
    while when I insert
    < soapenv:Header >
    < maxauth >bWF4YWRtaW46TWF4aW1vMjAxMg==
    < /soapenv:Header >
    where that value is username:pwd encoded base64, I receive the error msg
    What I am doing wrong?

  4. Hi Bruno, we are trying to Re deploy the WEB Service. when clicked on undeploy , we getting the following error.

    BMXAA4214E – An unknown error has occurred.
    Please contact your system administrator for assistance.

  5. Hi Bruno,

    When i'm trying to create a new project and browse the WSDL file and press OK,
    i'm getting an error:
    Unexpected element: CDATA

    How I can solve it?

    Plase assist.

    Thanks & Regards,

  6. Hi Bruno, Neet to integrate filenet with Maxmo for accessing url and attachements.

    Is there any workaround for integrating withought webservice as both are IBM Producs.

    Any help will be appreciated.

  7. Just in case someone will have this problem in future – the MAXAUTH header is not the XML header, it's the HTTP header of the message that wraps the XML content, so you can't insert it in the XML body. the SOAP UI provides you a way to add HTTP headers to the Web Service calls – in the request page where you can see your XML request on the left and response on the right, click Headers tab under the window where you can see the XML request text. Then click Add a custom HTTP header icon, specify MAXAUTH as the header name, and the value should be : encoded with base64. You can get a sample code from here, for example: specify maxadmin:maxadmin (if your maxadmin's password is maxadmin)

  8. Hi Rudra,
    This is related to port issue, check the systm properties for mea web and use the proper port to re-deploy the WebService.

  9. Hi Bruno, is there any way to modify the 'Response' xml to include more fields when it is returned to the external system? e.g. include the assetid in the CreateMXASSETResponse xml

  10. Hi Bruno, Thank you for the post. I have a quick question, once the MIF is secure, is there way to define which users can actually call the web service, similar to restricting which users can access a given app. I would like to fully lock down the web service.

  11. Hi Bruno, Using soapUI for a MAM75 WS and using the security as you mentioned in your article.
    when I leave the soapUI XML as


    John Keller

    I am receive the error message


    at org.apache.axis2.AxisFault.makeFault(
    at psdi.iface.webservices.SoapFault.makeSoapFault(
    at psdi.iface.webservices.MOSWebService.processDocument(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(
    at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(
    at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
    at org.apache.axis2.engine.AxisEngine.receive(
    at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
    at org.apache.axis2.transport.http.AxisServlet.doPost(
    at javax.servlet.http.HttpServlet.service(
    at javax.servlet.http.HttpServlet.service(

    Do am I missing something here.

    Thank you,

  12. Hi BRUNO, is the link still alive. I need to get information on standard and Enterprise service development and deployment.

  13. The one that was mentioned by Алексей ЧеремисеновNovember 25, 2013 at 12:00 AM, is a setting in SOAPUI. How to do that in Maximo?

  14. Hi Bruno,

    I've got a question regarding Webservices connecting to Maximo. Currently I have it set up so that SOAPui can connect properly and Add/AddChange/Delete records.

    I was wondering if there is a way to force Maximo to not commit the inputted data from the webservice, but to still check if the data is valid. Like the preview from the data import UI.

    I would just like to check that small samples of data are valid but without adding new records, then it can all be processed in one big data load.


  15. Hi Bruno,
    Will it be possible to contact you or get your recommendation for some remote services for our IBM systems ?

  16. Hi Bruno,
    Will it be possible to contact you or get your recommendation for some remote services for our IBM systems ?

  17. Hi Bruno,
    We use Maximo 7.6.How to get the exchange rate(currencycode,price) ​​from a web page with web service?We want to import the values ​​from a web page and automatically add them to the exchange table.
    Can you help me?

  18. Also watch out for system property. Even though ejb-jar.xml might have ALLOWDFLTLOGIN set to 1, the request might error out with BMXAA1268E –
    Cannot initiate the requested service because the application
    that is
    calling the service did not provide the required login
    credentials. if is set to 0.

  19. Hi, Please let me know how to pass the MAXAUTH authentication code using C# code by calling Maximo WebService which requires base64 encoding of username:password.

  20. Hi, I want to make a Service Request from SOAPUI and I am using the MXAPISR endpoint.
    I have seen that since the MXAPISR the Address data is not filled in and for the address I am using mxsrvad.
    Finally, to try to relate the Service Request to the Service Address, I have seen that there is / maximo / oslc / os / mxtksrvad, but I cannot join the data. Does anyone know how to do it?

  21. Bruno,
    After upgrading from Maximo to, I had an issue with my client code that performs a HTTP POST on an Object Structure.
    I had to change my code on the request header to use the following for
    conn.setRequestProperty(“MAXAUTH”, encoding);
    instead of what I used in
    conn.setRequestProperty(“Authorization”, “Basic ” + encoding);

    Have you run into this issue?

    Here is the error I received:

    [2/26/20 12:07:34:759 EST] 00002458 webapp E logServletError SRVE0293E: [Servlet Error]-[MOSServiceServlet]: BMXAA1268E – No user credentials.
    at psdi.iface.servlet.MOSServiceServlet.doPost(
    at javax.servlet.http.HttpServlet.service(
    at javax.servlet.http.HttpServlet.service(


  22. Has anyone answered whether it’s possible to edit the response of a call to a soap service, particularly to include additional attributes?
    I see the entry about setting to 1, but what about attribute values other than key values?
    It is possible to have a query service available for a second call, following a Create or Sync, but having the initial response message suffice would be cleaner.

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top