Invalid child element when logging in

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

Invalid child element when logging in

Postby nibbo » Sun Sep 05, 2010 3:27 pm

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:
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?
-
nibbo
 
Posts: 1
Joined: Sun Sep 05, 2010 1:56 pm

Re: Invalid child element when logging in

Postby joerichsen » Sun Oct 31, 2010 11:12 pm

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
-
joerichsen
 
Posts: 1
Joined: Sun Oct 31, 2010 11:08 pm


Return to SOAP



cron