function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Scott BScott B 

Login call returns loginresponse, not loginresult?

I am confused.  All of your sample code shows the login call returning a LoginResult object.  However, when I gen my enterprise.wsdl, the login call returns a LoginResponse, which contains a LoginResult.

Did something change that is undocumented?  I cant find any reference to this being the case anywhere, but my wsdl login operation contains:

       <operation name="login">
            <documentation>Login to the Salesforce.com SOAP Api.</documentation>
            <input  message="tns:loginRequest" />
            <output message="tns:loginResponse" />
            <fault  message="tns:LoginFault" name="LoginFault"/>
            <fault  message="tns:UnexpectedErrorFault" name="UnexpectedErrorFault"/>
        </operation>

I am using the standard axis WSDL2Java generator to gen out my proxy classes.

 

DevAngelDevAngel

Hi Steve B,

I believe that wsdl2java does a downcasting of the response to a result. 

Not to worry, your wsdl is well formed and "like" others.

There is also a loginRequest, but it is not something you can instantiate.

Here is the loginResponse:

<element name="loginResponse">
 <complexType>
  <sequence>
   <element name="result" type="tns:LoginResult" />
  </sequence>
 </complexType>
</element>