# \[Flash 8\] Issues extending WebService class

**URL:** https://forum.kirupa.com/t/flash-8-issues-extending-webservice-class/186813
**Category:** flash
**Created:** [April 24, 2006, 8:00pm UTC](https://forum.kirupa.com/t/flash-8-issues-extending-webservice-class/186813 "2006-04-24T20:00:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tradnairb](https://avatars.discourse-cdn.com/v4/letter/t/b19c9b/32.png) [@tradnairb](https://forum.kirupa.com/u/tradnairb)
#### Post date: [April 24, 2006, 8:00pm UTC](https://forum.kirupa.com/t/flash-8-issues-extending-webservice-class/186813/1 "2006-04-24T20:00:09Z")

</div>

Greetings everyone, hopefully someone can shed some light on a problem I am having.

I would like to extend the WebService class in order to add a couple of functions to it. The problem is, when I use the subclass, I get the following message:  
‘Error opening URL “file:///\<PATH WHERE FLA IS SAVED\>/undefined”’

The subclass looks like this:

```auto

import mx.services.*;

class com.testing.TestWebService extends WebService{
    var foo:String;
    //constructor
    function TestWebService(){
        foo = "TestWebService";
    }
}

```

And the FLA code looks like this:

```auto
import com.testing.*

var testWebService:TestWebService = new TestWebService("http://honkytonk:4242/OrcaSASoap/wsdl.xml");

trace(testWebService.foo);

```

The strange thing is, if I extend the MovieClip class instead of the WebService class, everything is peachy. This makes me think there is something that I am missing, or do not know about the WebService class.

FYI: The code above is the “I want to get it to load without errors” example. My reasons for extending the class go beyond adding a “foo” property. 😉

NOTE: The WSDL path is to my local machine and therefore not accessible to the masses. Any WSDL should recreate the same results.
