You just hit on a problem I had a week ago.  It looks like the wsdl
attribute cannot be set at runtime.  I even tried doing it in
actionscript with no luck.  This is problematic for me because I want
to be able to declare all of my web service urls globally so they can
be changed easily.  I finally had to resort to making them Named web
service declared in the flex config file.  This works for me but its
less than ideal.  If there is some way to dynamically set the wsdl
attribute, I'd also be very interested in knowing how.

Thanks!

-- Matthew


On Wed, 23 Mar 2005 20:22:41 -0000, pilby1 <[EMAIL PROTECTED]> wrote:
> 
> 
> I have web services in my application, and I wanted to bind the value
> of the "wsdl" attribute of a <mx:WebService> tag, but I'm having
> difficulty.
> 
> I have my model like this:
> 
> <mx:Model id="webServicesURLs">
>   <ws1>http://someURL?wsdl</ws1>
> </mx:Model>
> 
> Then in my web service, I have:
> 
> <mx:WebService id="myWebService" wsdl="{webServicesURLs.ws1}" ... etc.
> 
> But upon application startup, I'm getting an alert box error message
> from the application saying "Could not load WSDL, 404, /myApp/
> {myWebServiceURLs.ws1}".
> 
> It seems like it's trying to get the WSDL prior to substituting the
> value from my data model, which explains why it couldn't get the WSDL.
> 
> How can I then make my "wsdl" attribute in my <mx:WebService> a
> variable?
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>


 
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/
 



Reply via email to