2 Replies Latest reply on Jul 6, 2006 2:16 PM by alfie9

    Flex 2:  SOAP

    alfie9
      Hi everyone,

      I need help real bad. I am trying to write a simple code that will read an XML file and output all information into a datagrid. I get it to work where it will output all information into the datagrid, but its not parsing. For example, its outputting this into the datagrid <FirstName>Alfie</FirstName> instead of just the name "Alfie". Can someone please look at my code and can tell me what I am missing to fix this problem. I would really really appreciate any help.

      Thank you

      Alfie


      Here is my code:

      <mx:WebService id="wsEmployees" wsdl=" http://dev01-xp:333/Employees?wsdl" showBusyCursor="true" useProxy="false">

      <mx:operation name="GetEmployeeNames">
      <mx:request>
      <bstrUserName>Travis</bstrUserName>
      <bstrPassword>Hello</bstrPassword>
      </mx:request>
      </mx:operation>

      <mx:operation name="GetClockedInEmployees">
      <mx:request>
      <bstrUserName>Travis</bstrUserName>
      <bstrPassword>Hello</bstrPassword>
      </mx:request>
      </mx:operation>

      </mx:WebService>

      <mx:Panel width="583" height="508" layout="absolute" id="empPanel" title="Employee" horizontalCenter="-32" verticalCenter="2">
      <mx:Form x="52" y="28" width="459" height="430" id="empForm">
      <mx:FormItem>
      <mx:Button label="Update" id="empBtn" />
      </mx:FormItem>
      <mx:FormItem>
      <mx:DataGrid height="360" width="382" id="empGrid"
      dataProvider="{wsEmployees.GetEmployeeNames.lastResult}">
      <mx:columns>
      <mx:DataGridColumn headerText="Id" dataField="Id"/>
      <mx:DataGridColumn headerText="First Name" dataField="FirstName"/>
      <mx:DataGridColumn headerText="Last Name" dataField="LastName"/>
      </mx:columns>
      </mx:DataGrid>
      </mx:FormItem>
      </mx:Form>
      </mx:Panel>