Listing 2: generated vb proxy
Listing 3: c# proxy
'------------------------------------------------------
'
' This code was generated by a tool.
' Runtime Version: 1.0.3328.4
'
' Changes to this file may cause incorrect behavior and will be
lost if
' the code is regenerated.
'
'------------------------------------------------------
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.3328.4.
'
'
System.Web.Services.WebServiceBindingAttribute(Name:=
"WorkOrderSequencer", [Namespace]:="http://tempuri.org/")> _
Public Class WorkOrderSequencer
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
'
Public Sub New()
MyBase.New
Me.Url = "http://localhost:8180/..."
End Sub
...
Public Function getWorkOrderSequenceForEmployee ...
Dim results() As Object =
Me.Invoke("getWorkOrderSequenceForEmployee", New Object() {...})
Return ...
End Function
...
End Class
//-----------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version: 1.0.3328.4
//
// Changes to this file may cause incorrect
behavior and will be lost if
// the code is regenerated.
//
//-----------------------------------------------------
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
///
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute
(Name="WorkOrderSequencer", Namespace="http://tempuri.org/")]
public class WorkOrderSequencer:
System.Web.Services.Protocols.SoapHttpClientProtocol {
///
public WorkOrderSequencer () {
this.Url = "://localhost:8180/...";
}
...
public ... getWorkOrderSequenceForEmployee (...) {
object[] results = this.Invoke("getWorkOrderSequenceForEmployee ",
new object[] {
...});
return ...
}
...
}