how to use WSDL,exe generated code?

J

jackhandy30

Using the .NET 1.1 Framework SDK WSDL.EXE tool and VS.NET 2003, how do
I use the code generated from WSDL.EXE. I have a WSDL file and I have
successfully called WSDL.exe like so:

wsdl /out:myproxy.cs mywsdl.wsdl

So the above command line generates a new text file myproxy.cs which
has C# classes defined for each method defined in mywsdl.wsdl. The
question is how do I tie this to an asmx. I don't see any [WebMethod]
attributes attached.... Is this a simple process?

Jeremy
 
J

John Saunders

Using the .NET 1.1 Framework SDK WSDL.EXE tool and VS.NET 2003, how do
I use the code generated from WSDL.EXE. I have a WSDL file and I have
successfully called WSDL.exe like so:

wsdl /out:myproxy.cs mywsdl.wsdl

So the above command line generates a new text file myproxy.cs which
has C# classes defined for each method defined in mywsdl.wsdl. The
question is how do I tie this to an asmx. I don't see any [WebMethod]
attributes attached.... Is this a simple process?

You want to use the /server switch. You want a stub, not a proxy. The proxy
is for clients.

As to how to use the result, you could derive from the class it generates
for the server.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top