Skip to Content
0

Convert OData Response XML Format to Tabular Format in ABSL C4C

Apr 03, 2017 at 12:43 PM

233

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers