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
vineesha podugu 7vineesha podugu 7 

Apex soap Callouts-- trailhead module

Create a class called 'ParkLocator' that has a 'country' method that uses the 'ParkService' class and returns an array of available park names for a particular country passed to the web service. Possible country names that can be passed to the web service include Germany, India, Japan and United States.

i have used the ParkLocator.. but i am getting an error that "The Apex class 'ParkLocator' does not appear to be calling the SOAP endpoint."

could any one help me plz....
Best Answer chosen by vineesha podugu 7
JyothsnaJyothsna (Salesforce Developers) 
Hi Vineesha,

Try changing line #3 in ParkLocator to: 
ParkService.ParksImplPort park = new ParkService.ParksImplPort();

Sorry... it's case sensitive.  :(

If you had entered ParkService originally it would have generated this code in this manner. Not sure if it didn't overwrite these classes or something.

Hope this helps you!
Best Regards,
Jyothsna

All Answers

JyothsnaJyothsna (Salesforce Developers) 
Hi Vineesha,

Try changing line #3 in ParkLocator to: 
ParkService.ParksImplPort park = new ParkService.ParksImplPort();

Sorry... it's case sensitive.  :(

If you had entered ParkService originally it would have generated this code in this manner. Not sure if it didn't overwrite these classes or something.

Hope this helps you!
Best Regards,
Jyothsna
This was selected as the best answer
vineesha podugu 7vineesha podugu 7
thanks for the help jyothsna... it went well and challenge has been completed