开发者

How to Pass long value to ksoap request

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜