问题描述
我是使用VBScript的ASP的新手,当我想要获取并使用我的ASP代码中的Web方法的返回值时,我遇到了一个问题。
有一个名为getQuote的web方法,它接受一个字符串
表示符号作为参数,并返回一个
的数组" BTQuote"包含每个符号信息的对象。
此外,还有一个由
IDE自动生成的代理对象。这个代理对象被包装为COM tlb并部署在
服务器上,正确,我很有信心。
我想编写ASP代码得到返回的BTQuote数组,以便我可以显示信息,有人可以告诉我该怎么做吗?
ps,我已经写了以下代码启动服务
对象,它工作正常:
设置btService = Server.CreateObject(" BTLib.BTDemoService")
/// /////如何获得此返回值? = btService.getQuote(" bidu")
任何建议都必须受到赞赏。
I''m a novice on ASP using VBScript, and I encountered a problem when I
want to get and use a return value of a web method in my ASP code.
There is a web method called "getQuote", which takes a string
indicating the symbols as its parameter, and return an array of
"BTQuote" objects which contain the info of every symbol respectively.
Also, there is a proxy object which is generated automatically by the
IDE. This proxy object is wrapped as a COM tlb and deployed on the
server, correctly, i''m sure.
I want to write ASP code to get the returned "BTQuote" array so that I
can show the information, can anybody tell me how to do that ?
ps, I''ve already written the following code to initiate a service
object, it worked fine:
Set btService = Server.CreateObject("BTLib.BTDemoService")
////////How do I get this return value? = btService.getQuote("bidu")
Any suggestion must be appreciated.
推荐答案
这篇关于如何在ASP中获取Web服务方法的返回值(数组类型)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!