简体   繁体   English

在asp.net中编写HTTPS Web服务并从android调用它

[英]Write HTTPS web service in asp.net and call it from android

I have to write a web service in ASP.NET and an android application which takes a list from it by providing a username and password pair and finally show the result in a listview. 我必须在ASP.NET和android应用程序中编写一个Web服务,该应用程序通过提供用户名和密码对从中获取列表,最后在listview中显示结果。 This communication should takes place in SSL manner. 该通信应以SSL方式进行。 Which web service model I must use? 我必须使用哪种Web服务模型? Is there any tutorial for doing this? 有做这个的任何教程吗?

Solution will be splitted into two parts : 解决方案将分为两部分:

1- creating Https web service 1-创建Https Web服务

Steps in brief: 简要步骤:

  • normally you create web site using Visual Studio 通常,您使用Visual Studio创建网站
  • add web services to web site 将Web服务添加到网站
  • deploy it in iis 在iis中部署
  • Install Server Certificates on the Web Server Step 在Web服务器上安装服务器证书步骤
  • Create a Simple Web Service 创建一个简单的Web服务
  • Configure the Web Service Virtual Directory to Require SSL 配置Web服务虚拟目录以要求SSL
  • Test the Web Service Using a Browser 使用浏览器测试Web服务

Tutorials & References : 教程和参考:

2- Consuming https web services in android app : 2-在Android应用中使用https Web服务:

i dont have much experiences in android app but i found a lot of tutorials explain the trick of consuming https services in android app 我在Android应用程序中没有太多经验,但是我发现很多教程解释了在Android应用程序中使用https服务的技巧

Tutorials & References : 教程和参考:

i hope this help you happy Coding :) 我希望这可以帮助您快乐编码:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM