小编ch3*_*r1f的帖子

webservice - 未知的Web方法参数名称methodname

我调用了一个web服务来获取fullcalendar中的项目.永远不会调用该方法,firebug会给出以下错误:

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

500内部服务器错误1.01s""未知的Web方法参数名称methodname"*

这是asmx.vb代码:

    <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
Run Code Online (Sandbox Code Playgroud)

web服务从fullcalendar"加载",如下所示:

events: "ServicioFullCalendar.asmx/GetEventosCalendario",
Run Code Online (Sandbox Code Playgroud)

jquery web-services asmx fullcalendar

4
推荐指数
1
解决办法
9383
查看次数

使用用户定义的数据类型调试存储过程

是否可以使用用户定义的数据类型作为参数调试存储过程?

编辑:调用它的语法是什么?(执行....)

我的风格:

CREATE TYPE [dbo].[FacturaInspeccion] AS TABLE(  
    [sIdServicio] [nvarchar](3) NOT NULL,  
    [nIdTipoInspeccion] [int] NOT NULL,  
    [sIdTipoMotivoInspeccion] [nvarchar](2) NOT NULL,  
    [nIdTipoVehiculo] [int] NOT NULL,  
    [nBase] [real] NOT NULL,  
    [nNoPeriodica] [real] NULL,  
    [nTarifaConProyecto] [real] NULL,  
    [nTarifaSinyecto] [real] NULL,  
    [nTasaTrafico] [real] NULL,  
    [nDescuento] [real] NULL,  
    [nTotal] [float] NULL  
Run Code Online (Sandbox Code Playgroud)

)
GO

t-sql sql-server

2
推荐指数
1
解决办法
5597
查看次数

标签 统计

asmx ×1

fullcalendar ×1

jquery ×1

sql-server ×1

t-sql ×1

web-services ×1