如何在Android中使用Web服务? [英] How to use webservices in android?

查看:116
本文介绍了如何在Android中使用Web服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何调用Android的web服务我已经从网上进行了大量搜索并阅读一些教程,但没能理解多少和操作,任何人都可以提出任何教程,或提供任何PDF文件或任何一本书相关的Web服务,这样我可以理解。

I want to know about how to call webservices in android I had done a lot of search from Internet and have read several tutorials but was not able to understand much and manipulate, can anyone suggest any Tutorial, or provide any Pdf file or any book related to web services so that I can understand it.

在此先感谢

推荐答案

一读,我建议是的这个 - 这是W3School教程。不要忘记阅读包含在本教程中的相关章节 - SOAP,WSDL等 - 因为本教程作为一个独立的就不会那么值钱。本教程不是具体涉及到Android,但会给你都了解这种体系结构的使用和约束,然后构造你的项目所需要的信息。

The first reading I would suggest is this one - this is the W3School tutorial. Don't forget to read the related chapters included in this tutorial - Soap, Wsdl, etc - as this tutorial taken as a standalone would not be so valuable. This tutorial is not specifically related to Android but will give you all the information needed to understand the use and constraints of this kind of architecture, and then structure your project.

在Android上,你将面临的手机和平板电脑的具体约束实现:网络可以下来,而且往往是下降:在管,在一个地下室,在任何领域,有一个坏的网络覆盖。所以,你要照顾到这一点,无论是缓存数据,或允许应用程序在降级模式下工作时,无网络可用。这些只是例子,因为我不知道你的情况下。

Under Android, you will face the specific contraint of mobile phones and tablets: the network can be down, and is often down: in the tube, in a basement, in any area that have a bad network coverage. So you will have to take care of this, either by caching data or allowing the application to work in degraded mode when no network is available. These are just examples as I don't know your context.

在认为,Android是用Java开发的,随之而来的常规的Java之上的特定的API。* 包。这些都只是工具实现客户端。在服务器端,这取决于你是否控制这些服务,你可能也有一些实施的事情。如果是这样,这可以是Java,PHP,.NET,任何事情:的Web服务架构的目的就是保持远程执行独立的,只关心交换协议。但是,阅读你的问题,我觉得两个第一点是比较重要的(或有更高优先级的假设),比执行,因为他们是prerequisites。 (修改:无论如何,关于一个有益的探讨,可以发现的在这里的StackOverflow 。)

After that, Android is developed in Java, with a specific API that comes on top of the regular java.* packages. These are just tools to implement the client side. On server side, depending of whether you control these services, you may also have some implementation to do. If so, this can be Java, PHP, .Net, anything: one of the purpose of the web services architecture is to stay independant of the remote implementation to only care the exchange protocol. But reading your question, I think the two first points are more important (or have an higher priority let's say) than the implementation as they are prerequisites. (EDIT: Anyway, a useful discussion about that can be found here on StackOverflow.)

这篇关于如何在Android中使用Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆