cancel
Showing results for 
Search instead for 
Did you mean: 

Response Creation in Wrapper Class SICF

abhay_rajhans2
Contributor
0 Kudos

Hi All,

The scenario is

A third party system is sending text using HTTP post method to the URL which is defined by us. We are accessing this text in a wrapper class, which is included in the SICF service. From SICF service we are creating a message in SXI_MONITOR as mentioned in below link.

/people/william.li/blog/2009/03/19/adapter-user-module-for-http-adapter

Now we want to send a response back to the third party system. How to create a response and sent to the third party system?

The third party system want the response from the server means once they hit the URL they should immediately get the response. Ex: When we hit any URL we get a response from site showing their page or any message. In our case the response is blank page.

Please guide

Accepted Solutions (0)

Answers (1)

Answers (1)

abhay_rajhans2
Contributor
0 Kudos

The solution was following code. Called the code and was able to pass Response.

lr_response = server->response.

lv_value = 'Your leave request has been received'.

lr_response->set_cdata( lv_value ).

lr_response->set_status( code = 400 reason = 'Document not found!' )