更新
命名空间或flex。我的
我有一个基本的soap网络服务,在flex中读取结果时遇到了问题。
我是一名扎实的java程序员,只是想了解一下adobe flex。
documentation
我应该能够使用“WebService”以e4x格式返回结果。
<mx:WebService id="CurrentLayersWS" wsdl="http://localhost:8080/myproject/ws/myservice.wsdl" showBusyCursor="true" result="updateSelected(event)" fault="Alert.show(event.fault.faultString), 'Error'">
<mx:operation name="publisher" resultFormat="e4x">
<mx:request>
<publisherRequest>
<getConfiguration/>
</publisherRequest>
</mx:request>
</mx:operation>
</mx:WebService>
private function updateSelected(event:ResultEvent):void {
var responseXml:XML = XML(event.result);
<sch:temp xmlns:sch="http://www.mycompany.co.uk/myproject/schemas" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:publisherResponse xmlns:ns2="http://www.mycompany.co.uk/myproject/schemas">
<getConfigurationResponse>
<configuration>
...etc