vb.net中的JSON Web服务 [英] JSON web service in vb.net

查看:89
本文介绍了vb.net中的JSON Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我创建了一个json格式的Web服务,其中我收到以下消息:属性说明符不是完整的语句.使用行继续将属性应用于以下语句."


i created an json format web service in which iam getting the message"Attribute specifier is not a complete statement. Use a line continuation to apply the attribute to the following statement."
in the line

<ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _


我不知道有什么问题请帮助我.


i dont know whats the problem pls help me out.

<System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class Booking
    Inherits System.Web.Services.WebService
     <WebMethod()> _
<ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _

    Public Function MobileBooking(ByVal Pickuplocation As String, ByVal Droplocation As String, ByVal latitude As String, ByVal longitude As String, ByVal Pickuptime As String, ByVal callerid As String, ByVal callername As String, ByVal companyid As String, ByVal frid As String) As String

推荐答案

与Bernhard达成协议,之后出现空行:

Agreed with Bernhard, there''s an empty line after:

<scriptmethod(responseformat:> _


这篇关于vb.net中的JSON Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆