on 07-06-2017 2:46 AM
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
It's working now. I used SOAP adapter instead of HTTP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.