Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

SAP River - Call an action passing a Stream

$
0
0

Hey River early adopters,

 

Here is my scenario:

I created an action like this:

 

@OData

application myApplication {

     action testStringStream (ss: String[]): String{

            let messageReturn: String = '';

            foreach(item in ss){

                 messageReturn = messageReturn + item;

            }

            return'Final: '+messageReturn;

       }

}

 

To call this action I checked the auto-documentation generated in:

               myServer/sap/hana/rdl/odata/docs/myEnviroment/myProject#myApplication.testStringStream

 

and it gave me the following Request body:

               { "ss": <StringValue> }

 

but, making a HTTP Post with this request body, it returns the message:

               "type": "ODataInputError",

                "message": "Bad Input: Problem with action parameters types"

 

I've tried several different ways to make that call but I keep getting the same error...

 

The question is: How is the right way to pass a Stream type in a HTTP POST request body when calling an action??

 

Thx!

Rodrigo


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>