从CFInvoke Web服务中提取输出

时间:2015-10-20 21:32:38

标签: web-services coldfusion cfinvoke

我正在学习如何使用coldfusion 7调用web服务(稍后我们将升级)。我找到了一些免费的网络服务。

<cfscript>
    stArgs = structNew(); 
    stArgs.symbol = "msft"; 
</cfscript> 

<cfinvoke webservice="http://www.webservicex.net/stockquote.asmx?WSDL" method="GetQuote" argumentcollection="#stArgs#" returnvariable="aTemp">

#atemp#的结果是

<StockQuotes><Stock><Symbol>msft</Symbol><Last>47.77</Last><Date>10/20/2015</Date><Time>4:00pm</Time><Change>+0.15</Change><Open>47.41</Open><High>47.81</High><Low>47.02</Low><Volume>30793995</Volume><MktCap>382.06B</MktCap><PreviousClose>47.62</PreviousClose><PercentageChange>+0.31%</PercentageChange><AnnRange>39.72 - 50.05</AnnRange><Earns>1.48</Earns><P-E>32.28</P-E><Name>Microsoft Corporation</Name></Stock></StockQuotes>

我的问题是如何提取(例如)PercentageChange结果? 谢谢!

0 个答案:

没有答案
相关问题