WSDLs cannot be set dynamically in 1.x.
We’re investigating making this better in future versions.
Using named services is the recommended
way of doing this right now.
Matt
From: Matthew Shirey
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 23, 2005
12:59 PM
To: [email protected]
Subject: Re: [flexcoders] Binding
question
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 Sponsor |
ADVERTISEMENT
![click here]() | |
![]() |
Yahoo! Groups Links
|