Hi,Can you plz confirm the service that you want to access using API has
been deployed as sling service or just a simple java class? because if
you have deployed it as a sling service then the correct way to access
it iscom.adobe.cq.CustomerService custService=
sling.getService(CustomerService.class);sling is implicit object in
scriptlet defined through and you can find reference
in various documentation.if it doesn't work then plz share you service
code.Thanks,Pawan