Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem while invoking REST API for JD Edwards EnterpriseOne AIS Server

3584057Nov 20 2017

Hi All,

As mentioned in this doc [1], I'm trying to get token as in [2] that to be used for subsequent requests. I'm getting response as in [3] with the parameter "deprecated": true (This is not mentioned in the sample response which is given in the doc[1]).

Even though I use that token for subsequent request [4] as in [5], I'm always getting error [6]. Anyone have any idea about this?

[1] https://docs.oracle.com/cd/E53430_01/EOTRS/op-v2-tokenrequest-post.html#examples

[2]

POST /jderest/tokenrequest HTTP/1.1

Host: 129.158.69.175:7070

Content-Type: application/json

Cache-Control: no-cache

Postman-Token: 5df93f2b-1e8f-120b-b400-c253faa2d19b

{

    "username":"jde",

    "password":"xxxxx"

}

[3]

{

    "username": "JDE",

    "environment": "JPS920",

    "role": "*ALL",

    "jasserver": "http://129.158.69.175:8080",

    "userInfo": {

        "token": "044gL9g0Xwet52rG8n92+C7Uj6Rwv60sshnNAlQNyKj7xo=MDE5MDExNTY4NjQyMTUxMTkwNjU2MjkxNDIwMy45NC45NS40MTUxMTE1NTIxNjE2OQ==",

        "langPref": "  ",

        "locale": "en",

        "dateFormat": "MDE",

        "dateSeperator": "/",

        "simpleDateFormat": "MM/dd/yyyy",

        "decimalFormat": ".",

        "addressNumber": 1,

        "alphaName": "Financial/Distribution Company",

        "appsRelease": "E920",

        "country": " ",

        "username": "JDE"

    },

    "userAuthorized": false,

    "version": null,

    "poStringJSON": null,

    "altPoStringJSON": null,

    "aisSessionCookie": "trPU-0refmc_ijTcjFYiOWcVVZVRkTFhbwTKg92S65wARzfeY0Qv!443829502!1511106759390",

    "adminAuthorized": true,

    "deprecated": true

}

[4]

https://docs.oracle.com/cd/E53430_01/EOTRS/op-v2-appstack-post.html

[5]

POST /jderest/appstack HTTP/1.1

Host: 129.158.69.175:7070

Content-Type: application/json

Cache-Control: no-cache

Postman-Token: 81130c34-71b9-b1e4-bd28-116d2542b107

{

    "token": "044gL9g0Xwet52rG8n92+C7Uj6Rwv60sshnNAlQNyKj7xo=MDE5MDExNTY4NjQyMTUxMTkwNjU2MjkxNDIwMy45NC45NS40MTUxMTE1NTIxNjE2OQ==",

    "stackId":1,

    "stateId":1,

    "rid":"8ab1434e4d90fa34"

}

[6]

{

    "message": "Invalid Token: Please Request a New Token",

    "exception": "java.lang.Exception",

    "timeStamp": "2017-11-20:05.27.48",

    "deprecated": true

}

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2017
Added on Nov 20 2017
0 comments
565 views