I am trying to run a web service from a javascript function but am coming across problems.
It says "'RssService' is undefined" but I cannot see why.
I know the Namespace is correct and that the service works correctly as I can get it to work in another project easily.
If I navigate to the webservice/jsdebug and copy the code from this file into the javascript on the page (so to add the proxy code manually) it does one of two things -
-
If the code from the jsdebug file is inserted into the function calling the webservice it works correctly
-
if the code is placed otuside of a function I get a "'Type' is undefined'
Does anyone know why this 'Type is undefined' error is occouring? Why does it not like the Type namespace outside of a function?
Or does anyone have any other ideas why this may not be working?