보안 라인 대기 시간을 위해 MyTSA (https://www.dhs.gov/mytsa-api-documentation)에서 제공하는 데이터를 가져 오려고하는데 문제가 있습니다. 나는 그것을 실행할 때마다플렉스/ActionScript로 서버 결과 가져 오기
import mx.events.FlexEvent;
import mx.rpc.events.ResultEvent;
[Bindable]
private var url:String = "http://apps.tsa.dhs.gov/MyTSAWebService/GetWaitTimes.ashx?output=xml&ap=SEA";
protected function init(event:FlexEvent):void
{
getWaits.send();
}
protected function getWaitsResult(event:ResultEvent):void
{
data_label.text = getWaits.lastResult.toString();
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:HTTPService id="getWaits" url="{url}" result="getWaitsResult(event)"/>
, 나는 에러 코드를 얻을 : 여기 내가 가지고있는 코드는 [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://apps.tsa.dhs.gov/MyTSAWebService/GetWaitTimes.ashx?output=xml?output=XML&ap=SEA" errorID=2032]. URL: http://apps.tsa.dhs.gov/MyTSAWebService/GetWaitTimes.ashx?output=xml?output=XML&ap=SEA"]
나는이 작업을 얻을 수있는 방법 어떤 생각? 내가 뭔가 잘못하고 있는거야?
감사합니다, 야곱은