Maximo List Archive

This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.



Anyone using REST

From: John Ballnik (2014-06-10 10:29)

Hey Gang,
Has anyone started using the REST API for Maximo 7.5?  I'm starting to dive into it and have a rest tool available but every time I try to get information back from Maximo I'm getting either the 401 unauthorized error or the 500 Internal server error.  Does anyone see anything wrong with this URL?
http://<SERVER and PORT>t/maxrest/rest/os/mxperson?_lid=user&_lpwd=password&_personid=JRYAN 
Do I have to do anything else to enable REST functionality?
thanks,
John


From: andrew.tess (2014-06-10 19:56)

Jon, For the authorization Maximo is looking for the maxauth http header. The value is a base64 encode of [USERNAME]:[PASSWORD]. If your are using postman (a chrome plugin), you can use basic auth to produce the value and change the authentication header to maxauth.

The last section "Authentication" of this post from Bruno Portaluri has some of the details.
http://maximodev.blogspot.com/2012/09/maximo-integration-framework-web-service-tutorial.html http://maximodev.blogspot.com/2012/09/maximo-integration-framework-web-service-tutorial.html

Enjoy?
Andy


From: Ian Wright (2014-06-11 07:33)

Here is an example of an update
<HTML>
<form name="input" action="http://maxint/maxrest/rest/os/MXASSET/5602?_lid=maxadmin&_lpwd=maxadmin" method="POST">
UPDATE DESCRIPTION <input name="DESCRIPTION" value="A NEW DESCRIPTION" type="text">
UPDATE STATUS <input name="STATUS" value="NOT READY" type="text">
<input type="submit" value="Submit">
</form>
</HTML>
Note the 5602 id the assetid value
PS I think this is hugely dangerous :)
From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com]
Sent: 10 June 2014 18:30
To: Maximo YahooGroup
Subject: [MAXIMO List] Anyone using REST
Hey Gang,
Has anyone started using the REST API for Maximo 7.5? I'm starting to dive into it and have a rest tool available but every time I try to get information back from Maximo I'm getting either the 401 unauthorized error or the 500 Internal server error. Does anyone see anything wrong with this URL?
http://<SERVER and PORT>t/maxrest/rest/os/mxperson?_lid=user&_lpwd=password&_personid=JRYAN<http://maxprod75.vwd.int/maxrest/rest/os/mxperson?personid=KFISHER>
Do I have to do anything else to enable REST functionality?
thanks,
John
GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.
**************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
**************************************************************************************************************