Skip to main content
Question

IFS Connect - call IFS Rest API (APPS10 UPD13)

  • December 22, 2021
  • 3 replies
  • 638 views

Forum|alt.badge.img+9
  • Sidekick (Employee)

I would like to call IFS standard Rest API via IFS Connect - REST Transport Connector.

(eg, a json file inbound in FTP , and I pass it to REST API)

While, seems IFS doesn't support call itself's RestAPI.

It keeps getting error.

Is anyone know the correct setting?

My Setting:

 

Error:

 

to simpliy the issue, I changed the Auth from OAth2.0 to basic for that API

and succedd to call via Postman:

 

This topic has been closed for comments

dsj
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • December 22, 2021

Hi @Shou 

 

I see you have used two content-type headers in routing address. that could be the issue. remove the content-type=text/plain and try again

 

Regards,

Damith


Forum|alt.badge.img+9
  • Sidekick (Employee)
  • December 22, 2021

@dsj 

  Thanks for your reply.

  I tried a lot of pattern (even removed all header-paramemters) , but still same error.

  I think it may a bug of IFS.


dsj
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • December 22, 2021

Hi @Shou 

 

It could be because you are routing from FILE_IN to the rest endpoint. Have you tried to call the same rest api from plsql using plsql_rest_sender_api.call_rest_endpoint and what’s the result?

 

Otherwise, setJ2EE logging to debug and there you can see the raw http request including headers in the log. You might find what’s wrong with the request from that.

 

Cheers!

Damith


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings