嗨,我有以下弹性代码,但我不知道如何显示 xml 的结果。目前文本框的结果是 String[] 但我需要它将 xml 的结果显示为 100,200,300,400,500 谢谢
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:hellos="services.hellos.*"
minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
protected function
form_creationCompleteHandler(event:FlexEvent):void
{
sayHelloResult.token = hellos.sayHello();
}
]]>
</fx:Script>
<fx:Declarations>
<hellos:Hellos id="hellos"/>
<s:CallResponder id="sayHelloResult"/>
</fx:Declarations>
<s:Form id="form" creationComplete="form_creationCompleteHandler(event)">
<s:FormItem label="SayHello">
<s:TextInput text="String[]"/>
</s:FormItem>
</s:Form>
</s:Application>
xml如下:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance">
<soapenv:Body>
<sayHelloResponse xmlns="http://services">
<sayHelloReturn>100</sayHelloReturn>
<sayHelloReturn>200</sayHelloReturn>
<sayHelloReturn>300</sayHelloReturn>
<sayHelloReturn>400</sayHelloReturn>
<sayHelloReturn>500</sayHelloReturn>
</sayHelloResponse>
</soapenv:Body>
</soapenv:Envelope>