android wcf 调用,WCF serivce and android client

In addition to darnold924's suggestion, you can also consider building your service (on computer) as a RESTful service. RESTful service use standard HTTP transport so that client app (no matter .NET or non-.NET) can send plain HTTP GET/POST requests for consuming

service operations. And the data send to and receive from REST service can be any format including text, XML, JSON, binary or multi-part form ,etc...

WCF has built-in support on building REST service:

#A Guide to Designing and Building RESTful Web Services with WCF

http://msdn.microsoft.com/en-us/library/dd203052.aspx

and a quick search over internet will show you some reference about consuming RESTful service from android client:

#Consuming Rest Web-Services in Android | Web Services in Android | Rest Web Services demo in Android

http://www.androidhub4you.com/2012/09/consuming-rest-web-services-in-android.html

In addition, if you choose to use RESTful service, you have more choice in addition to WCF. For example, ASP.NET web-api is also a good one for building RESTful service on .NET platform:

And for launching or execute an external program (start a new process) in .NET application, a common way is to use Process.Start method:

Thanks

MSDN Community Support

Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值