So I recently had the task of logging in using the SOAP API. I constructed the envelope, and logged in fine with the following:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
<soapenv:Body>
<urn:login>
<username>[email protected]</username>username>
<password>password_token</password>
</urn:login>
</soapenv:Body>
</soapenv:Envelope>
But when I move the username and password nodes around I get an fault saying that my username or password is incorrect.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
<soapenv:Body>
<urn:login>
<password>password_token</password>
<username>[email protected]</username>username>
</urn:login>
</soapenv:Body>
</soapenv:Envelope>
Is it common to enforce the XML structure like this? I used SOAPUI to test this.