webservice - unknown web method parameter name methodname

Posted by ch3r1f on Stack Overflow See other posts from Stack Overflow or by ch3r1f
Published on 2010-12-28T02:55:32Z Indexed on 2010/12/28 8:54 UTC
Read the original article Hit count: 310

Filed under:
|
|
|

I called a webservice for fetching items in fullcalendar. The method is never called and firebug gives this error:

*"POST [http]://localhost:50536/FullCalendar/ServicioFullCalendar.asmx/GetEventosCalendario POST [http]://localhost:50536/FullCalendar/ServicioFullCalendar.asmx/GetEventosCalendario

500 Internal Server Error 1.01s" "unknown web method parameter name methodname"*

Here is the asmx.vb code:

    <System.Web.Script.Services.ScriptService()> _
<System.Web.Services.WebService(Namespace:="http://localhost/uva/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class ServicioFullCalendar
    Inherits System.Web.Services.WebService

    <ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _
    <WebMethod(MessageName:="ObtieneEventos")> _
    Public Shared Function GetEventosCalendario(ByVal startDate As String, ByVal endDate As String) As String
        Try
            Return CalendarioMensualDAO.Instance.getEventos(startDate, endDate)

        Catch ex As Exception
            Throw New Exception("FullCalendar:GetEventos: " & ex.Message)
        Finally

        End Try
    End Function

The webservice is "loaded" from the fullcalendar as follows:

events: "ServicioFullCalendar.asmx/GetEventosCalendario",

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about web-services