0
안녕하세요 저는 다음과 같은 플렉스 코드가 있지만 XML의 결과를 표시하는 방법을 모릅니다. 현재 텍스트 상자의 결과가 문자열 []입니다하지만 난 100200300400500 감사Flex에서 웹 서비스 결과를 표시하는 방법은 무엇입니까?
<?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의 결과를 보여주기 위해 필요한 것은 다음과 같습니다 :
<?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>