【问题标题】:calling a webservice in android在android中调用网络服务
【发布时间】:2011-04-06 05:50:32
【问题描述】:

我在android应用程序中有一个webservice,我必须调用它。webservice的响应如下

<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>

谁能告诉我应该如何调用这个网络服务...

提前致谢 图沙尔

【问题讨论】:

  • 请将您的疑虑通过电子邮件发送至 team@stackoverflow.com。

标签: android


【解决方案1】:

【讨论】:

  • 程序员我看过链接
【解决方案2】:

检查thisthis

这是与 Web 服务交互的 KSOAP2 库。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-12-24
    • 2014-08-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多