WCF and Android

Your ideas for any killerapplication that comes to your mind ;)

WCF and Android

Postby diengsallah » Sat Apr 10, 2010 5:48 pm

Hello,
I have seen many messages about Webservices and Android but my problem is that I want to consomme a WCF using Android.
It appears that WCF is very specific and I can't use SOAP to connect to my wcf by Android.
Please, can you give me an idea.
I don't know how to start with my work.
Thank you in advance.
diengsallah
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Apr 10, 2010 5:36 pm
Location: programmer

Top

Re: WCF and Android

Postby mitasoft » Tue Aug 31, 2010 7:56 pm

You could use simple asmx web service hosted in iis.

Code: Select all
/// <summary>
    /// Summary description for Service
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
    // [System.Web.Script.Services.ScriptService]
    public class Service : System.Web.Services.WebService
    {

        [WebMethod]
        public string HelloWorld(string name)
        {
            return string.Format("Hello World {0} !", name);
        }
     }


I have troubles parsing a complex type sent from ws. If someone have an example please give a hint
mitasoft
Freshman
Freshman
 
Posts: 2
Joined: Tue Aug 31, 2010 7:51 pm

Re: WCF and Android

Postby aspic » Sat Nov 27, 2010 1:01 pm

Well, I would absolutely advice you to go for some kind of REST service, instead of the SOAP approach. Take a look at http://www.restlet.org/, which have a nice library built for Android.
aspic
Junior Developer
Junior Developer
 
Posts: 20
Joined: Sun Oct 10, 2010 1:36 am

Top

Return to Creative Corner

Who is online

Users browsing this forum: No registered users and 1 guest