can't you use the loadWSDL() function eg
<mx:WebService id="ws1"/>
ws1.loadWSDL("url for the wsdl")
--- In [email protected], "lanlin998" <[EMAIL PROTECTED]> wrote:
>
> Hi, here is my problem:
> We have multiple servers running on different network. I'd like
> not to hard code the wsdl in the <mx:WebService
> wsdl="somehost".myservice?myservicec.wsdl"...</mx:WebService> tag.
> Instead, there will be a config.txt file in the application folder
> that define the variable hostname that the FLEX app will read and
then
> construct the wsdl before loading.
>
> My server is Tomcat, we do not use Flex Data Service or Cold Fusion.
>
> How can I do this? And, is there any security setting I need to set
> in order for the FLEX to read the config.txt file?
>
> Thanks in advance.
>