If you have the C# file in the project, you are done. Just reference the
class name in your code. I created a web service called MathClass which had
a method called AddInts. In the windows form code, I just referenced the
class (MathClass.cs file created by wsdl).
....
MathClass myMathClass;
int myResult, v1, v2;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
myMathClass = new MathClass();
v1 = Int32.Parse( textBox2.Text );
v2 = Int32.Parse( textBox3.Text );
myResult = myMathClass.AddInts( v1, v2 );
textBox1.Text = myResult.ToString();
}
"Vi" <Vi@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hi,
I'd like to invoke a web service from a Windows Forms client, without
creating a web reference to the web service in the client project (VS.NET
2005).
I created the proxy class using wsdl.exe, added it to the client project
and
I'm not sure what to do next in order to reference/invoke the web
serivice.
I read somewhere that it's possible, but all the examples I found are
using
web references.
Thanks.