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

0 Answers