Okay, I could fix it. If anybody should have the same problem, here is my solution:
My sharepoint was embedded in an intranetsite. My mistake was that I used the whole URL for a RPC. But you simply have to copy the URL of your intranetsite - without your sharepoint site and sharepoint subsite.