Setting the WSDL path at runtime isn't really supported. However if the WSDL is going to be the same for whatever server you hit you could create a copy of the WSDL, refer to that file, then change the endpointURI at runtime.
Matt -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of sathish_kumar_18 Sent: Tuesday, April 04, 2006 1:33 AM To: [email protected] Subject: [flexcoders] How to set wsdl path of webservice at runtime (Flex 1.5) is it possible to change wsdl path dynamically in flex 1.5? <mx:Application ..... > <mx:Script> function setWsdlPath() { ws1.wsdl = "http:\\<newurl-to-webservice>"; } </mx:Script> <mx:WebService id="ws1" wsdl="http:\\<url-to-webservice>"/> <mx:Button click="setWsdlPath()"/> </mx:Application> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

