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
heiriticheiritic 

can apex web service call from url ?

Hi everyone,

I don't know if it's possible or not. I know we can create apex class that used as web service and get the wsdl using generate wsdl from salesforce setup. I want to know if the apex class that I created as web service can be call from url ? Is it possible to call from outside salesforce instance ? any suggestions would be great

regards,
edwin
Br1Br1
edwin:

Off course you can call the webservices externally! , take a look at : http://wiki.apexdevnet.com/index.php/Web_Services_API .

You can integrate the api with a variety of languages such PHP, Java, Flex ...

Br1.

heiriticheiritic
Sorry for my late reply Br1.

I mean calling the apex web service created from salesforce from URL. Let's say I want to set Outbound Message in salesforce to apex class web service. Is this what u mean Br1 ?

regards,
edwin
heiriticheiritic
I have figured it out. I can set outbound message calling my apex class web service. But it can only be used in my salesforce instance only. Can I call the apex class web service URL outside my salesforce instance ?

regards,
edwin
SameerC77SameerC77

Hi I Tried invoking Apex web service by sending an out bound message , but I am geetiing this error :

INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session.

Please let me know if you know the solution.

 

Regards

Sameer