[Mono-aspnet-list] webservice 'is not defined' for clientside proxy
nzsaint
chrisbrown76 at hotmail.com
Thu Aug 20 02:33:45 EDT 2009
I have a page using a ScriptManager to create a clientside proxy for my
webservice as follows:
<asp:ScriptManager ID="ScriptManager1" runat="server"
OnAsyncPostBackError="ScriptManager1_AsyncPostBackError">
<Services>
<asp:ServiceReference Path="TestWS.asmx" />
</Services>
</asp:ScriptManager>
When I attempt to call the webservice from Javascript using the format:
TestWS.WebMethod(CallbackFunction);
I get a script error 'TestWS is not defined'. If I open the webservice url
directly in my browser I get the test page and can invoke the webmethod
without any problems.
The TestWS.asmx file is in the same folder as the aspx page that is calling
it. I am using Mono version 2.4.2.3-17.1 on openSUSE 11.1. The problem
occurs whether I use xsp2 directly or with mod_mono. It is working correctly
in my non-Mono environment.
Can anyone help? Thank you.
--
View this message in context: http://www.nabble.com/webservice-%27is-not-defined%27-for-clientside-proxy-tp25056713p25056713.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list
mailing list