On Wednesday Jan. 8th 06:00 e-conomic switched from a single HTTP session cookie (ASP.NET_SessionId) to three (3) cookies: SS, SC and SSID.

We recommend that API consumers always return all HTTP headers that are returned in response on each request.

For some integrations with manual cookie handling where switching to automatically reflecting cookies isn’t a possibility, the new cookies that must be included are: SSID, SC and SS. All three cookies must be included to authenticate.

cURL example of subsequent calls using the cookies set in the response to a successful connect:

curl -v -H "Content-Type:text/xml" -H "X-EconomicAppIdentifier: \"My cURL test\"" --cookie "SSID=3fd6dc7142814d5393a878e6957f23aa;SS=VfzjkhBsyxBLKyLsA%2fU%2fPqFtuPAhWxqkcasIEZWrwJ4%3d-QAEAAEVz1Y9D4F5z6MBPapZaIW3WSDOW96tluLs6lXsmzZbZ9HaZnoSP1B2J72x1SkwpMW99Ch13ljQAF4%2bCmTA3C%2bP4JtDpT0K4Ja1Egfhr%2bxNBouWJO9DZPidWCzzNErgGS7lUZPQYEC06z8OwIY7UXaUZKUIcBIXvmRwsNwGVe%2b0WlJucDoOXKQ0eOuu0OcmDskK4kEnrrCzktm07dzFNwDbCCtXpaJ3z0DClB4aLa23vLhlVxqfAIGN2m76pDi8ML5wJtye9L1oJ5xRDYV5kvpW6gk3hkCwnvIq7L%2f%2fsdwQfQ1xznr9wySIFvIIVwI6WNcQJy9Lrf7BhdjJWXPbnfNMkv%2f%2bTxxJHEwmb3HCwFyo0pA43X7SruE658DiCMLBNuXWOOETIV0fro%2fzonNZncO%2bMmzCJnD8bCFsXwH92wnJeyp8%2fH%2fY61Eg%3d;SC=O1fFZ%2bxWvVED2bHER6cGWMfQOoFx26XYpeVotL42MCU%3d-IAAAAHHXnyh3Q503VsRqf%2bVFBbAuDBe5sjSX6uUuG6Grnymzyp8%2fH%2fY61Eg%3d" --header "Content-Type:text/xml" --data "<?xml version=\"1.0\" encoding=\"UTF-8\"?><SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns0=\"http://e-conomic.com\" xmlns:ns1=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://ww.w3.org/2001/XMLSchema-instance\"> <SOAP-ENV:Header/> <ns1:Body> <ns0:Product_GetAll/> </ns1:Body></SOAP-ENV:Envelope>" --insecure "https://api.e-conomic.com/secure/api1/EconomicWebService.asmx"

 

For users of the Java SOAP framework Axis 1.4 you should be aware that there is a bug in Axis which overwrites the “SSID” cookie with the value of the “SS” cookie due to a faulty check on the id.
Our good friends at Minuba have created an info page about the Axis issue, including examples: https://minuba.dk/opdatering-e-conomic-medfoerte-problemer-integrationer/