cancel
Showing results for 
Search instead for 
Did you mean: 

Where to set the http method of a CPI https call

03-06-2023 10:26 AM
5466 views 6 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

I am a fresh man for CPI. Now I am working on a CPI integration flow.

The whole process is very easy. Just receive a https call from external call and pass it out to a RFC call.

Then I call it in postman with 'POST' method. But finally, it became 'GET' in the log ('trace' level). And the request body is lost. And the following RFC call be failed as well.

Log in CPI

I just wonder, where is wrong. Why the 'POST' is changed into 'GET'.

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

0 Likes

Hi all,

I think I got the root reason. The root cause is the call is http not https. The problem is there missing an 's'.

Answers (3)

Answers (3)

ljsap1
Explorer
0 Likes

Http senders can definitely handle post:

I saw that based on your screenshot shown of Postman, you may not have called the http sender, as the address does not have /http/. Instead it has /rfc/. So, check the address in Postman. It should be the same as the endpoint URL that is given by CPI for that deployed artifact.

Also check if you are seeing the trace of the correct step - check the headers for Content Modifier 1.

PiotrRadzki
Active Participant
0 Likes

Hi Joseph,

by default CPI expects GET HTTP calls in Inbound HTTPS connections.

Maybe you are overwriting the payload in first Content Modifier?

Try with GET.

BR, Piotr

0 Likes

Is there some place to change the setting of CPI 'HTTPS Sender Adapter'? Refer below article, I did NOT find any place for set the request method.

HTTPS Sender Adapter

PiotrRadzki
Active Participant
0 Likes

no, there is not place to change it. This is how HTTPS Sender works in CPI.

What is your requirement?

BR, Piotr

PriyankaChak
SAP Champion
SAP Champion
0 Likes

Hi Joseph,

Are the trace screenshots of request-reply step?

Regards,

Priyanka