Results 1 to 4 of 4

Thread: How to exactly use restAPI in nodejs environment with JDE/AIS?

  1. #1

    How to exactly use restAPI in nodejs environment with JDE/AIS?

    We are developing a portal which takes a file uploaded by a partner and passes the data to JDE. Before we can pass this data to JDE I wanna understand how exactly to make an API call to JDE using nodejs.

    for starters, I have an simple API call as seen below. Am I on the right track? I want to make that first contact before going to the next step.

    $.ajax({
    method: "GET",
    username:"username",
    password:"password",
    url: "http://aisserverort/jderest/",
    dataType:'jsonp'
    }).then(function (data) {
    console.log(data)
    })

  2. #2
    Member
    Join Date
    Dec 2000
    Location
    Australia
    Posts
    582
    I think your best bet is to start here: https://docs.oracle.com/cd/E53430_01...uickStart.html

    It covers it all using examples that you can call with CURL. You can't get more platform neutral than that. You can just then put the examples into JavaScript/TypeScript in your node project.

  3. #3
    Quote Originally Posted by JEMILLER View Post
    I think your best bet is to start here: https://docs.oracle.com/cd/E53430_01...uickStart.html

    It covers it all using examples that you can call with CURL. You can't get more platform neutral than that. You can just then put the examples into JavaScript/TypeScript in your node project.
    I am getting a 404 error, so wondering if anyone else has done this in node or willing to crank out a quick example to lead me in the right direction?

  4. #4
    update to this:

    I am getting no response, no error when I call the ajax method. Anyone have any idea?

    $.ajax({
    method: "GET",
    Authorization: `Basic ${s}`,
    url: "https://aisserver:8081/jderest/"
    }).then(function (data) {
    console.log(data)
    })

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
The legal restrictions and terms of use applicable to this site are available here.
Use of this site signifies your agreement to the terms of use.
JDELIST is NOT affiliated with JD Edwards® & Company, Oracle or Peoplesoft. Contents of this site are neither endorsed nor approved by JD Edwards® & Company and, or Oracle.