I resolved this issue in the server side, so when I call the web service I add an attribute with the name of the callback function I want to catch. and the web service must return a response like this FUNCTION_NAME({JSON_STRUCTURE})
.
So As I mentioned in the question, when you make a request. Put an attribute to be recognise by the WebService and to return it in response . For example, If I want to get the list of contacts, I do like this :
http://example.com/getContacts?callbackName=getcontactsCallback
the response must be like this:getcontactsCallback({name:john , job:developer})
and the same name of callback must be indicated in this attribute for the Ajax request :
jsonpCallback: 'localJsonpCallback',