API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

40 second delay when instantiating EconomicWebService

0
I am experiencing a 40 second delay when instantiating the EconomicWebService object like this:

 var client = new EconomicWebService { CookieContainer = new CookieContainer() };

I have created a proxy via the wsdl and compiled it into a dll, which I am referencing (as mentioned in http://e-conomic.github.io/eco-api-sdk-ref-docs/)

Other than that, everything works fine, and I am able to connect and create customers without any problems.

Did I miss something obvious?
created Aug 26, 2014 by mbie
0% Accept Rate
Q 1 A 0 C 0

2 Answers

0

I actually found a way to handle it

Set the Generate serialization assembly to On instead of the default Auto


Thanks

Jan

answered Oct 7, 2015 by janhjordie
edited Oct 7, 2015 by janhjordie
0
Typically when this pops up it is due to the wsdl being downloaded on each connect.

By caching the wsdl in your solution you won't have to wait for the several MB large wsdl to load each time.
answered Oct 7, 2015 by olej
Visma e-conomic A/S
...