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

Web service callout failed: Unable to find Apex package

I added a Namespace Prefix this morning. Since I've done that, I get this error when using my existing integration:

System.CalloutException: Web service callout failed: Unable to find Apex package for LFI:ebService

Class.LFI.LFIWebService.LFIWebServiceSoap.LFSearch: line 88, column 1 Class.LFI.LFIPageBlockContact.callLFI: line 75, column 1 Class.LFI.LFIPageBlockContact.OnLoadController: line 34, column 1

I've verified that the web service is working, and it was working fine before adding a Namespace Prefix. Any help in resolving is greatly appreciated!


Best Answer chosen by Admin (Salesforce Developers) 

I was able to resolve this issue by importing my wsdl again, however I changed the Apex Class Name to something different. Then I changed the reference in my apex classes that call it to the new Apex Class Name, and VIOLA!, my web service callout is working again! Not sure why changing the class name worked, but it did!


Hope this helps someone else!