📄 reference.vb
字号:
'------------------------------------------------------------------------------
' <autogenerated>
' This code was generated by a tool.
' Runtime Version: 1.0.3705.288
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </autogenerated>
'------------------------------------------------------------------------------
Option Strict Off
Option Explicit On
Imports System
Imports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml.Serialization
'
'This source code was auto-generated by Microsoft.VSDesigner, Version 1.0.3705.288.
'
Namespace com.unisysfsp.weather
'<remarks/>
<System.Diagnostics.DebuggerStepThroughAttribute(), _
System.ComponentModel.DesignerCategoryAttribute("code"), _
System.Web.Services.WebServiceBindingAttribute(Name:="WeatherServicesSoap", [Namespace]:="http://www.unisys.com/WebServices/")> _
Public Class WeatherServices
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
'<remarks/>
Public Sub New()
MyBase.New
Me.Url = "http://weather.unisysfsp.com/PDCWebService/WeatherServices.asmx"
End Sub
'<remarks/>
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.unisys.com/WebServices/GetWeather", RequestNamespace:="http://www.unisys.com/WebServices/", ResponseNamespace:="http://www.unisys.com/WebServices/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Public Function GetWeather(ByVal ZipCode As String) As WeatherForecast
Dim results() As Object = Me.Invoke("GetWeather", New Object() {ZipCode})
Return CType(results(0),WeatherForecast)
End Function
'<remarks/>
Public Function BeginGetWeather(ByVal ZipCode As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
Return Me.BeginInvoke("GetWeather", New Object() {ZipCode}, callback, asyncState)
End Function
'<remarks/>
Public Function EndGetWeather(ByVal asyncResult As System.IAsyncResult) As WeatherForecast
Dim results() As Object = Me.EndInvoke(asyncResult)
Return CType(results(0),WeatherForecast)
End Function
'<remarks/>
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.unisys.com/WebServices/GetWeatherText", RequestNamespace:="http://www.unisys.com/WebServices/", ResponseNamespace:="http://www.unisys.com/WebServices/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Public Function GetWeatherText(ByVal ZipCode As String) As String
Dim results() As Object = Me.Invoke("GetWeatherText", New Object() {ZipCode})
Return CType(results(0),String)
End Function
'<remarks/>
Public Function BeginGetWeatherText(ByVal ZipCode As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
Return Me.BeginInvoke("GetWeatherText", New Object() {ZipCode}, callback, asyncState)
End Function
'<remarks/>
Public Function EndGetWeatherText(ByVal asyncResult As System.IAsyncResult) As String
Dim results() As Object = Me.EndInvoke(asyncResult)
Return CType(results(0),String)
End Function
End Class
'<remarks/>
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.unisys.com/WebServices/")> _
Public Class WeatherForecast
'<remarks/>
Public ZipCode As String
'<remarks/>
Public CityShortName As String
'<remarks/>
Public Time As String
'<remarks/>
Public Sunrise As String
'<remarks/>
Public Sunset As String
'<remarks/>
Public CurrentTemp As String
'<remarks/>
Public DayForecast() As DailyForecast
End Class
'<remarks/>
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.unisys.com/WebServices/")> _
Public Class DailyForecast
'<remarks/>
Public Day As String
'<remarks/>
Public Forecast As String
'<remarks/>
Public Abbrev As String
'<remarks/>
Public HighTemp As String
'<remarks/>
Public LowTemp As String
End Class
End Namespace
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -