Why not use a named service in flex-config so that the dev or production server simply has the right WSDL specified?  Or is it dev and production web service but the same flex app?  Not sure why your CFC isn't updating.  Is the browser caching accidentally or is CF caching?

 


From: [email protected] [mailto:[email protected]] On Behalf Of Greg Johnson
Sent: Wednesday, October 12, 2005 9:47 AM
To: [email protected]
Subject: [flexcoders] Re: How would I use a variable to define the wsdl param in mx:WebService?

 

Basicaly im trying to work around two issues.  1 I have a dev and a
prod version in diferent directories and would like to not have to
edit the WebService tag every time I move the dev to production. 
Plus I have to keep changing the filename of the cfc to get Flex to
see the new code when I have edited it.  I have tried a variety of
ways to get the cfcs not to create stubs or recreate stubs but
nothing works but chaning the filename.


--- In [email protected], "Mink, Joseph" <[EMAIL PROTECTED]>
wrote:
>
> Ah yes, good call!  Just did that yesterday...here's an example of
some
> sort:

>   function wsTestTimeOut (callTime:Number):Void
>   {
>     ...
>    dsmcWs.setEndpointURI ("http://jchung:8080/dsmc/DSMCOther");
>     ...
>   }

>     <mx:WebService
>         fault="wsFault (event)"
>         id="dsmcWs"
>         protocol="http"
>         wsdl="http://jchung:8080/dsmc/DSMC?wsdl">
>         <mx:operation name="testTimeOut"
result="handleTestTimeOutResult
> (event.result)"/>
>     </mx:WebService>


>
> ________________________________
>
> From: [email protected]
[mailto:[email protected]] On
> Behalf Of Matt Chotin
> Sent: Wednesday, October 12, 2005 9:27 AM
> To: [email protected]
> Subject: RE: [flexcoders] How would I use a variable to define the
wsdl
> param in mx:WebService?
>
>
>
> You can't redefine the wsdl parameter of a webservice in 1.5 (you
can in
> the upcoming 2.0).  However if you're just trying to change the
server
> to hit as opposed to the actual method definitions you can change
the
> endpointURI for the service.  Check the docs for more details on
that.
>

>
> Matt
>

>
> ________________________________
>
> From: [email protected]
[mailto:[email protected]] On
> Behalf Of Greg Johnson
> Sent: Wednesday, October 12, 2005 8:42 AM
> To: [email protected]
> Subject: [flexcoders] How would I use a variable to define the wsdl
> param in mx:WebService?
>

>
> iow <mx:WebService id="maincfc" wsdl=maincfc>
>
> Where I set a variable maincfc
> var maincfc:String = "http://... ";
>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>
> ________________________________
>
> YAHOO! GROUPS LINKS
>
>
>      
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>        
> *      To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>        
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .
>
>
> ________________________________
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to