调用Android的web服务 [英] calling a webservice in android

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

问题描述

我在Android应用程序中一个Web服务,我有独特叫声的web服务的响应如下:

I have a webservice in android application which i have to call.The response of the webservice is as follows

<vmsc>
<response code="0" message="Success"/>
−
<responsedata>
−
<productcategories>
−
<productcategory>
<id>1</id>
<title>Celebrities</title>
<description>Celebrities</description>
<image>
        </image>
</productcategory>
−
<productcategory>
<id>2</id>
<title>Music</title>
<description>Music</description>
<image>
        </image>
</productcategory>
−
<productcategory>
<id>3</id>
<title>Sports</title>
<description>Sports</description>
<image>
        </image>
</productcategory>
−
<productcategory>
<id>4</id>
<title>Fashion</title>
<description>Fashion</description>
<image>
        </image>
</productcategory>
−
<productcategory>
<id>5</id>
<title>Religion</title>
<description>Religion</description>
<image>
        </image>
</productcategory>
−
<productcategory>
<id>6</id>
<title>Others</title>
<description>Others</description>
<image>
        </image>
</productcategory>
−
<productcategory>
<id>7</id>
<title>Education</title>
<description>Education</description>
<image>
        </image>
</productcategory>
−
<productcategory>
<id>8</id>
<title>Charity</title>
<description>Charity</description>
<image>
        </image>
</productcategory>
−
<productcategory>
<id>9</id>
<title>Film</title>
<description>Film</description>
<image>
        </image>
</productcategory>
−
<productcategory>
<id>10</id>
<title>Health</title>
<description>Health</description>
<image>
        </image>
</productcategory>
</productcategories>
</responsedata>
</vmsc>

谁能告诉我应该怎么称呼这个web服务...

Can anyone tell how should i call this webservice...

在此先感谢
图莎尔

Thanks in advance Tushar

推荐答案

试试这个教程意甲:

http://p-xr.com/android-tutorial-series-from-sql-php-to-xml-json-to-android-listview/

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

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