Problem logging in...

Forum for discussing SOAP, and how it is used in the E-conomic API

Problem logging in...

Postby peterhartwig » Wed Feb 03, 2010 12:25 pm

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:agreementNumber>232151</n1:agreementNumber>
<n1:userName>pet</n1:userName>
<n1:password>v2xig8pt</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/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Economic.Api.Exceptions.AuthorizationException(E02000): Access denied. {id=797135157}</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>

SOAP::FaultError: Economic.Api.Exceptions.AuthorizationException(E02000): Access denied. {id=797135157}
from #<SOAP::Mapping::Object:0x10488b2b0>
-
peterhartwig
 
Posts: 2
Joined: Wed Feb 03, 2010 12:22 pm

Re: Problem logging in...

Postby Christian Estrup » Wed Feb 03, 2010 7:48 pm

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
Christian Estrup
Chief Architect

Image
Online accounting
User avatar
Christian Estrup
 
Posts: 246
Joined: Tue Jun 09, 2009 6:37 pm

Re: Problem logging in...

Postby peterhartwig » Thu Feb 04, 2010 10:05 am

Brilliant! Thanks!
-
peterhartwig
 
Posts: 2
Joined: Wed Feb 03, 2010 12:22 pm


Return to SOAP