WebService call using javascript

I have a requirement to make some webservice calls from an html page. I've been trying to mimic Jeff's example found here https://community.sagecrm.com/partner_community/b/hints_tips_and_tricks/archive/2010/04/13/grabbing-serverside-information-using-a-soap-webservice-call-ajax.aspx

However all I can get is an access denied message if I run the code from anywhere from the C: drive of my test server. If I run it from the server using localhost, I still get access denied. only when ran from C:\ will it allow me to post to the webservice.

I CAN see and read the WSDL from anywhere.