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. Advertisements

  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. Advertisements

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:
    447
    Stephen Edgecombe
    Aug 13, 2003
  2. Josh Yeager

    Missing disco.exe and wsdl.exe

    Josh Yeager, Nov 7, 2003, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    376
    Josh Yeager
    Nov 11, 2003
  3. RH
    Replies:
    1
    Views:
    535
    Dino Chiesa [Microsoft]
    May 27, 2004
  4. mrnu

    wsdl.exe fails with WebMethods generated wsdl file

    mrnu, Jun 7, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    428
  5. Sebastien Tardif

    .NET should move documentation from the WSDL to the generated code

    Sebastien Tardif, Nov 12, 2004, in forum: ASP .Net Web Services
    Replies:
    5
    Views:
    257
    Steven Cheng[MSFT]
    Dec 17, 2004
  6. TR
    Replies:
    2
    Views:
    1,563
  7. Dave C

    wsdl.exe & disco.exe Problems.

    Dave C, Jan 4, 2007, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    480
    Dave C
    Jan 4, 2007
  8. Replies:
    3
    Views:
    696
    John Saunders
    Oct 7, 2008
Loading...