我在Force.com上使用Apex在下面創建了RESTful服務,這是我的代碼。無法訪問使用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"
}
]
下面是我班的快照:
我該如何解決這個問題?任何幫助表示讚賞。
我有一個類似的問題。我無法讓你的世界應用程序工作。 – edgartheunready