gpt4 book ai didi

java - 如何将 Web 服务连接到 Android 应用程序

转载 作者:行者123 更新时间:2023-12-01 16:34:54 25 4
gpt4 key购买 nike

我是 Web 服务新手,我想创建一个 RESTful Web 服务,并将其连接到 Android 应用程序。我想要有关如何执行此操作的步骤或教程。

我开始使用此链接 This link gives steps to create web service but I can't get why it is using entity classes (customer , DicountCode) from an existing database. What are these classes for? 创建我的服务

最佳答案

您可以尝试它自动连接并解析您的网络服务 http://www.wsdl2code.com

SampleService srv1 = new SampleService();
req = new Request();
req.companyId = "1";
req.userName = "userName";
req.password = "pas";
Response response = srv1.ServiceSample(req);

关于java - 如何将 Web 服务连接到 Android 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10222977/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com