I'm developing a report from data being served from a web service in SAP (through PI). I used the wsdl.exe to create a c# class and a wrapper and everything is working fine.
The problem is the performance... it takes about 3x the performance of an console application just to move the code inside a Visual Web Part.
I isolated the code to just this...
DateTime timeReq = DateTime.Now;
response t = werbService.method(req);
double timeTaken = DateTime.Now.Subtract(timeReq).TotalMilliseconds;
It takes 60 seconds in a Visual Web Part and the same call in a console application takes 20s.
Since i dont have a packet sniffer i'm not sure why is taking so much time to execute the same code in sharepoint, am i missing some configuration? Anyone have face this kind of behaviour before?
View Complete Post