Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There are many tutorials for this .. I am putting down a list of tutorials for you ..</p> <p>1)<a href="http://romenlaw.blogspot.in/2008/08/consuming-web-services-from-android.html" rel="nofollow noreferrer">http://romenlaw.blogspot.in/2008/08/consuming-web-services-from-android.html</a></p> <p>2)<a href="http://www.kevingao.net/wcf-java-interop" rel="nofollow noreferrer">http://www.kevingao.net/wcf-java-interop</a></p> <p>Some code snippets from some stackoverflow answers</p> <pre><code>[ServiceContract(Namespace="http://mycompany.com/LoginService")] public interface ILoginService { [OperationContract] string Login(string username, string password); } The implementation of the service could look like this: public class LoginService : ILoginService { public string Login(string username, string password) { // Do something with username, password to get/create sessionId string sessionId = "12345678"; return sessionId; } } You can host this as a windows service using a ServiceHost, or you can host it in IIS like a normal ASP.NET web (service) application. There are a lot of tutorials out there for both of these. The WCF service config might look like this: &lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="LoginServiceBehavior"&gt; &lt;serviceMetadata /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;services&gt; &lt;service name="WcfTest.LoginService" behaviorConfiguration="LoginServiceBehavior" &gt; &lt;host&gt; &lt;baseAddresses&gt; &lt;add baseAddress="http://somesite.com:55555/LoginService/" /&gt; &lt;/baseAddresses&gt; &lt;/host&gt; &lt;endpoint name="LoginService" address="" binding="basicHttpBinding" contract="WcfTest.ILoginService" /&gt; &lt;endpoint name="LoginServiceMex" address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre> <p>Courtesy : <a href="https://stackoverflow.com/questions/669764/how-to-consume-wcf-service-with-android">How to Consume WCF Service with Android</a></p> <p>Also on code project there is nice tutorial </p> <p><a href="http://www.codeproject.com/Articles/358867/WCF-and-Android-Part-I" rel="nofollow noreferrer">http://www.codeproject.com/Articles/358867/WCF-and-Android-Part-I</a></p> <p>If you done with WCF part then the above link would not be that useful for you, the next part will be pretty much useful for </p> <p><a href="http://www.codeproject.com/Articles/361107/WCF-and-Android-Part-II" rel="nofollow noreferrer">http://www.codeproject.com/Articles/361107/WCF-and-Android-Part-II</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload