У меня есть WebService, который возвращает XML в ответе SOAP:
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetConfigResponse xmlns="Web.Services">
<GetConfigResult>
<Configuration xmlns="">
<Stuff>False</Stuff>
<MoreStuff>
<Report_Format>PDF</Report_Format>
<Report_Sections>
<Report_Section>
<idNmb>1</idNmb>
<name>Report 1</name>
<isDefault>true</isDefault>
<isVisible>true</isVisible>
</Report_Section>
<Report_Section>
<idNmb>2</idNmb>
<name>Report 2</name>
<isDefault>false</isDefault>
<isVisible>true</isVisible>
</Report_Section>
</Report_Sections>
</MoreStuff>
</Configuration>
</GetConfigResult>
</GetConfigResponse>
</soap:Body>
</soap:Envelope>
Когда я вызываю этот WebService, отладчик Flex показывает тип ResultEvent.result «ObjectProxy». Когда я пытаюсь преобразовать это значение в XML, оно отслеживается как «[объектный объект]», и я не могу получить доступ к узлам XML. Для большинства других веб-сервисов, которые я вызываю, ResultEvent.result имеет тип «Массив» и без проблем преобразуется в XML.
Что я могу сделать, чтобы сохранить этот результат в виде XML?