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

Invalid child element when logging in

0
Hello

I am doing some experiments with the e-conomic API from ruby using the savon library. I get an error when I try to connect.

Economic.Api.Exceptions.SchemaException(E00500): The element 'Connect' in namespace 'http://e-conomic.com' has invalid child element 'agreementNumber'. List of possible elements expected: 'agreementNumber' in namespace 'http://e-conomic.com'. {id=1044609933}

Which does not make much sense to me.

Here is the xml from the request:

?xml version=10 encoding=UTF-8?
envEnvelope xmlnswsdl=http//e-conomiccom xmlnsenv=http//schemasxmlsoaporg/soap/envelope/
    envBody
        wsdlConnect
            agreementNumbermy_agreement_number/agreementNumber
            userNamemy_username/userName
            passwordsecret/password
        /wsdlConnect
    /envBody
/envEnvelope


Any ideas?
created Sep 5, 2010 by nibbo
0% Accept Rate
Q 1 A 0 C 0

1 Answer

0
Hi,

I think you need to prefix agreementNumber, userName and password with wsdl in order for this to work.

Tonight I created an example of how to login and print the name and address using Ruby and Savon's eight branch.

I you're interested you could take a look here:

http://gist.github.com/657153

/Jørgen
--
erichsen.net
+4529728240
answered Oct 31, 2010 by joerichsen
Visma e-conomic A/S
...