AnsweredAssumed Answered

Problem in  session create for Sugar CRM 6.5.21

Question asked by surajitkundu surajitkundu on Oct 5, 2015
Latest reply on Oct 8, 2015 by surajitkundu surajitkundu
Hi Expert ,

   I want to create session in Sugar CRM 6.5. I am trying with below details in SOAP UI but it showing an error  

 Request Format : 

   <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:sug="http://www.sugarcrm.com/sugarcrm"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">;   <soapenv:Header/>
   <soapenv:Body>
      <sug:login soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">;
         <user_auth xsi:type="sug:user_auth">
            <!--You may enter the following 2 items in any order-->
            <user_name xsi:type="xsd:string">admin</user_name>
            <password xsi:type="xsd:string">abcd.1234</password>
         </user_auth>
         <application_name xsi:type="xsd:string">SoapTest</application_name>
         <name_value_list xsi:type="sug:name_value_list" soapenc:arrayType="sug:name_value[]"/>
      </sug:login>
   </soapenv:Body>
</soapenv:Envelope>

Error Response : 

   <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">;   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode xsi:type="xsd:int">10</faultcode>
         <faultactor xsi:type="xsd:string"/>
         <faultstring xsi:type="xsd:string">Invalid Login</faultstring>
         <detail xsi:type="xsd:string">Login attempt failed please check the username and password</detail>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Regards 
Surajit

Outcomes