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:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:wsdl="http://e-conomic.com" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<wsdl:Connect>
<agreementNumber>my_agreement_number</agreementNumber>
<userName>my_username</userName>
<password>secret</password>
</wsdl:Connect>
</env:Body>
</env:Envelope>
Any ideas?

