Hi all,
I've a XML file as a Stream at server side (C#).
I'm trying to download it at client side.
Any one has a clue on how to do this ?
Like
In order to implement the functionality of downloading XML file on client side please create a web service that will return the file as a Stream. Please find the instruction how to create a web service in the article by the link below:
https://academy.creatio.com/documents/technic-sdk/7-15/creating-configuration-service
On the client side using Ext.Ajax the request to the newly created web service can be made in order to get the data.
There is an example of Ext.Ajax request to the web service below:
var requestUrl = Terrasoft.workspaceBaseUrl + '/ServiceModel/UsrService.svc/' +
'GetData';
Ext.Ajax.request({
url: requestUrl,
success: function(response, options){
var objAjax = response.responseText);
},
failure: function(response, options){
console.log('Failure');
}
});