Response time Issue in WCF REST Service is very important_more 10 minutes

  • Thread starter Thread starter Thabetidris
  • Start date Start date
T

Thabetidris

Guest
Hi ,

I have created a WCF REST service to return a List of class "WsDimension",and the reponse file size is maximum 1 MB,

My class "WsDimension":

[DataContract]
public class WsDimension
{
[DataMember]
public XElement DatasRefernecesValues = new XElement("ReferenceValues");
}

(And in the reponse: every element has a list of Xelements ) exemple of one xelement which has a list of other xelement:

1505265.png

And this is my REST service:

[OperationContract]
[WebGet]
List<WsDimension> GetAllDimensionsByXMLFile(string xmlfile);

And into my implementation of the code, I have three FOREACH :

foreach (var dimension in DimensionsList)
{
//..

foreach (var reference in ReferenceList)
{
//..
foreach (var finalCharac in finalCharacsList)

{
// Here adding a List of Xelement for every Xelement
}
}
}


And the response time is between and 10 minutes and 16 minutes,

How to find the issue in the service implementation?Or is their any advice to fix this problem? Thanks,





I have created a WCF REST service to return a List of class "WsDimension",and the reponse file size is maximum 1 MB,

My class "WsDimension":

[DataContract]
public class WsDimension
{
[
DataMember]
public XElement DatasRefernecesValues = new XElement("ReferenceValues");
}


(And in the reponse: every element has a list of Xelements ) exemple of one xelement which has a list of other xelement:


I have created a WCF REST service to return a List of class "WsDimension",and the reponse file size is maximum 1 MB,

My class "WsDimension":

[DataContract]
public class WsDimension
{
[
DataMember]
public XElement DatasRefernecesValues = new XElement("ReferenceValues");
}


(And in the reponse: every element has a list of Xelements ) exemple of one xelement which has a list of other xelement:

Continue reading...
 
Back
Top