2011-12-07 17 views

答えて

2

私はtruliaが何であるか知りません。SOAP Webサービスを使用する場合は、KSOAP2を使用する必要があります。 Googleとそれを使用する方法チュートリアルの多くを見つけるでしょう。

多くのpepolが説明されています。

あなたのためのKSOAP2はありませんか? AndroidクライアントのHTTPClientを確認します。ここには良いものがあります。http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/

今、Googleはあなたの答えを見つけます! GL!

+0

おかげ.. – Jalp

+0

ウル歓迎をWebサービスに接続できることを利用したサンプルコードです!その問題を解決する場合は、答えとしてマークすることを忘れないでください! ;) –

0

HttpClientを使用してwebservice/webpage/remote-dataに接続できます。

は、ここでは、Androidアプリケーションからのご指導のための

try { 
    HttpClient client = new DefaultHttpClient(); 
    HttpGet method = new HttpGet(Url); 
    HttpResponse response = client.execute(method); 
    StatusLine status = response.getStatusLine(); 
    if (status.getStatusCode() == HttpStatus.SC_OK) { 
     ResponseHandler<String> responseHandler = new BasicResponseHandler(); 
     String responseBody = responseHandler.handleResponse(response); 
     return responseBody; 
    } 
    return null; 

} catch (Exception e) { 
    // TODO Auto-generated catch block 
    e.printStackTrace(); 
    return null; 
} 
関連する問題