2 Replies Latest reply on Aug 11, 2006 11:45 AM by DrPennybags

    Web services and .Net

    DrPennybags
      I have a simple web service that returns xml data. I have a WebService control that is processing the service. I can output the data to a TextArea and everything looks right. When I attempt to read the XML data into a control, it doesn't work.

      So I create a web page that outputs the XML. I then created a HTTPService that reads the XML and populates a control with the data. It works like a charm.

      <mx:WebService id="LinkService" wsdl=" http://192.168.203.150/links.asmx?WSDL" useProxy="false">
      <mx:operation name="GetLinks" resultFormat="e4x" fault="Alert.show(event.fault.message)">
      <mx:request>
      <Value>187</Value>
      </mx:request>
      </mx:operation>
      </mx:WebService>
      <mx:TextArea width="400" height="190" wordWrap="false" text="{XML(LinkService.GetLinks.lastResult).toString()}" />
      <mx:DataGrid x="30" y="75" id="dgLinks2" width="400" dataProvider="{XML(LinkService.GetLinks.lastResult).links.link}">
      <mx:columns>
      <mx:DataGridColumn headerText="Links" dataField="url"/>
      </mx:columns>
      </mx:DataGrid>


      Where am I going wrong?