Hi, My code looks like below: public function useTest():void{ WSTest.GetData.resultFormat="e4x"; WSTest.addEventListener("load", loadHandler); WSTest.GetData.addEventListener("result", resultHandler); WSTest.addEventListener(FaultEvent.FAULT,faultHandler); WSTest.loadWSDL(); } public function loadPostsHandler(event:LoadEvent):void{ WSPosts.GetData("Get Result"); } private function resultHandler(event:ResultEvent):void{ Alert.show(""+event.result); } private function faultHandler(event:FaultEvent):void{ Alert.show(""+event); }
WSTest is the id of my WebService. I have also specified useProxy="false" I am passing in the parameters correctly. useTest() is called on every button click. The webservice works fine on the first call. It is only on the subsequent calls that an error is thrown. Thanks & Regards, Sudha. --- In flexcoders@yahoogroups.com, subeesh a <[EMAIL PROTECTED]> wrote: > > Are you passing in the parameters correctly ? . How are you passing the vaues to the webservice method. Post your code snippet here . > > > ----- Original Message ---- > From: sudha_bsb <[EMAIL PROTECTED]> > To: flexcoders@yahoogroups.com > Sent: Thursday, 20 December, 2007 12:15:36 PM > Subject: [flexcoders] Webservices problem > > Hi, > I have a webservice that I invoke back to back on a button click. > On the first click the webservice returns the expected result. > However, on successive clicks, I get the following error: > > [FaultEvent fault=[RPC Fault faultString= "Array of input arguments did > not contain a required parameter at position 2" > faultCode="Client. Input" faultDetail= "null"] messageId=null > type="fault" bubbles=false cancelable=true eventPhase=2] > > I am using Flex 2.0.1 > > Could anyone help me out to resolve this issue? > > Thanks & Regards, > > Sudha. > > > > > > Chat on a cool, new interface. No download required. Go to http://in.messenger.yahoo.com/webmessengerpromo.php >