2017-02-01 7 views
-1

WCF Webサービスを実装するのは初めてです。私は既にXMLドキュメントからデータを取り出し、その関数が呼び出されたときにデータを返すWCF Webサービスを作成しました。このWCF Webサービスは、自己ホストされています。自己ホスト型WCFサービスからデータを取得するAndroidアプリケーションを作成する

ボタンを押すと、Webサービスの特定の関数を呼び出してデータを取得し、アンドロイドのテキストビューに表示するようなAndroidアプリケーション(SOAPを使用)を作成したいと考えています。

Androidでローカルホストを呼び出す方法がわかりません。

+0

緊急募集に関する[コミュニティの議論](http://meta.stackoverflow.com/q/326569/472495)です。 – halfer

答えて

0
You cannot connect the WCF Service on localhost in Android. 

For Android to be able to consume the WCF Service , the Android device and WCF service should be in same network. 

Once your Android device and WCF service are on same network, You can consume the WCF Service by using the IP Address of system on which WCF Service is hosted. 
関連する問題