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
balaji_sbalaji_s 

Cannot login to Salesforce through Perl

Hi

I downloaded the module Salesforce-0.57 & also WWW-Salesforce-0.082, with installing it into, directly use the modules in the sample script and tring to login.
But it fails.
I don't know what i am missing out.

Could any body please help me.

We i went through the documents on developer.force.com i can see the step for java and .net only.
If any body got links or documents for Perl, will help me great.

Thanks
Balaji
jmarinchakjmarinchak
Have you read this article by Tony Stubblebine? 
 
 
If that does not answer your question, feel free to post more details on the errors that you are seeing.
 
Jeff
balaji_sbalaji_s
Hi

We tried with the same procedure as in the document but it didn't worked out.

we changed
https://www.salesforce.com/services/Soap/c/11.1 to http://www.salesforce.com/services/Soap/c/11.1 (removed https to http)
it got login but again it hangs up at get_tables (on the function get_session_header).

also changed urn:partner.soap.sforce.com to urn:enterprise.soap.sforce.com

Thanks
jmarinchakjmarinchak

Would you mind posting your code?  (Or a portion of your code?)

Jeff

PerlPerl
Hi ,
 
  I am a newbie to salesforce . I am using the same procedure mentioned in the  oreily link provided by you , the code is not
able to login to the salesforce site . we are getting the following error
 
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
But we are able to connec to the salesforce site using the same username and password and also we are able to ping the salesforce site from the unix machine.
 
Is there any steps i should follow before coding , i used the steps mentioned in Link:   , Do i need to put any wsdl file in the perl path , if yes can you tell me where should i place the wsdl file and the steps to connect to salesforce
 
Thanks,
Prasanna
P.S : I have created a separate message :"Not able to connect to Saleforce from Perl using www::salesforce "
gmacgmac
I had the same problem connecting to the web service.
$ENV{HTTPS_PROXY} = 'xxx.xx.xx.xxx:8080';
$ENV{HTTP_PROXY} = 'xxx.xxx.xxx.xxx:8080';

Add those lines to your code or save the value in your environment variables,  if you are behind a proxy server.

'HTTPS_PROXY' is case sensitive in *nix.

Hope this helps.
PerlPerl

 

Sorry for asking such a dumb question

What should we give for the site ('xxx.xx.xx.xxx')

$ENV{HTTPS_PROXY} = 'xxx.xx.xx.xxx:8080';
$ENV{HTTP_PROXY} = 'xxx.xxx.xxx.xxx:8080';

will it be our organization ip or the http://salesforce.com ip

 

Thanks,

Prasanna