Skip to Content
avatar image
Former Member

Convert OData Response XML Format to Tabular Format in ABSL C4C

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 6 hours ago

    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

    Add comment
    10|10000 characters needed characters exceeded