Comentarios (6)

1 Brett-AME ha hecho un comentario el Enlace permanente

Great article, but I tried putting http://<your host="host" and="and" port="port">/maxrest/rest/os/mxperson in a web browser and got:

Error 401: BMXAA0021E - User name and password combination are not valid. Try again.
In order to view the XML output generated by the URI and parameters, you need the following 2 parameters:
For example:
http://<your host="host" and="and" port="port">/maxrest/rest/os/mxperson?_lid=<username>&_lpwd=<password></password></username></your></your>

2 Andy.Lillo ha hecho un comentario el Enlace permanente

Great to simply understand Maximo REST API.
for example : http://hostname:port/maxrest/rest/os/mxperson?_lid=<youruername>&_lpwd=<yourpassword>

3 jballnik ha hecho un comentario el Enlace permanente

I want to use json as my output format. I've updated the following properties in System Properties to json. <div>&nbsp;</div> <br /> <br /> <div>&nbsp;</div> I've restarted the server, but I'm still seeing XML when I hit the REST URL. Is there something I'm missing?

4 selvarajs ha hecho un comentario el Enlace permanente

http://<your host="host" and="and" port="port">/maxrest/rest/os/mxperson?_lid=<username>&_lpwd=<password></password></username></your>

in the above link, writing password n username directly may cause security issues!! please suggest me how to encrypt it like
http://<your host="host" and="and" port="port">/maxrest/rest/os/mxperson?_lid=<encrytedusername>&_lpwd=<encyrtedpassword></encyrtedpassword></encrytedusername></your>

5 blman66 ha hecho un comentario el Enlace permanente

Very nice article but I am disappointed with the error handling. <div>&nbsp;</div> e.g: POST to create a PO throws error <div>&nbsp;</div> Response Code : 400 <br /> Exception in thread "main" Server returned HTTP response code: 400 for URL: http://maxpc/maxrest/rest/os/MXPO?_lid=maxadmin&amp;_lpwd=maxadmin <div>&nbsp;</div> while the Maximo Logs display the true error: <div>&nbsp;</div> 03 Dec 2014 13:05:53:648 [ERROR] [MXServer] [CID-MXREST-546] Processing failed for MXPO. The object <br /> structure is 1. The primary object is PO. The key is BEDFORD~PK20004.BMXAA1407E - The PO object cannot <br /> be added because it already exists in the application. An integration message cannot create an object that already exists. <div>&nbsp;</div> <div>&nbsp;</div> Is there any way to have the REST API call return the 'true' error rather than a generic 400 message ???

6 Maycon Belfort ha hecho un comentario el Enlace permanente

Hi, <div>&nbsp;</div> I'm try to use the XMLHttpRequest but I'm receiving the error: <br /> XMLHttpRequest cannot load http://HOST:PORT/maxrest/rest/os/mxperson?personid=~eq~MAXADMIN. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. <div>&nbsp;</div> Could you help me? <div>&nbsp;</div> Thank you!