如何将数组传递给Web服务 [英] How to pass array to webservices

查看:123
本文介绍了如何将数组传递给Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



任何人都可以知道如何将数组传递给Web服务并将结果返回到UI.

在此先感谢.......

Hi,

Can any one has any idea that how to pass the array to webservices and return the result to the UI.

Thanks in advance.......

推荐答案

请参阅类似的主题:
阵列列表 [阵列列表 [将动态参数列表传递给Web Service [ ^ ]

如何在Webservice VB.NET中将数组作为函数参数传递? [ ^ ]
Please refer similar threads:
Array List[^]
Array List[^]
Pass Dynamic List of Parameters to Web Service[^]

How to pass Array as Function Parameter in Webservice VB.NET?[^]


Web服务实现了自己的协议,该协议可以接受任何数据类型,包括数组.

将数组从Web服务发送到UI的最佳方法是使用JSON.
Web services implement their own protocols, which can accept any data type, including arrays.

The best way to send arrays from a Web Service to UI is as JSON.


尝试使用DataContractSerializer.

它将允许您传递对象数组.
Try using the DataContractSerializer.

It will allow you to pass an array of objects.


这篇关于如何将数组传递给Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆