1 Reply Latest reply on Jul 3, 2006 12:23 PM by Flex harUI

    webservice doesn't work

      ok .. I have a wdsl located at :


      And I have a PHP client script that connects to the wdsl and run the RPC "search" and it returns an array (1 item now). The client is located at http://www.anti-models.nl/service/client.php.

      Now I'm trying to do the same in Flex 2, so like loading the wdsl, run the rpc search and put the results in a datagrid. the example is located at http://www.anti-models.nl/bin/antimodels_test.html.

      Here's my code:


      <?xml version="1.0"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">

      import mx.controls.Alert;
      import mx.utils.*;

      <mx:WebService id='antimodelWS'
      wsdl=" http://www.anti-models.nl/service/test1wsdl.php?wsdl"
      fault="Alert.show(event.fault.faultstring, 'Error');"
      <mx:operation name='search'>


      <mx:ArrayCollection id="ac"

      <mx:Panel height="95%" width="95%"
      paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">

      <mx:DividedBox direction="horizontal" width="100%" height="100%">

      <mx:Panel title="Search" width="300" height="100%" backgroundColor="0xCCCCCC">
      <mx:Button label="Search" click="antimodelWS.search.send()"/>

      <mx:Panel title="Panel 2" height="100%" backgroundColor="0xCCCCCC">
      <mx:DataGrid dataProvider="{ac}" width="100%">
      <mx:DataGridColumn dataField="uniq" headerText="Uniq ID"/>




      So loading the wdsl isn't the problem, but when I click on "search", nuthing happens .... help?