0 Replies Latest reply on May 11, 2009 12:40 AM by golgot666

    Web Service Error #1023: Stack overflow occurred.

    golgot666

      Hi,

      When I try this simple WS I got stack overflow error!

      I read that this happens when there is a recursive call... I do not see where is the recursive call on the red line?

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center"
          verticalAlign="middle">
        
         <mx:Script>
              <![CDATA[
                     import mx.rpc.events.FaultEvent;
                     import mx.rpc.events.ResultEvent;

                 private function clickHandler(event:MouseEvent):void{
                      wService.P_SEARCH_NAME_SOUNDEX(ti.text);
                  }

              ]]>
         </mx:Script>
         
         <mx:WebService id="wService"
              wsdl="http://xxxxxxxx/xxx/demo?wsdl">
             <mx:operation name="P_SEARCH_NAME_SOUNDEX"/>
         </mx:WebService>
        
         <mx:Panel title="Appel à un Web Service"
              paddingBottom="30" paddingLeft="30" paddingRight="30" paddingTop="30" width="427" height="302">
             <mx:TextInput width="145" id="ti"/>
             <mx:Button label="Appel au WebService" click="clickHandler(event)"/>
             <mx:DataGrid id="dg" dataProvider="{wService.P_SEARCH_NAME_SOUNDEX.lastresult}">
             </mx:DataGrid>
         </mx:Panel>
        
      </mx:Application>