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
jesus.cantero.chatt1.3952321544005415E12jesus.cantero.chatt1.3952321544005415E12 

class with keyprefix rest service stops working

I have one class that implements Rest webservice using @RestResource and @HttpPost. I am accesing to this webservice using a Site and the public profile asociated has permission to this apex class. This webservice is public and is used for testing.

@RestResource(urlMapping='/ContactTrialPost/*') global class WS_ContactTrialPost {         

     @HttpPost     
     webservice static void updateNewClient(){
        response.responseBody = Blob.valueOf("{\"test\" : \"test_value\")";
    }
}

This webservice was working during more than one month, but when I try to create an package to use in other organization I set nameprefix for all my class. After that the webservice isn't working again.

Any idea about the reason of this issue?

Thanks for your help!!!
jesus.cantero.chatt1.3952321544005415E12jesus.cantero.chatt1.3952321544005415E12
It's solved, I have used the the Nameprefix that the clase belong in the url of the service. For example: namespace test: /services/apexrest/test/ContactTrialPost.

Thank to my partner Pablo. He solve my problem!!!!