Hi Pradyumna, please have a look at livedocs where it provides calling webservice. It seems you are missing to register operations using mx:operations tag within webservice tag, then other part of flex code allows you to call that operation with webservice reference.
Regards, Srinivas On Tue, May 19, 2009 at 11:48 AM, Mukund Deshpande < [email protected]> wrote: > > > Hi Pradyumna, > > This should be the mxml code.*You need to change the url* of wsdl based on > the url of your ASP.NET <http://asp.net/> webservice mostly it should be > like wsdl=" > http://localhost/webservice/Myservice/Service.asmx?WSDL< > http://localhost//webservice//Myservice//Service.asmx?WSDL> > " > Also I think,it would be better if you write port number if you have many > servers running.You need to load the operation supported by webservice in > webservice tag.... > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute" > > > <mx:WebService id="Myservice1" *wsdl=" > http://localhost:1190/WebSite1/Service.asmx?WSDL" * > load="Myservice1.HelloWord()"> > </mx:WebService> > > <mx:Button click="Myservice1.HelloWorld.send()" label="CLICK ME" x="148" > y="32"></mx:Button> > <mx:Label text="{Myservice1.HelloWorld.lastResult}"/> > </mx:Application> > > thanks, > mukund. > > On Tue, May 19, 2009 at 12:08 AM, Saifi Khan > <[email protected]<saifi.khan%40twincling.org>>wrote: > > > > > > > > Pradyumna needs help with Flex. Can some geeks flex this out ? > > > > ---------- Forwarded message ---------- > > Date: 18 May 2009 13:01:25 -0000 > > From: Pradyumna > > Subject: Consuming .NET Web Service in Flex 3 > > > > hi, > > i am trying to integrate a .net web service with flex 3.the pieces of > > information i found on the net helped me write the following piece of > code > > in > > flex 3 buillder.the problem is neither an error nor a success is being > > resulted in.the web service is functioning correctly when called from a > > .net > > web application.here's the flex code help would be greatly appreciated. > > > > <?xml version="1.0" encoding="utf-8"?> > > <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" > > > <mx:webservice id="Myservice1" > > wsdl="http://localhost//webservice/Myservice//Service.asmx?WSDL< > http://localhost//webservice//Myservice//Service.asmx?WSDL> > > "> > > </mx:webservice> > > <mx:Button click="Myservice1.HelloWorld.send()"></mx:Buton> > > <mx::Label text="{Myservice1.HelloWorld.result"}></mx:Label> > > </mx:Application> > > > > > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed]

