GAEクラウドでホストされているGAEアプリケーションでGoogleサービスを呼び出そうとしています。
private String doPost(String URL) throws ClientProtocolException, IOException {
// Params:
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("accountType", "HOSTED_OR_GOOGLE"));
params.add(new BasicNameValuePair("Email", _DEFAULT_USER));
params.add(new BasicNameValuePair("Passwd", _DEFAULT_PASS));
params.add(new BasicNameValuePair("service", "ah"));
// Call
HttpClient httpClient = new DefaultHttpClient();
HttpPost post = new HttpPost(URL); // URL:
// https://www.google.com/accounts/ClientLogin
post.setEntity(new UrlEncodedFormEntity(p_params, HTTP.UTF_8));
post.getParams().setBooleanParameter(
CoreProtocolPNames.USE_EXPECT_CONTINUE, false);
HttpResponse response = httpClient.execute(post);
return _ProcessResponse(response); // Process...
}
実行は次をスローします: com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 'remote_socket' or call 'Resolve()' was not found
。
何か案は?私は完全に迷子になっています...