Listing G
'------------------------------------------------------------------------------
' <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 wsdl, Version=1.0.3705.288.
'
Namespace OrderProxy
   
    '<remarks/>
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Web.Services.WebServiceBindingAttribute(Name:="OrderWSSoap", [Namespace]:="http://tempuri.org/"),  _
     System.Xml.Serialization.XmlIncludeAttribute(GetType(System.Object()))>  _
    Public Class OrderWS
        Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
       
        Public OrderSecurityContextValue As OrderSecurityContext
       
        '<remarks/>
        Public Sub New()
            MyBase.New
            Me.Url = "http://localhost/WSB2BJohn/ws/OrderWS.asmx"
        End Sub
       
        '<remarks/>
        <System.Web.Services.Protocols.SoapHeaderAttribute("OrderSecurityContextValue"),  _
         System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateOrder", RequestNamespace:="http://tempuri.org/", ResponseNamespace:="http://tempuri.org/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>  _
        Public Function CreateOrder(ByVal OrderId As Integer, ByVal BookIds() As Object) As Boolean
            Dim results() As Object = Me.Invoke("CreateOrder", New Object() {OrderId, BookIds})
            Return CType(results(0),Boolean)
        End Function
       
        '<remarks/>
        Public Function BeginCreateOrder(ByVal OrderId As Integer, ByVal BookIds() As Object, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("CreateOrder", New Object() {OrderId, BookIds}, callback, asyncState)
        End Function
       
        '<remarks/>
       Public Function EndCreateOrder(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("OrderSecurityContextValue"),  _
         System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetOrders", RequestNamespace:="http://tempuri.org/", ResponseNamespace:="http://tempuri.org/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>  _
        Public Function GetOrders(ByVal OrderId As Integer, ByVal OrderStatus As String, ByVal ClientId As Integer) As System.Data.DataSet
            Dim results() As Object = Me.Invoke("GetOrders", New Object() {OrderId, OrderStatus, ClientId})
            Return CType(results(0),System.Data.DataSet)
        End Function
       
        '<remarks/>
        Public Function BeginGetOrders(ByVal OrderId As Integer, ByVal OrderStatus As String, ByVal ClientId As Integer, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("GetOrders", New Object() {OrderId, OrderStatus, ClientId}, callback, asyncState)
        End Function
       
        '<remarks/>
        Public Function EndGetOrders(ByVal asyncResult As System.IAsyncResult) As System.Data.DataSet
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),System.Data.DataSet)
        End Function
    End Class
   
    '<remarks/>
    <System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://tempuri.org/"),  _
     System.Xml.Serialization.XmlRootAttribute([Namespace]:="http://tempuri.org/", IsNullable:=false)>  _
    Public Class OrderSecurityContext
        Inherits SoapHeader
       
        '<remarks/>
        Public ClientId As Integer
       
        '<remarks/>
        Public WSToken As String
    End Class
End Namespace