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.



Using REST

From: John Ballnik (2013-05-07 12:01)

Hey Gang,
I'm starting to look at the REST functionality in 7.5.0.1 and when I try to query for data from one object I get the following error
Error 401: BMXAA0021E - User name and password combination are not valid. Try
again.
I'm pretty sure the URL was right, does anyone know how to include the username and password in a REST request?
thanks,
John


From: shannon sutton (2013-05-07 12:07)

Not sure what you are trying to accomplish but have you looked at the following?
http://maximodev.blogspot.com/2012/08/maximo-integration-framework-object-structure-service-http-tutorial.html
 
Shannon Dale SuttonMobile: 318-334-8002
________________________________
From: John Ballnik <jballnik@yahoo.com>
To: "MAXIMO@yahoogroups.com" <MAXIMO@yahoogroups.com>
Sent: Tuesday, May 7, 2013 3:01 PM
Subject: [MAXIMO List] Using REST

 
Hey Gang,
I'm starting to look at the REST functionality in 7.5.0.1 and when I try to query for data from one object I get the following error
Error 401: BMXAA0021E - User name and password combination are not valid. Try
again.
I'm pretty sure the URL was right, does anyone know how to include the username and password in a REST request?
thanks,
John


From: Hanna, Christopher A CTR (2013-05-07 15:55)

I've played around with this a (very) little. You have to add a header to your GET request called MAXAUTH and the value of that header should be the String "user:password", Base64 encoded.

I believe there is also a way to pass the credentials in the URL for development purposes, should be in the integration guide. This should of course only be used for development as you'll be passing credentials in clear text if you include it in the URL, although Base64 in a header really isn't all that much more secure.

-Chris H

-----Original Message-----
From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of shannon sutton
Sent: Tuesday, May 07, 2013 3:08 PM
To: MAXIMO@yahoogroups.com
Subject: Re: [MAXIMO List] Using REST



Not sure what you are trying to accomplish but have you looked at the following?

http://maximodev.blogspot.com/2012/08/maximo-integration-framework-object-structure-service-http-tutorial.html


Shannon Dale SuttonMobile: 318-334-8002

________________________________
From: John Ballnik <jballnik@yahoo.com <mailto:jballnik%40yahoo.com> >
To: "MAXIMO@yahoogroups.com <mailto:MAXIMO%40yahoogroups.com> " <MAXIMO@yahoogroups.com <mailto:MAXIMO%40yahoogroups.com> >
Sent: Tuesday, May 7, 2013 3:01 PM
Subject: [MAXIMO List] Using REST



Hey Gang,

I'm starting to look at the REST functionality in 7.5.0.1 and when I try to query for data from one object I get the following error

Error 401: BMXAA0021E - User name and password combination are not valid. Try
again.

I'm pretty sure the URL was right, does anyone know how to include the username and password in a REST request?

thanks,
John









From: John Ballnik (2013-05-07 16:30)

We are going to start using JSON for passing data so that is why I was curious about getting to know REST a bit more
________________________________
From: "Hanna, Christopher A CTR" <christopher.a.hanna@uscg.mil>
To: MAXIMO@yahoogroups.com
Sent: Tuesday, May 7, 2013 12:55 PM
Subject: RE: [MAXIMO List] Using REST

 
I've played around with this a (very) little. You have to add a header to your GET request called MAXAUTH and the value of that header should be the String "user:password", Base64 encoded.
I believe there is also a way to pass the credentials in the URL for development purposes, should be in the integration guide. This should of course only be used for development as you'll be passing credentials in clear text if you include it in the URL, although Base64 in a header really isn't all that much more secure.
-Chris H
-----Original Message-----
From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of shannon sutton
Sent: Tuesday, May 07, 2013 3:08 PM
To: MAXIMO@yahoogroups.com
Subject: Re: [MAXIMO List] Using REST
Not sure what you are trying to accomplish but have you looked at the following?
http://maximodev.blogspot.com/2012/08/maximo-integration-framework-object-structure-service-http-tutorial.html
Shannon Dale SuttonMobile: 318-334-8002
________________________________
From: John Ballnik <jballnik@yahoo.com <mailto:jballnik%40yahoo.com> >
To: "MAXIMO@yahoogroups.com <mailto:MAXIMO%40yahoogroups.com> " <MAXIMO@yahoogroups.com <mailto:MAXIMO%40yahoogroups.com> >
Sent: Tuesday, May 7, 2013 3:01 PM
Subject: [MAXIMO List] Using REST
Hey Gang,
I'm starting to look at the REST functionality in 7.5.0.1 and when I try to query for data from one object I get the following error
Error 401: BMXAA0021E - User name and password combination are not valid. Try
again.
I'm pretty sure the URL was right, does anyone know how to include the username and password in a REST request?
thanks,
John



From: Ian Wright (2013-05-08 07:18)

http://maxdev/maximo/rest/mbo/asset?assetnum=~eq~CYG001&_lid=maxadmin&_lpwd=maxadmin

an example

From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of John Ballnik
Sent: 08 May 2013 00:31
To: MAXIMO@yahoogroups.com
Subject: Re: [MAXIMO List] Using REST



We are going to start using JSON for passing data so that is why I was curious about getting to know REST a bit more

________________________________
From: "Hanna, Christopher A CTR" <christopher.a.hanna@uscg.mil<mailto:christopher.a.hanna%40uscg.mil>>
To: MAXIMO@yahoogroups.com<mailto:MAXIMO%40yahoogroups.com>
Sent: Tuesday, May 7, 2013 12:55 PM
Subject: RE: [MAXIMO List] Using REST



I've played around with this a (very) little. You have to add a header to your GET request called MAXAUTH and the value of that header should be the String "user:password", Base64 encoded.

I believe there is also a way to pass the credentials in the URL for development purposes, should be in the integration guide. This should of course only be used for development as you'll be passing credentials in clear text if you include it in the URL, although Base64 in a header really isn't all that much more secure.

-Chris H

-----Original Message-----
From: MAXIMO@yahoogroups.com<mailto:MAXIMO%40yahoogroups.com> [mailto:MAXIMO@yahoogroups.com<mailto:MAXIMO%40yahoogroups.com>] On Behalf Of shannon sutton
Sent: Tuesday, May 07, 2013 3:08 PM
To: MAXIMO@yahoogroups.com<mailto:MAXIMO%40yahoogroups.com>
Subject: Re: [MAXIMO List] Using REST

Not sure what you are trying to accomplish but have you looked at the following?

http://maximodev.blogspot.com/2012/08/maximo-integration-framework-object-structure-service-http-tutorial.html

Shannon Dale SuttonMobile: 318-334-8002

________________________________
From: John Ballnik <jballnik@yahoo.com<mailto:jballnik%40yahoo.com> <mailto:jballnik%40yahoo.com> >
To: "MAXIMO@yahoogroups.com<mailto:MAXIMO%40yahoogroups.com> <mailto:MAXIMO%40yahoogroups.com> " <MAXIMO@yahoogroups.com<mailto:MAXIMO%40yahoogroups.com> <mailto:MAXIMO%40yahoogroups.com> >
Sent: Tuesday, May 7, 2013 3:01 PM
Subject: [MAXIMO List] Using REST

Hey Gang,

I'm starting to look at the REST functionality in 7.5.0.1 and when I try to query for data from one object I get the following error

Error 401: BMXAA0021E - User name and password combination are not valid. Try
again.

I'm pretty sure the URL was right, does anyone know how to include the username and password in a REST request?

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.
**************************************************************************************************************