Hi Kiran,

 

Are you sure that the URL http://misdevservices/wsCommon/Options.asmx?wsdl is actually a valid URL? If you are running the web services on your local machine, you’d probably have something like localhost in the URL.

 

How did you actually run your application? Through FlexBuilder? Or did you deploy your .swf file (and all files related to it) together with your webservice? I always do the latter in order to get it working.

 

Cheers,

Franck

 


From: [email protected] [mailto:[email protected]] On Behalf Of Kiran
Sent: Wednesday, August 02, 2006 5:37 PM
To: [email protected]
Subject: [flexcoders] Problem connecting to the Webservice

 

Hi,

I have never used Flash or Flex in my life before and am a .NET developer. Stumbled across Flexbuilder yesterday and was really impressed by the RUI features it offers so I decided to download a trial version and play with it.

This is what I did :

  •  Created a simple .NET Webservice with a method called 'SayHello' which returns a string message 'Hello World' (duh..very ingenious of me  :)  ) and does not take any parameters. The service resided on a virtual windows server machine(called 'misdevservices')
  • Created an mxml file called 'Lesson.mxml'. I am pasting the code below :

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"

creationComplete="kino.SayHello.send()">

<mx:WebService id="kino"

wsdl="http://misdevservices/wsCommon/Options.asmx?wsdl"

useProxy="false">

<mx:operation name="SayHello"></mx:operation>

</mx:WebService>

<mx:Panel x="21" y="10" width="350" height="400" layout="absolute" title="Hello World Test">

<mx:Text id="txtHello" text="{kino.SayHello.result}" x="27" y="28"/>

</mx:Panel>

<mx:TraceTarget level="0">

</mx:TraceTarget>

</mx:Application>

When i try to run this , i dont get any result back. I have even placed a 'crossdomain.xml' file in the root folder of the virtual server where the webservice is, but still the same problem. I cannot do anything else if I dont get this sorted :( Been trying since yesterday but no luck! Would greatly appreciate if anyone could help me in this matter!!

 

Thanks in advance.

Kiran

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to