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
URVASHIURVASHI 

Custom webservice setting remote site URL

hi,

Can someone please help.

I am new to webservice can someone help?

I have created a custom webservice in asp.net

its link is for example:

http://localhost:8732/Design_Time_Addresses/Calc/Service1/

 

i wana add this link to my

Security controls-->remote site settings

as I am using the wsdl generated from the page.

 

how do i specify the remote site url which should not give me error while making callouts for the webservice.

 

 

Thanks.

 

Best Answer chosen by Admin (Salesforce Developers) 
Avidev9Avidev9

Well URVASHI you are making a basic mistake!

SF is cloud computing platform and its servers are located in the cloud/internet, you cannot access a local webservice using SF.

 

"http://localhost:8732/Design_Time_Addresses/Calc/Service1/" >> This address seems to be a local webservice. To call/access the same from SF you need to Expose the same to the INTERNET.

All Answers

Avidev9Avidev9

Well URVASHI you are making a basic mistake!

SF is cloud computing platform and its servers are located in the cloud/internet, you cannot access a local webservice using SF.

 

"http://localhost:8732/Design_Time_Addresses/Calc/Service1/" >> This address seems to be a local webservice. To call/access the same from SF you need to Expose the same to the INTERNET.

This was selected as the best answer
URVASHIURVASHI

Yea ur rite.

I understud my mistake.

Thanks for the reply. :)