You can’t bind into the wsdl property of WebService, it has to be set at compile-time which binding can’t do.  Sorry!

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of sanjayd
Sent: Thursday, May 05, 2005 1:17 PM
To: [email protected]
Subject: [flexcoders] Re: how to read initialization properties?

 

This seems to work off & on !

I tried this:
<mx:Model id="properties" source="properties.xml" />
<mx:Label text="{properties.wsdlURL}"/>
and it works fine.
however, this does not work:
<mx:WebService id="ws" wsdl="{properties.wsdlURL}"

any ideas ?

Sanjay

--- In [email protected], Manish Jethani
<[EMAIL PROTECTED]> wrote:
> On 5/5/05, sanjayd <[EMAIL PROTECTED]> wrote:
>
> > Is there a formal/elegant way to read start-up properties via a
> >
java-style-properties-file/windows-style-ini-file/xml-config-type-file ?
>
> XML, yes.  You can store the configuration properties in an XML file
> on the server.  See this file, cfg.xml:
>
> <root>
>   <boxWidth>50</boxWidth>
>   <boxHeight>300</boxHeight>
> </root>
>
> Load it into your MXML (compiled in):
>
> <?xml version="1.0"?>
> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
>   <mx:Model id="cfg" source="cfg.xml" />
>   <mx:Box width="{cfg.boxWidth}" height="{cfg.boxHeight}"
>     borderStyle="solid" />
> </mx:Application>
>
> If the cfg.xml file is modified, the SWF will be recompiled.





Yahoo! Groups Links

Reply via email to