以下のコードは、Apex を使用して Force.com で RESTful サービスを作成しました。
@RestResource(urlMapping='/helloWorld/*')
global with sharing class RestWebservice {
@HttpGet
global static String helloWorld(){
return 'HelloWorld';
}
}
以下の URL を使用して RESTful サービスにアクセスしようとしています: https://ap1.salesforce.com/services/apexrest/helloWorld/
応答して、私は得ています:
HTTP/1.1 404 Not Found
Date:Thu, 18 Jul 2013 07:35:44 GMT
Content-Length:96
Content-Type:application/json;charset=UTF-8
[
{
"message": "Could not find a match for URL /helloWorld/",
"errorCode": "NOT_FOUND"
}
]
以下は私のクラスのスナップショットです:
この問題を解決するにはどうすればよいですか? どんな助けでも大歓迎です。