Technical Blog Post
My MIF Web Service is deployed... What now ?
After deploying a MIF Web Service, you may want to test it and make sure everything is working fine, don't you?
For sure, your integration requires an External System to post some data to Maximo using this Web Service, but for now you can use a third party client and setup some tests scenarios and post some data.
In all my tests, I use SoapUI, which is open source ! www.soapui.org.
After installing it, you will be able to post Soap, HTTP and REST calls to Maximo.
Let’s review the soap call use case now…
In the SoapUI, click File > New SOAP Project
In the Initial WSDL field, paste the WSDL URL for the Web Service you have deployed.
For instance: http://mxserver:7001/meaweb/wsdl/MXASSET.wsdl ( This is just a sample, you may have to change the server and port info )
A new project is created based on the WSDL and a few samples were added in the specific operations ( Create, Update, Delete, Sync and Query )
Lets run a quick test on a Query sample:
Expand the Query node and double click the Request1.
In the Request panel ( Left side ) You will see an empty request with all XML attributes for the MXASSET Object Structure. Obviously, for a query you don't have to populate all ASSET attributes.
Here you go a really small sample for a query on MXASSET. This will fetch all ASSET records from the BEDFORD site.
You can replace your current request with this one.
Click the Submit button and watch the response panel ( right side ). All ASSETs from BEDFOR will be represented in an XML format.
Then, the response is sent back !
Try the same steps for updating a given ASSET record. This sample updates the ASSET 7500 from the BEDFORD site with a new DESCRIPTION.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:max="http://www.ibm.com/maximo">
HTTP 200 represents Success ! This means your request has been accepted in the Maximo side. Of course you may have to check if the data has been properly updated.
Anything other than HTTP 200 means something bad happened.
HTTP 401 – Authentication Issue
HTTP 404 – Server is not found
See more HTTP codes at http://www.w3schools.com/tags/ref_httpmessages.asp
This will show the Authentication Panel where you can click the Dropdown field and click “Add New Authorization” and then “Basic”. Click OK
Fill in the Username and the Password information.
IMPORTANT: This credential is related to the Application Server, not a Maximo user.
Ok ! You've got the basics.
I will be posting another blog with the REST calls using SoapUI as well
Please, let me know what questions you have... I am waiting for your inputs.