You need to sign in to do that
Don't have an account?
![Bhupathi Yadav Bhupathi Yadav](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Getting the following error when i am saving the apex class
Hi ,
I am getting the following compile error when saving the apex class
Compile Error: Invalid type: parkService.parksImplPort at line 3 column 1
And find below code:
public class ParkLocator{
public static String[] country(String country){
parkService.parksImplPort park= new parkService.parksImplPort();
String[] parksname = park.byCountry(country);
return parksname;
}
}
![User-added image](/forums/servlet/rtaImage?eid=9062I000000IG27&feoid=Body&refid=0EM2I000000AK7s)
I am getting the following compile error when saving the apex class
Compile Error: Invalid type: parkService.parksImplPort at line 3 column 1
And find below code:
public class ParkLocator{
public static String[] country(String country){
parkService.parksImplPort park= new parkService.parksImplPort();
String[] parksname = park.byCountry(country);
return parksname;
}
}
Is parkservice another class? If yes, can you post that.
generally you create a apex object like this: https://www.tutorialspoint.com/apex/apex_objects.htm
Thx