SOAP WebService WSDL caching

I am really hoping that someone on this forum has used the WebService classes, because I have a few tricky questions.

To start off, I have a situation where I am using a SOAP WebService. I start the service in Actionscript with:

myService = new WebService(myWSDL_URL, myLogObj);

Here is the link to the Web Service class on livedocs and the [URL=“http://livedocs.adobe.com/flash/8/main/00004269.html”]Web Service Constuctor. Apparently “When you call new WebService(), you provide a WSDL URL, and Flash Player returns a WebService object”. Thats great!

My issue is that the server that my WSDL is on, seems to be very slow, and the WSDL file is very large. So it takes around 5 seconds to initially grab the WSDL file. This wouldn’t be too bad, but for what I am doing I need to create about 5 or more WebService objects all using the same WSDL (this is a must). It seems pointless to download the WSDL for each new object when I know it is the same.

What I am wanting is a way to maybe cache the WSDL locally, or in flash(maybe as an XML object), then apply it to a new WebService object. Or even if someone could tell me how to access the data inside the WebService Object and apply it to a new one. Does anyone have any ideas.

I have tried a few ideas. I tried using a “clone object” script to clone the WebService object once the original has loaded the WSDL. But it crashed flash because the loop is too big.

Is this a case to use a “prototype”? I’m not too sure what it even is. Would it be useful in this situation?