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

Problems with VS 2008

When you make a web reference to https://www.e-conomic.com/secure/api1/E ... rvice.asmx in Visual Studio 2008, it will try to download the following WSDL: http://www.e-conomic.com:9080/secure/ap ... .asmx?wsdl which doesn't exists.
If you instead made a service reference to https://www.e-conomic.com/secure/api1/E ... rvice.asmx it will work, but the authentication will fail.

The problem is that Cookies per default isn't allowed in service references, because it isn't the correct way to do it. But if you initialize the service reference like this:

var ws = new ServiceReference1.EconomicWebServiceSoapClient();
((BasicHttpBinding)ws.Endpoint.Binding).AllowCookies = true;

It will work allso without using CookieContainers.
created Jun 2, 2009 by cwe
0% Accept Rate
Q 3 A 7 C 0

Visma e-conomic A/S