how to use WSDL,exe generated code?

Discussion in 'ASP .Net Web Services' started by jackhandy30@gmail.com, Oct 6, 2006.

  1. Guest

    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
     
    , Oct 6, 2006
    #1
    1. Advertising

  2. <> wrote in message
    news:...
    > 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
     
    John Saunders, Oct 6, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stephen Edgecombe

    WSDL.EXE: WSDL Import Directive

    Stephen Edgecombe, Aug 13, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    259
    Stephen Edgecombe
    Aug 13, 2003
  2. RH
    Replies:
    1
    Views:
    273
    Dino Chiesa [Microsoft]
    May 27, 2004
  3. mrnu

    wsdl.exe fails with WebMethods generated wsdl file

    mrnu, Jun 7, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    222
  4. TR
    Replies:
    2
    Views:
    1,432
  5. Replies:
    3
    Views:
    498
    John Saunders
    Oct 7, 2008
Loading...

Share This Page