📄 testservice.vb
字号:
'------------------------------------------------------------------------------
' <autogenerated>
' This class was generated by a tool.
' Runtime Version: 1.0.2204.21
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </autogenerated>
'------------------------------------------------------------------------------
Imports System.Xml.Serialization
Imports System.Web.Services.Protocols
Imports System.Web.Services
Public Class TestService
Inherits System.Web.Services.Protocols.SoapClientProtocol
Public Sub New()
MyBase.New
Me.Url = "http://localhost/aspbook_wip/chapter9/basic/basicservice.asmx"
End Sub
Public Function <System.Web.Services.Protocols.SoapMethodAttribute("http://tempuri.org/TestFunction")> TestFunction(ByVal vInput As Boolean) As String
Dim results() As Object = Me.Invoke("TestFunction", New Object() {vInput})
Return CType(results(0),String)
End Function
Public Function BeginTestFunction(ByVal vInput As Boolean, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
Return Me.BeginInvoke("TestFunction", New Object() {vInput}, callback, asyncState)
End Function
Public Function EndTestFunction(ByVal asyncResult As System.IAsyncResult) As String
Dim results() As Object = Me.EndInvoke(asyncResult)
Return CType(results(0),String)
End Function
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -