具有返回值的Web Service方法 [英] Web Service method with return value
本文介绍了具有返回值的Web Service方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Silverlight的新手.我有一个返回列表的Web服务方法.当我在xaml页面中调用它时,它就像
webservice.myTestMethod(),以便返回值到达的位置.由于我们无法将输出直接分配给变量,因此如何捕获它
在此先感谢
Hi,
I am new to silverlight. I have a web service method which returns a list. When i call it in the xaml page it is something like
webservice.myTestMethod() so where the return value goes. since we cannot assign the output directly to a variable how can we capture it
Thanks in advance
推荐答案
您的Web服务必须使用http进行传输,因此它将不会输出二进制信息.它将输出TEXT .... XML,SOAP,REST等.请参阅此链接:
在Silverlight中访问Web服务
Your web service must use http for transport, so it will not be outputting binary information; it will be outputting TEXT....XML, SOAP, REST, etc. Refer to this link:
Accessing Web Services in Silverlight
这篇关于具有返回值的Web Service方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文