cancel
Showing results for 
Search instead for 
Did you mean: 

REST Service with Multiple Operations - REST Adapter

gaffaransari
Participant
0 Kudos

Dear All,

We have following scenario using REST adapter. We'd like to expose Driver Master details functionality in ECC for 3rd party system. 3rd party system will Create, Read, Update and Delete driver details using REST API. SAP ECC will be the provider using proxy approach for all CRUD operations.

We created one sender service interface for 3rd party with multiple operations a sshown below.

We created sender channel like below and want more than one REST URL to be bound to a single channel.

I'm getting below error. I referred below blogs but I couldn't make out how to dynamically route the operations using since interface.

https://blogs.sap.com/2015/10/26/exposing-rest-service-with-multiple-operations-in-sap-po-with-rest-...

https://blogs.sap.com/2014/12/18/pi-rest-adapter-map-crud-operations-to-service-interface-operations...

<html>
<head>
<title>Error</title>
</head>
<body>
<h1>Error</h1>
</b>No channel found to handle "POST" request to "/DriverMaster/"
</b>
<pre>Exception occurred. See log trace with id: n/a</pre>
</body>
</html>

Accepted Solutions (0)

Answers (2)

Answers (2)

Nikiforos
Explorer
0 Kudos

I appreciate that I'm too late, but just in case someone else is having a similar issue, I think I know what the problem is. At least based on your screenshots.

In the tab "REST Resources", in the field "Pattern" you need to include a placeholder for the value that you want to pass to the dynamic attribute.

So you need to write this into the pattern field: /{resource}

Now the dynamic attribute, with the "Value Source" of "URL Pattern Element", knows where to look for the value which it will place in the REST {service} element. This can then be used in the tab "Operation Determination", as you have implemented it.

marcelom_bovo
Participant
0 Kudos

Hello,

Did you find any solution?

gaffaransari
Participant
0 Kudos

We dropped this approach and went ahead with differnet one.