Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

mx:webservices wsdl dynamic impossible ?

Avatar

Level 1
Hi all..

I will access to a webServices, But the WSDL can change.



I found this impossible to change wsdl param from a
varaiable.



I try many thing ....



thats work

<mx:WebService id="WS" wsdl="url..." ...



thats work

[Bindable]public var wsdlurl:String = 'url...';

<mx:WebService id="WS" wsdl="{wsdlurl}" ...



for this 2 version .. i can not change the value of wsdl.



i try to change the wsdlurl



I will access to a webServices, But the WSDL can change.



I found this impossible to change wsdl param from a
varaiable.



I try many thing ...



thats not work

[Bindable]public var wsdlurl:String;

wsdlurl = 'url...';

<mx:WebService id="WS" wsdl="{wsdlurl}" ...



thats not work :

[Bindable]public var wsdlurl:String;

WS.wsdl= 'url...';

<mx:WebService id="WS" ...



When i try to display WS.wsld value before to make a
WS.metode.send(), i have the good value, but the call do not use it
!

some idea ?
1 Reply

Avatar

Level 1
for what it's worth, I had a similar problem. The way I
solved it was to build the webservice manually (not in mxml
(<mx:WebService...>)). If done manaully, you can change the
wsdl attribute (eg: myWebService = new WebService();
myWebService.wsdl = wsdlurl;



I hope this helps