cancel
Showing results for 
Search instead for 
Did you mean: 

HCI: HTTP operation failed invoking URL with StatusCode: 415

prasanna_vittal
Participant
0 Kudos

Hi all,

In my scenario: HCI -> Cloud Connector -> S/4 Hana

I am trying to consume an RFC (exposed as a webservice) via HTTP Receiver adapter in HCI. Here are the steps I have followed:

1. Created a sample FM in my ERP system via SE37, remote enabled it and generated a web service.

2. In SOAMANAGER, created and activated the service.

3. In HCI, I created an iflow as below:

Timer Start -> Content Modifier -> Request-reply(HTTP Receiver adapter to ERP) -> End event -> Mail Adapter

4. In the Content-Modifier, I am setting the input payload for the RFC.

When I deploy the Iflow, I am getting an error in Message Monitoring "

org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking http://host:port/sap/bc/srt/rfc/sap/z_hello_hci_3/110/z_hello_hci_3/z_hello_hci_3 with statusCode: 415

"

I also tried to set "Content-Type" as "application/xml" under Header tab of content modifier. But that din't help. Please help.

Thanks,

Prasanna

Accepted Solutions (1)

Accepted Solutions (1)

prasanna_vittal
Participant
0 Kudos

It's working now. I used SOAP adapter instead of HTTP.

Answers (3)

Answers (3)

prasanna_vittal
Participant
0 Kudos

This URL Works:

http://host:port/sap/public/ping

This doesn't:

http://host:port/sap/bc/srt/rfc/sap/z_hello_hci_3/110/z_hello_hci_3/z_hello_hci_3

So, it's got something to do with the RFC I created.

Do I need to enable something like content type at the RFC side?

former_member194786
Active Contributor
0 Kudos

I am assuming you have tried testing the RFC service using SOAPUI or Postman? If it works, can you post a screenshot of the raw data and headers that is sent by these tools.

former_member194786
Active Contributor
0 Kudos

Also worth trying would be to set parameters:

Content-Type: application/xml and Accept: application/xml

prasanna_vittal
Participant
0 Kudos

Hi Sanjeev,

The ERP and Cloud connector systems are installed in remote environment and currently we access them via a remote desktop. We can't use software like SOAPUI/Postman to directly access these Systems. Only way I can access them is via HCI.

Regards,

Prasanna

prasanna_vittal
Participant
0 Kudos

Attaching screenshots of the IFlow and FM.

cscniflow.jpg

cscnfm.jpg