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
PerlPerl 

Problem while getting the session header - PERL

HI ,
  We are using www::salesforce module to connect to salesforce , We successfully connected to
salesforce after changing the https:// to http://  in the $SF_PROXY
But now our program aborts saying
 
500 Connect failed: connect: Connection refused; Connection refused at //pkgs/linux/intel/perlmods_intcrm/5.8.8.rhas3.x86/lib/site_perl//5.8.8/WWW/Salesforce.pm line 673
(I have attached the trace at the end)
this line number corresponds to get_Seession_header .
 
the code in salesforce.pm at the error line #673
my $r = $client->call(
            $method => SOAP::Data->prefix( $SF_PREFIX )
                ->name( 'searchString' => $in{'searchString'} )
                ->type( 'xsd:string' ),
            $self->get_session_header()
 
Could anyone  please help me to fix this issue
 
THanks,
Prasanna
Please find the trace:

SOAP::Transport::new: ()

SOAP::Serializer::new: ()

SOAP::Deserializer::new: ()

SOAP::Parser::new: ()

SOAP::Lite::new: ()

SOAP::Lite::new: ()

SOAP::Deserializer::new: ()

SOAP::Parser::new: ()

SOAP::Deserializer::DESTROY: ()

SOAP::Serializer::new: ()

SOAP::Transport::HTTP::Client::new: ()

SOAP::Serializer::DESTROY: ()

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Lite::call: ()

SOAP::Serializer::envelope: ()

SOAP::Serializer::envelope: login SOAP::Data=HASH(0x83939a8) SOAP::Data=HASH(0x835cbbc)

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x84b522c)

SOAP::Transport::HTTP::Client::send_receive: POST http://www.salesforce.com/services/Soap/u/8.0 HTTP/1.1

Accept: text/xml

Accept: multipart/*

Accept: application/soap

Content-Length: 538

Content-Type: text/xml; charset=utf-8

SOAPAction: ""

<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><login xmlns="urn:partner.soap.sforce.com"><username xsi:type="xsd:string">"username"</username><password xsi:type="xsd:string">"password"</password></login></soap:Body></soap:Envelope>

SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x879f024)

SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK

Date: Tue, 23 Sep 2008 07:35:29 GMT

Server:

Content-Length: 1305

Content-Type: text/xml; charset=utf-8

Client-Date: Tue, 23 Sep 2008 07:35:29 GMT

Client-Peer: 204.14.234.33:80

Client-Response-Num: 1

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><loginResponse><result><passwordExpired>false</passwordExpired><serverUrl>https://eu0-api.salesforce.com/services/Soap/u/8.0/440400D200000000CXT</serverUrl><sessionId>440400D200000000CXT!AREAQLmu82GqZ9K5KSLFUBa2S83PMblXGEbU6..vCDzroi6GTJ9expfmJ0YsOVHdpEKFEJUqTdxoBhSYZ5rDpb1Mp08Acumk</sessionId><userId>00520000000nkSBAAY</userId><userInfo><accessibilityMode>false</accessibilityMode><currencySymbol>$</currencySymbol><licenseType>Salesforce</licenseType><organizationId>00D200000000CXTEA2</organizationId><organizationMultiCurrency>false</organizationMultiCurrency><organizationName>E*TRADE</organizationName><profileId>00e20000000hFVLAA2</profileId><roleId xsi:nil="true"/><userDefaultCurrencyIsoCode xsi:nil="true"/><userEmail>"username"</userEmail><userFullName>US APAC</userFullName><userId>00520000000nkSBAAY</userId><userLanguage>en_US</userLanguage><userLocale>en_GB</userLocale><userName>"username"</userName><userTimeZone>Europe/London</userTimeZone><userUiSkin>Theme2</userUiSkin></userInfo></result></loginResponse></soapenv:Body></soapenv:Envelope>

SOAP::Deserializer::deserialize: ()

SOAP::Parser::decode: ()

SOAP::SOM::new: ()

SOAP::SOM::DESTROY: ()

SOAP::Lite::DESTROY: ()

SOAP::Deserializer::DESTROY: ()

SOAP::Parser::DESTROY: ()

SOAP::Transport::DESTROY: ()

SOAP::Transport::HTTP::Client::DESTROY: ()

SOAP::Serializer::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

aiya connected

SOAP::Lite::new: ()

SOAP::Deserializer::new: ()

SOAP::Parser::new: ()

SOAP::Deserializer::DESTROY: ()

SOAP::Serializer::new: ()

SOAP::Transport::HTTP::Client::new: ()

SOAP::Serializer::DESTROY: ()

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Lite::call: ()

SOAP::Serializer::envelope: ()

SOAP::Data::new: ()

SOAP::Serializer::envelope: SOAP::Data=HASH(0x835cbd4) SOAP::Data=HASH(0x835cd00)

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Data::new: ()

SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x8874b78)

SOAP::Transport::HTTP::Client::send_receive: POST https://eu0-api.salesforce.com/services/Soap/u/8.0/440400D200000000CXT HTTP/1.1

Accept: text/xml

Accept: multipart/*

Accept: application/soap

Content-Length: 809

Content-Type: text/xml; charset=utf-8

SOAPAction: ""

<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><sforce:SessionHeader xmlns:sforce="urn:partner.soap.sforce.com"><sessionId xsi:type="xsd:string">440400D200000000CXT!AREAQLmu82GqZ9K5KSLFUBa2S83PMblXGEbU6..vCDzroi6GTJ9expfmJ0YsOVHdpEKFEJUqTdxoBhSYZ5rDpb1Mp08Acumk</sessionId></sforce:SessionHeader></soap:Header><soap:Body><sforce:search xmlns:sforce="urn:partner.soap.sforce.com"><sforce:searchString xsi:type="xsd:string">SELECT Id,Name FROM Account</sforce:searchString></sforce:search></soap:Body></soap:Envelope>

SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x886fab0)

SOAP::Transport::HTTP::Client::send_receive: 500 Connect failed: connect: Connection refused; Connection refused

Content-Type: text/plain

Client-Date: Tue, 23 Sep 2008 07:35:30 GMT

Client-Warning: Internal response

500 Connect failed: connect: Connection refused; Connection refused

SOAP::Deserializer::deserialize: ()

SOAP::Parser::decode: ()

500 Connect failed: connect: Connection refused; Connection refused at /etrade/pkgs/linux/intel/perlmods_intcrm/5.8.8.rhas3.x86/lib/site_perl//5.8.8/WWW/Salesforce.pm line 673

SOAP::Lite::DESTROY: ()

SOAP::Deserializer::DESTROY: ()

SOAP::Parser::DESTROY: ()

SOAP::Serializer::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Transport::DESTROY: ()

SOAP::Transport::HTTP::Client::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Data::DESTROY: ()

SOAP::Parser::DESTROY: ()

SOAP::Transport::DESTROY: ()

SOAP::Serializer::DESTROY: ()

SOAP::Deserializer::DESTROY: ()

SOAP::Lite::DESTROY: ()

PerlPerl
Could anyone please help me to solve this isse?
 
To get the session header , This particular piece use the SOAP::Header->name , it is at this point the code stops.
I am clueless