1 Reply Latest reply on Nov 2, 2011 6:22 AM by saisri2k2

    Change webservice reference at deployment

    syedemad

      Hi All

       

      I am fairly new to flex and using FlexBuilder 3. In the application webservice callas are made by importing the Webservice reference, once imported the GUI creates the .as files for client proxy. I then create object of webservice in code and call the ws operation like:

       

      wsLogin.adddoLoginEventListener(hdoLogin2);

       

                                                        var dl:DoLogin = new DoLogin();

                                                        dl.cnicNum = txtCnicNum.text;

                                                        dl.loginID = txtLoginID.text;

       

                                                        wsLogin.doLogin(dl);

       

      Now suppose I added the reference of ws from http://1.1.1.1/WS/Service.wsdl I build the project in release and after that I wish to change the IP of the ws like: http://1.1.1.2/WS/Service.wsdl

      provided both services have same operations and logic. Is that possible? Please help me in this regard or clarify the possibilities to achieve this.

       

      Thanks in Advance