简体   繁体   English

Android KSoap2取得回应

[英]Android KSoap2 Get Response

I am trying to call a Dotnet webservice from android application in which i have a function(ClienLookUp) which requests the webservice with 2 parameter uuid and status, the response is an array consist of 4 parameters uuid,status,msg,QA the uuid is to be the same as in the request but the service is returning me null. 我正在尝试从android应用程序调用Dotnet Web服务,其中我有一个函数(ClienLookUp),该函数请求具有2个参数uuid和status的Webservice,响应是一个数组,该数组由4个参数uuid,status,msg,QA组成,uuid为与请求中的相同,但服务返回的值为null。 I have created the session from the same uuid before this function call and session is created but if i check the session status with my ClientLookUp function the response is seesion expired and the returned uuid is null. 在此函数调用和会话创建之前,我已经从同一uuid创建了会话,但是如果我使用ClientLookUp函数检查会话状态,则响应已过期并且返回的uuid为null。

The webservice is working fine for other platforms i am not getting that what is the issue behind this either my soapobject is not working or the connection is not established successfully. 该Web服务在其他平台上运行良好,但我没有得到我的soapobject无法正常工作或未成功建立连接的原因是什么? Iam using the Ksoap2 library for this purpose. Iam为此使用Ksoap2库。

I have done a similar thing before. 我之前也做过类似的事情。 I created a web service is .NET to send 2 parameters namely username and password for user authentication. 我创建的Web服务是.NET,用于发送2个参数,即用于用户身份验证的用户名和密码。

You can refer How to call a local .NET web service from Android Application 您可以参考如何从Android应用程序调用本地.NET Web服务

Check the answer I have posted over there. 检查我在那边发布的答案。 It will give you some idea on how to go about writing the ksoap code. 它将为您提供一些有关编写ksoap代码的想法。

Hope it helps, 希望能帮助到你,

Cheers 干杯

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

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