SalesForce does not behave well. Their WSDL expects the following SOAP Header
However, per this forum thread http://boards.developerforce.com/t5/General-Development/INVALID-LOGIN/td-p/191765 We have to remove it to make it work. When I make a call from SOAP UI, I can correctly call the login call:
How do we do this in the Agent? The Soap request shows that we are creating this header, but there is no header in the job definition.
<?xml version="1.0" encoding="UTF-8"?>