Skip to main content
Question

Restful API call Get IFS10

  • November 17, 2022
  • 2 replies
  • 711 views

Forum|alt.badge.img+2
  • Do Gooder (Customer)
  • 2 replies

Hi!

I have followed a tutorial found here on the community (RESTFul_API_CALL_NBRB.docx (live.com))

on how to send and receive data with  with plsql_rest_sender_API.Call_Rest_EndPoint_Empty_Body2. I receive a json string in the response from the integrated system (see green line below)

My call is configured as below

 plsql_rest_sender_API.Call_Rest_EndPoint_Empty_Body2(

rest_service_ => 'GET_SCALE_CUSTOMER',
                                                       --url_params_ => Url_params,
                                                       callback_func_ => 'C_Integration_Util_Api.REST_callback_Cust',
                                                       http_method_ => 'GET',
                                                       http_req_headers_ => 'Content-Type:application/json',
                                                      -- query_parameters_ => Query_params,                                                    
                                                       key_ref_ => client_sys.get_key_reference('','actorId',customer_no_),
                                                       accepted_res_codes_ =>'200'
                                                       );

When calling the Callback function it’s fetching the data in Get_Scale_Customer.xml code stored in message input data (see below) looking like this 

I want to fetch the json string in the message response below. How is this done?

 

2 replies

dsj
Superhero (Partner)
Forum|alt.badge.img+22
  • Superhero (Partner)
  • 835 replies
  • November 18, 2022
katase wrote:

Hi!

I have followed a tutorial found here on the community (RESTFul_API_CALL_NBRB.docx (live.com))

on how to send and receive data with  with plsql_rest_sender_API.Call_Rest_EndPoint_Empty_Body2. I receive a json string in the response from the integrated system (see green line below)

My call is configured as below

 plsql_rest_sender_API.Call_Rest_EndPoint_Empty_Body2(

rest_service_ => 'GET_SCALE_CUSTOMER',
                                                       --url_params_ => Url_params,
                                                       callback_func_ => 'C_Integration_Util_Api.REST_callback_Cust',
                                                       http_method_ => 'GET',
                                                       http_req_headers_ => 'Content-Type:application/json',
                                                      -- query_parameters_ => Query_params,                                                    
                                                       key_ref_ => client_sys.get_key_reference('','actorId',customer_no_),
                                                       accepted_res_codes_ =>'200'
                                                       );

When calling the Callback function it’s fetching the data in Get_Scale_Customer.xml code stored in message input data (see below) looking like this 

I want to fetch the json string in the message response below. How is this done?

 

 

Hi @katase 

 

Seems like you have set both addresses in the same chain link.

Go to the routing rule and modify the chain link to 2 in the address with PLSQL method, and set the REST address (chain link 1) as main address

 

Eg:

 

Hope it helps!

Damith


Hello Katase

If there a chance that you have the original tutorial file mentioned still on hand?

The link ((RESTFul_API_CALL_NBRB.docx (live.com)) seems to be expired/invalid.

Thank you


Reply


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