Hi Pablo,

 

I wrote the following small test application:

 

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

            <mx:Button x="167" y="108" label="Click me!" click="doClickMe();"/>

           

            <mx:Script>

                        <![CDATA[

                                    import mx.rpc.soap.LoadEvent;

                                    import mx.rpc.events.FaultEvent;

                                    import mx.rpc.soap.WebService;

                                    import mx.controls.Alert;

                                   

                                    private function doClickMe():void

                                    {

                                                var ws:WebService;

                                               

                                                ws = new WebService();

                                                ws.addEventListener(LoadEvent.LOAD, handleWsLoaded);

                                                ws.addEventListener("fault", handleWsError);

ws.loadWSDL("Service.wsdl");

                                    }

                       

                                    public function handleWsError(aEvent:FaultEvent):void

                                    {

                                                Alert.show("fault is: " + aEvent.fault.faultString);

                                    }

                                   

                                    public function handleWsLoaded(aEvent:LoadEvent):void

                                    {

                                                Alert.show("Loaded!");

                                    }

                        ]]>

            </mx:Script>

</mx:Application>

 

The Service.wsdl file I downloaded from the URL you indicated and saved it besides my test application MXML file. The WSDL loaded without any problem. I did not try to invoke one of your operations, since this will probably not work from a Flex app (security constraint).

 

Could you try to get this to work?

 

Cheers,

Franck

 


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

 

Franck,

 

thanks for your reply. I've tested so far putting my WSDL on another server (IIS) and putting the absolute URL on the WebService tag, not without enabling that URL in my flex-config.xml web-service-whitelist. This has produced the same result (Could Not Load WSDL).

 

 

I've come to two hypothetical scenarios:

 

a) my WSDL is malformed or incompatible with Flex.

b) the configuration of my Flex Server is not allowing the connection. (Though it does to the Adobe Example wsdl @ webservicesx.com)

 

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