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
Bhushan LaddadBhushan Laddad 

503 service unavailable error when try to connect to connect to https://login.salesforce.com/services/Soap/c/13.0

Hi All,
I am able to succesfully connect to below URL using SOAP::Lite
http://login.salesforce.com/services/Soap/c/13.0
but I get 503 service unavailable error when I try to connect to https://login.salesforce.com/services/Soap/c/13.0 .
What can be the reason?


Thanks
Bhushan
pconpcon
Can you try a newer version of the api.  The most recent version is 35.0 and 13.0 is really really outdated.
Bhushan LaddadBhushan Laddad
Hi,
I am getting connection timout error when trying to connect to 'https://login.salesforce.com/services/Soap/c/35.0' using SOAP::Lite.
While I can connect using http protocol to same URL i.e. 'http://login.salesforce.com/services/Soap/c/35.0'
Below is my SOAP::Lite Client settings

my $client = SOAP::Lite
            ->readable( $readable )
            ->deserializer( Salesforce::Deserializer->new )
            ->serializer( Salesforce::Serializer->new )
            ->on_action( sub { return '""' } )
            ->uri( $SF_URI )
            ->multirefinplace(1)
            ->proxy( 'https://login.salesforce.com/services/Soap/c/35.0', proxy => ['https' => $ENV{HTTP_proxy} ] );
pconpcon
Is there any reason you are using SOAP::Lite instead of WWW:Salesforce?
Bhushan LaddadBhushan Laddad
Actually its very old code , which is working very fine http://login.salesforce.com/ ,
pconpcon
Given that this is a custom perl application that is interacting with the SOAP interface directly I'm going to try to help the best I can but it's going to be tough.  Can you provide me with the contents of your $SF_URI variable?  If you can provide a small reproducer for this (full code) that would be helpful.

NOTE: When adding code please use the "Add a code sample" button (icon <>) to increase readability and make it easier to reference.
sony sonusony sonu
hi, pcon and
Bhushan Laddad, is your problem solved, i have a same problem please let me know..
hi !!!!!! nice to meet you ....i need a help , that 
is it possible to make rest callouts from salesforce to the external application , which is hosted locally i.e local server (private) not published yet ...actually i had used rest callout and given the endpoint url of external application and passed keyvalue in headers ,which is hosted in privately, iam getting an error 503 unavailable, 
one of our network team member is asking to provide the unique portnumber, we have sugested and they had enabled 80,443 as default, bt iam gettting the same errror ..do you have any solution, it will be appreciated

the end point url is correct ...bt if accessing from salesfroce it is showing an error 503 service un available... may i know y?? if url is in private mode is it is not used for callouts??
i had posted in developer community.. i had not got the solution still...thanks in advance....

the external application url is not hosted publicly , ,,it is in local server...we need to connect to it and make a callout and get the response
pconpcon
If you can link to your original post, I can comment there and continue the conversation there instead of trying to threadjack this post.

You will need to have your server routable from the internet and depending on how it's made available will determine how you access it.
sony sonusony sonu
ha sure pcon...
https://developer.salesforce.com/forums/ForumsMain?id=9060G0000005bBb.thanks for ur reply ..
sony sonusony sonu
hi pcon,, do you have skype id or mail id .. to continue this conversation