开发者

How to Pass long value to ksoap request

开发者 https://www.devze.com 2023-04-12 07:53 出处:网络
I am facing an issue while passing long value to ksoap request.As ksoap accepts only string and object parameters but i need to pass a long value to the request. Can an开发者_运维问答ybody help me out

I am facing an issue while passing long value to ksoap request.As ksoap accepts only string and object parameters but i need to pass a long value to the request. Can an开发者_运维问答ybody help me out in this issue.

Request.addProperty("Room No",userid);

Userid is of long type.


Try using Long instance instead of long primitive:

Request.addProperty("Room No", new Long(userid));
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号