on 04-03-2017 1:43 PM
Hi All,
I am trying to consume simple REST service on AccountCollection in C4C through ExternalWebServiceIntegration. Have created the WSID, CSD files, maintained communication arrangements.
I am receiving the response in a var type. Hence the output is getting truncated. How do I convert the data in this variable to a tabular format. I see that the output data is in "Content" parameter of result, but unable to proceed to convert the same.
import ABSL;
var ScenarioName = "CommScene_Odata";
var ServiceName = "ODataExtWebSerIntegration";
var HttpMethod = "GET";
var HttpResource = "";
var ContentType = "";
var Body = "";
var HeaderParameter: collectionof NameAndValue;
var URLParameter: collectionof NameAndValue;
var ws_result = WebServiceUtilities.ExecuteRESTService(ScenarioName, ServiceName,HttpMethod, HttpResource,
URLParameter, HeaderParameter,ContentType, Body);
var res_ContentType = ws_result.ContentType;
var res_Content = ws_result.Content;
var res_Code = ws_result.Code;
var res_RequestedURL = ws_result.RequestURL;
Please guide.
Thanks,
Srihari
Hello Srihari,
Considering the time that this question is open, we are not able to precise a solution for this conversion, as currently the Cloud for Customer SDK is in a higher version.
For guidance on how to configure the REST APIs on SDK, we suggest checking the following SAP blog:
https://blogs.sap.com/2016/10/29/rest-web-service/
Kind regards,
Leonardo Felini
Support Consultant | SAP Product Support
Community:
SAP Business ByDesign: https://www.sap.com/community/topics/business-bydesign.html
SAP Cloud for Customer: https://www.sap.com/community/topics/cloud-for-customer.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.