home *** CD-ROM | disk | FTP | other *** search
Wrap
'------------------------------------------------------------------------------ ' <autogenerated> ' This code was generated by a tool. ' Runtime Version: 1.0.3705.0 ' ' 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.0. ' Namespace localhost '<remarks/> <System.Diagnostics.DebuggerStepThroughAttribute(), _ System.ComponentModel.DesignerCategoryAttribute("code"), _ System.Web.Services.WebServiceBindingAttribute(Name:="SampleServiceSoap", [Namespace]:="http://www.vb2themax.com/")> _ Public Class SampleService Inherits System.Web.Services.Protocols.SoapHttpClientProtocol Public UserInfoHeaderValue As UserInfoHeader Public AccountInfoHeaderValue As AccountInfoHeader '<remarks/> Public Sub New() MyBase.New Me.Url = "http://localhost/advancedws/sampleservice.asmx" End Sub '<remarks/> <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.vb2themax.com/GetTime", RequestNamespace:="http://www.vb2themax.com/", ResponseNamespace:="http://www.vb2themax.com/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function GetTime(ByVal arg As Integer) As Date Dim results() As Object = Me.Invoke("GetTime", New Object() {arg}) Return CType(results(0),Date) End Function '<remarks/> Public Function BeginGetTime(ByVal arg As Integer, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("GetTime", New Object() {arg}, callback, asyncState) End Function '<remarks/> Public Function EndGetTime(ByVal asyncResult As System.IAsyncResult) As Date Dim results() As Object = Me.EndInvoke(asyncResult) Return CType(results(0),Date) End Function '<remarks/> <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.vb2themax.com/GetTimeCounter", RequestNamespace:="http://www.vb2themax.com/", ResponseNamespace:="http://www.vb2themax.com/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function GetTimeCounter() As Integer Dim results() As Object = Me.Invoke("GetTimeCounter", New Object(-1) {}) Return CType(results(0),Integer) End Function '<remarks/> Public Function BeginGetTimeCounter(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("GetTimeCounter", New Object(-1) {}, callback, asyncState) End Function '<remarks/> Public Function EndGetTimeCounter(ByVal asyncResult As System.IAsyncResult) As Integer Dim results() As Object = Me.EndInvoke(asyncResult) Return CType(results(0),Integer) End Function '<remarks/> <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.vb2themax.com/IncrementCounter", RequestNamespace:="http://www.vb2themax.com/", ResponseNamespace:="http://www.vb2themax.com/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function IncrementCounter() As Integer Dim results() As Object = Me.Invoke("IncrementCounter", New Object(-1) {}) Return CType(results(0),Integer) End Function '<remarks/> Public Function BeginIncrementCounter(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("IncrementCounter", New Object(-1) {}, callback, asyncState) End Function '<remarks/> Public Function EndIncrementCounter(ByVal asyncResult As System.IAsyncResult) As Integer Dim results() As Object = Me.EndInvoke(asyncResult) Return CType(results(0),Integer) End Function '<remarks/> <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.vb2themax.com/GetSessionID", RequestNamespace:="http://www.vb2themax.com/", ResponseNamespace:="http://www.vb2themax.com/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function GetSessionID() As String Dim results() As Object = Me.Invoke("GetSessionID", New Object(-1) {}) Return CType(results(0),String) End Function '<remarks/> Public Function BeginGetSessionID(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("GetSessionID", New Object(-1) {}, callback, asyncState) End Function '<remarks/> Public Function EndGetSessionID(ByVal asyncResult As System.IAsyncResult) As String Dim results() As Object = Me.EndInvoke(asyncResult) Return CType(results(0),String) End Function '<remarks/> <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.vb2themax.com/LengthyMethodCall", RequestNamespace:="http://www.vb2themax.com/", ResponseNamespace:="http://www.vb2themax.com/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function LengthyMethodCall(ByVal seconds As Integer) As Integer Dim results() As Object = Me.Invoke("LengthyMethodCall", New Object() {seconds}) Return CType(results(0),Integer) End Function '<remarks/> Public Function BeginLengthyMethodCall(ByVal seconds As Integer, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("LengthyMethodCall", New Object() {seconds}, callback, asyncState) End Function '<remarks/> Public Function EndLengthyMethodCall(ByVal asyncResult As System.IAsyncResult) As Integer Dim results() As Object = Me.EndInvoke(asyncResult) Return CType(results(0),Integer) End Function '<remarks/> <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.vb2themax.com/OneWayLengthyMethodCall", RequestNamespace:="http://www.vb2themax.com/", OneWay:=true, Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Sub OneWayLengthyMethodCall(ByVal seconds As Integer) Me.Invoke("OneWayLengthyMethodCall", New Object() {seconds}) End Sub '<remarks/> Public Function BeginOneWayLengthyMethodCall(ByVal seconds As Integer, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("OneWayLengthyMethodCall", New Object() {seconds}, callback, asyncState) End Function '<remarks/> Public Sub EndOneWayLengthyMethodCall(ByVal asyncResult As System.IAsyncResult) Me.EndInvoke(asyncResult) End Sub '<remarks/> <System.Web.Services.Protocols.SoapRpcMethodAttribute("http://www.vb2themax.com/GetDocument", RequestNamespace:="http://www.vb2themax.com/", ResponseNamespace:="http://www.vb2themax.com/")> _ Public Function GetDocument(ByVal docname As String) As Document Dim results() As Object = Me.Invoke("GetDocument", New Object() {docname}) Return CType(results(0),Document) End Function '<remarks/> Public Function BeginGetDocument(ByVal docname As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("GetDocument", New Object() {docname}, callback, asyncState) End Function '<remarks/> Public Function EndGetDocument(ByVal asyncResult As System.IAsyncResult) As Document Dim results() As Object = Me.EndInvoke(asyncResult) Return CType(results(0),Document) End Function '<remarks/> <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.vb2themax.com/ThrowAnException", RequestNamespace:="http://www.vb2themax.com/", ResponseNamespace:="http://www.vb2themax.com/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Sub ThrowAnException() Me.Invoke("ThrowAnException", New Object(-1) {}) End Sub '<remarks/> Public Function BeginThrowAnException(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("ThrowAnException", New Object(-1) {}, callback, asyncState) End Function '<remarks/> Public Sub EndThrowAnException(ByVal asyncResult As System.IAsyncResult) Me.EndInvoke(asyncResult) End Sub '<remarks/> <System.Web.Services.Protocols.SoapHeaderAttribute("UserInfoHeaderValue", Required:=false), _ System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.vb2themax.com/GetClientTime", RequestNamespace:="http://www.vb2themax.com/", ResponseNamespace:="http://www.vb2themax.com/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function GetClientTime() As String Dim results() As Object = Me.Invoke("GetClientTime", New Object(-1) {}) Return CType(results(0),String) End Function '<remarks/> Public Function BeginGetClientTime(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("GetClientTime", New Object(-1) {}, callback, asyncState) End Function '<remarks/> Public Function EndGetClientTime(ByVal asyncResult As System.IAsyncResult) As String Dim results() As Object = Me.EndInvoke(asyncResult) Return CType(results(0),String) End Function '<remarks/> <System.Web.Services.Protocols.SoapHeaderAttribute("AccountInfoHeaderValue"), _ System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.vb2themax.com/ProtectedMethod", RequestNamespace:="http://www.vb2themax.com/", ResponseNamespace:="http://www.vb2themax.com/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function ProtectedMethod() As Boolean Dim results() As Object = Me.Invoke("ProtectedMethod", New Object(-1) {}) Return CType(results(0),Boolean) End Function '<remarks/> Public Function BeginProtectedMethod(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("ProtectedMethod", New Object(-1) {}, callback, asyncState) End Function '<remarks/> Public Function EndProtectedMethod(ByVal asyncResult As System.IAsyncResult) As Boolean Dim results() As Object = Me.EndInvoke(asyncResult) Return CType(results(0),Boolean) End Function '<remarks/> <System.Web.Services.Protocols.SoapHeaderAttribute("AccountInfoHeaderValue"), _ System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.vb2themax.com/AnotherProtectedMethod", RequestNamespace:="http://www.vb2themax.com/", ResponseNamespace:="http://www.vb2themax.com/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function AnotherProtectedMethod() As Boolean Dim results() As Object = Me.Invoke("AnotherProtectedMethod", New Object(-1) {}) Return CType(results(0),Boolean) End Function '<remarks/> Public Function BeginAnotherProtectedMethod(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("AnotherProtectedMethod", New Object(-1) {}, callback, asyncState) End Function '<remarks/> Public Function EndAnotherProtectedMethod(ByVal asyncResult As System.IAsyncResult) As Boolean Dim results() As Object = Me.EndInvoke(asyncResult) Return CType(results(0),Boolean) End Function '<remarks/> <System.Web.Services.Protocols.SoapHeaderAttribute("AccountInfoHeaderValue"), _ System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.vb2themax.com/YetAnotherProtectedMethod", RequestNamespace:="http://www.vb2themax.com/", ResponseNamespace:="http://www.vb2themax.com/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _ Public Function YetAnotherProtectedMethod() As Boolean Dim results() As Object = Me.Invoke("YetAnotherProtectedMethod", New Object(-1) {}) Return CType(results(0),Boolean) End Function '<remarks/> Public Function BeginYetAnotherProtectedMethod(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult Return Me.BeginInvoke("YetAnotherProtectedMethod", New Object(-1) {}, callback, asyncState) End Function '<remarks/> Public Function EndYetAnotherProtectedMethod(ByVal asyncResult As System.IAsyncResult) As Boolean Dim results() As Object = Me.EndInvoke(asyncResult) Return CType(results(0),Boolean) End Function End Class '<remarks/> <System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.vb2themax.com/"), _ System.Xml.Serialization.XmlRootAttribute([Namespace]:="http://www.vb2themax.com/", IsNullable:=false)> _ Public Class AccountInfoHeader Inherits SoapHeader '<remarks/> Public UserName As String '<remarks/> Public Password As String End Class '<remarks/> <System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.vb2themax.com/"), _ System.Xml.Serialization.XmlRootAttribute([Namespace]:="http://www.vb2themax.com/", IsNullable:=false)> _ Public Class UserInfoHeader Inherits SoapHeader '<remarks/> Public Culture As String '<remarks/> Public TimeOffset As Single End Class '<remarks/> <System.Xml.Serialization.SoapTypeAttribute("Document", "http://www.vb2themax.com/encodedTypes"), _ System.Xml.Serialization.SoapIncludeAttribute(GetType(Invoice)), _ System.Xml.Serialization.SoapIncludeAttribute(GetType(PurchaseOrder))> _ Public Class Document '<remarks/> Public [Date] As Date '<remarks/> Public Number As Integer End Class '<remarks/> <System.Xml.Serialization.SoapTypeAttribute("Invoice", "http://www.vb2themax.com/encodedTypes")> _ Public Class Invoice Inherits Document '<remarks/> Public Total As Decimal End Class '<remarks/> <System.Xml.Serialization.SoapTypeAttribute("PurchaseOrder", "http://www.vb2themax.com/encodedTypes")> _ Public Class PurchaseOrder Inherits Document '<remarks/> Public AuthorizedBy As String End Class End Namespace