Still not sure that cloning is the best option, although centralization
of webservices is a good idea.

When you say webservices, does it mean there is a different wsdl for
each webservice?
Or are they  just plain multiple instances of the same webservice( one
single url)?

A webservice call is operation-centric. So if your flex client does not
invoke same operations
concurrently and there is a single wsdl to load, you could manage with a
single webservice
instance for the whole application.

~Peeyush

On Fri, Mar 21, 2008 at 8:50 PM, handitan <[EMAIL PROTECTED]> wrote:

>   Hi Peeyush,
>
> It's kind of long to explain it but in short, this is to help me
> centralize all my webservice call into one location.
>
> So instead of having <mx:WebService /> in every component, I am just
> calling webservice from a class that contains all the WebServices.
> i.e.
>
> class CustomWS
> {
> public getWS():WebService
> {
> //This is where the cloning takes place
> }
>
> public populateGridWS():void
> {
> var ws:WebService = getWS();
> ws.populateGrid();
> }
> }
>
> Hope this is pretty clear.
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Peeyush
> Tuli" <[EMAIL PROTECTED]>
> wrote:
>
> >
> > Can you let us know the your requirement for doing this?
> >
> > ~Peeyush
> >
> > On Fri, Mar 21, 2008 at 4:01 AM, handitan <[EMAIL PROTECTED]> wrote:
> >
> > > Howdy,
> > >
> > > I have been trying to clone a WebService instance with no result.
> > > Is it really possible to do it?
> > >
> > > I have looked on the web and Flex 3 help but I couldn't find the
> way.
> > > I already tried using ObjectUtil.copy() but it is not copying all
> the
> > > webservice's members.
> > >
> > > Thank you.
> > >
> > >
> > >
> >
>
>  
>

Reply via email to