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

Problem logging in...

0
Hi,

I'm trying to log into my demo account using the soap interface via rails... But I get this error, which does not make much sense to me, as the parameters are correct. Could anyone help me out?

Wire dump:

= Request

POST /secure/api1/EconomicWebservice.asmx HTTP/1.1
SOAPAction: http://e-conomic.com/Connect
Content-Type: text/xml; charset=utf-8
User-Agent: SOAP4R/1.5.5 (httpclient.rb/280, ruby 1.8.7 (2008-08-11) [universal-darwin10.0])
Date: Wed, 03 Feb 2010 10:09:50 GMT
Content-Length: 458
Host: www.e-conomic.com

?xml version=1.0 encoding=utf-8 ?
env:Envelope xmlns:xsd=http://www.w3.org/2001/XMLSchema
    xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
    xmlns:env=http://schemas.xmlsoap.org/soap/envelope/
  env:Body
    n1:Connect xmlns:n1=http://e-conomic.com
      n1:agreementNumber232151/n1:agreementNumber
      n1:userNamepet/n1:userName
      n1:passwordv2xig8pt/n1:password
    /n1:Connect
  /env:Body
/env:Envelope

= Response

HTTP/1.1 500 Internal Server Error
Date: Wed, 03 Feb 2010 10:08:54 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Content-Length: 427

?xml version=1.0 encoding=utf-8?soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchemasoap:Bodysoap:Faultfaultcodesoap:Client/faultcodefaultstringEconomic.Api.Exceptions.AuthorizationException(E02000): Access denied. {id=797135157}/faultstringdetail //soap:Fault/soap:Body/soap:Envelope

SOAP::FaultError: Economic.Api.Exceptions.AuthorizationException(E02000): Access denied. {id=797135157}
    from #SOAP::Mapping::Object:0x10488b2b0
created Feb 3, 2010 by peterhartwig
0% Accept Rate
Q 1 A 1 C 0

2 Answers

0
Hi Peter,

You need to register the free API add-on module to... well, use the API

You can do this in the e-conomic application under Settings - Add-on modules.


Best regards,

Christian Estrup
e-conomic
answered Feb 3, 2010 by Christian Estrup
0
Brilliant! Thanks!
answered Feb 4, 2010 by peterhartwig
Visma e-conomic A/S
...