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
Nayanjyoti BaishyaNayanjyoti Baishya 

Executing the 'country' method on 'ParkLocator' failed. Make sure the method exists with the name 'country', is public and static, accepts a String, and returns an array of Strings from the web service.

I am getting this error in my trailhead Integration service.
SwethaSwetha (Salesforce Developers) 
HI Nayanjyoti,

We have a separate Trailhead team who can help you with these issues. Please use the below link to reach out to them so that one of the Engineers will get in touch with you.
Support: https://trailhead.salesforce.com/en/help?support=home

Please mark this answer as best if it helps so that others facing same issue will find it useful.Thanks
Giritharakannan DevarajGiritharakannan Devaraj

Hi Nayanjyoti,

I have also faced the same issue while doing this challenge and I have found the solution where we missed.

ANS : So the solution is need to setup remote site settings which mentioned in UNIT 1 on this badge and do the UNIT 3 exercises. This is the reason behind this issue..

Its work for you, Please mark as best solution.

Thanks in Advance.

Mohit Tyagi SFDMohit Tyagi SFD
Let me give you a simplified solution here:
1. In setup type in > Remote Site Settings
2. Click on New Remote Site Button.
3. Put Remote Site Name as per your ease.
4. Put this url (https://th-apex-soap-service.herokuapp.com) in the Remote Site Url field.
5. Click Save.

This will resolve the issue for this perticular problem.
Patrick Kelly 118Patrick Kelly 118
I experienced a similar issue and verified that  I set up my "Remote Site Settings" correctly.   
I then ran the following debug code which returned this related error result: 
DEBUG CODE 
System.debug(result); 
ERROR RESULT 
"System.CalloutException: Web service callout failed: Unable to find Apex package for :parksServices" 
 
Now I thought I changed all references to "parksServices" after running the wsdl2apex  (in my case to "ParkService" per the Challenge Instructions) , but I missed these two (2) references below: 
1)  private String[] ns_map_type_info = new String[]{'http://parks.services/', 'parksServices'}; 
2) 'parksServices.byCountryResponse'}  
 
Once these references were updated in the "ParkService" wsdl2apex Class (and reran All Tests), the Challenge was Successful.  
 
Hope this is helpful to others as well.  
 
-Patrick