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
stangstang 

Perl API Login - API V.6 works, V.7 fails

My perl code login works fine as long as I specify any Salesforce version up to version 6.  However if I specify version 7 or greater, I get the error "The userid/password combination used is not valid".    In other words, login works if I specify this:        
   $request = new HTTP::Request ('POST', 'https://na1.salesforce.com/services/Soap/c/6.0');
while login fails if I specify this:
   $request = new HTTP::Request ('POST', 'https://na1.salesforce.com/services/Soap/c/7.0');

Login XML:

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
    <soapenv:Body>
        <urn:login>
            <urn:username>$USERNAME</urn:username>
            <urnassword>$PASSWORD</urnassword>
        </urn:login>
    </soapenv:Body>
</soapenv:Envelope>

Header info:

    $request->header('User-Agent' => 'Mozilla/4.0');
    $request->header('Content_Type' => 'text/xml; charset=utf-8');
    $request->header('Host' => 'na1.salesforce.com');
    $request->header('SOAPAction' => "");
    $request->header('Expect' => "100-continue");

Has anyone seen this, and if so, how was it solved?

Thanks
PerlPerl
Hi
 I am newbie to salesforce, We are trying to connect to salesforce from PERL , we did the coding but we are getting the following error when executing the code
"500 Server closed connection without sending any data back at //pkgs/linux/intel/perl/5.8.8.rhas3.x86/lib/site_perl/5.8.8/WWW/Salesforce.pm line 469"
There is no issue with the user id and password we used , we are able to login to the portal and we are able to ping the site from the unix box.If you have already connected to the portal could you tell me the steps you followed to connect .
Do we need to  use the wsdl file for PERL also , if yes where should i keep the file
Thanks,
Prasanna