webservice - unknown web method parameter name methodname

后端 未结 3 559
小鲜肉
小鲜肉 2021-01-19 15:10

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

*\"POST [http]://localhost:50536/FullCal

3条回答
  •  星月不相逢
    2021-01-19 15:38

    That was the mistake: the method had to be "not Shared", and without the "Messagename":

     _
     _
    Public 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
    

提交回复
热议问题