This is probably a newbie face-palm question, but I can't figure this out. I'm working with a web service from a Magento store (i.e. code in the Magento store is accessing a remote web service). It so happens in this case I have a local WSDL file that I need to reference. I've done this before using a remote URL to the WSDL file and that works fine. However, with a local file, I can't figure out how to reference it. I have it working by putting the file in a *wsdl* subdirectory of the root of the site and then I can reference it using *http://mysite/wsdl/thefile.wsdl*. However, I'd prefer to use a relative path to reference it (mainly due to the fact that I plan to deploy this same code to different sites and I'd like to use the same code for all).

I guess my question comes down to this: When you instantiate an instance of PHP's SoapClient like this `$client = new SoapClient("thefile.wsdl")`, where is it looking for *thefile.wsdl*? I thought it would be local to the PHP file that instantiates the SoapClient, but it didn't work when I put the file in the same folder. I tried the */includes* directory as well as *app/code/local*.

I'm sure this is a no brainer for seasoned programmers, but sometimes the basics allude me...