Hi Pablo,

 

Just guessing I can think of 2 reasons:

  • Are you hosting your flex application on the webserver on localhost too? Or are you running the application through FlexBuilder (with ‘run as Flex Application’). Myself, I sometimes experience issues with this, although sometimes it appears to work. What always works is to put your flex application on your web server and run it from there (http://localhost/ ..... /youApp.html)
  • Does your WSDL use import statements? And do these import statements load from anything different than ‘localhost’ (could be for example 127.0.0.1 or your machine’s IP address)? Then, this could be your problem. This is due to the Flash security sandbox. After Flex has loaded your WSDL, it will also try to load your imported files. If these use a different host name than the host name your application is served from, Flex will complain.

 

A good exercise you always good to is use an HTTP sniffer between your Flex app and your server (I personally use Fiddler). Then you can effectively see the HTTP traffic going up and down from your app to the server.

 

HTH,

Franck

 


From: [email protected] [mailto:[email protected]] On Behalf Of Pablo Apanasionek
Sent: Tuesday, September 05, 2006 6:49 PM
To: [email protected]
Subject: [flexcoders] Could not load WSDL of .NET WebService in Flex 1.5

 

Hey folks!

 

I've searched for it in the archive and in Adobe, found some examples, but it seems to be something hidden on this one.

 

I've created a sample web service with ASP.NET, published it and browsing it normally. Its name: Service1.asmx (very samplistic name)

 

I've coded the WebService tag in Flex, using wsdl=http://localhost/FlexServices/Service1.asmx?WSDL" (as found on Adobe example http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19327).

 

However, the example seems to work, while my WSDL throws Could Not Load WSDL error message (without flex-proxy). Using the proxy, it results in "Connection refused".

 

I've tested my WSDL with Online wsdl Validator and works. Any hint/step I could have missed on this?

 

TIA,

-Pablo Gustavo Apanasionek

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to