I am trying to create an import function to invoke the EXECUTE_ACTION function. It is invoked when the import function has a cardinality of 1; however, when I change it to 0..n I get this error:
<message xml:lang="en">The specified HTTP method is not allowed for the resource identified by the Data Service Request URI</message>
I made sure the function has POST method type while I request a POST service. Any idea why this error is happening and how I can fix it?
As far as i know the error is valid.
My understanding is when ever we set the cardinality 0..n or 1..n , we will have to specify the return entity set and this is needed when wet set the HTTP method to GET.
But with methods POST/PUT/DELETE, we would act upon on an entity and return type is expected is also an entity.In those cases we set cardinality 0..1 or 1 and we specify return entity only.