How to build a web service outside of VS.NET ?

Discussion in 'ASP .Net Web Services' started by Chakra, Nov 18, 2004.

  1. Chakra

    Chakra Guest

    Hello,

    I am using a make file to build a Windows.NET application , which references
    a
    couple of local web services. The web services have alias names when they
    are added in VS.NET as 'web-reference'. However, when i build externally,
    with a make file (Nant), i
    am not sure how to use this alias - at most i can use the 'wsdl' output of
    the web service (reference.cs), which has it's own namespace. Any ideas on
    this ?

    Thanks and regards,

    Chak.
    Chakra, Nov 18, 2004
    #1
    1. Advertising

  2. I am not clear on what you are asking.

    > The web services have alias names when they
    > are added in VS.NET as 'web-reference'.


    When you add a web referenc ein VS2003, you are generating and compiling a
    client-side proxy for the webservice. The proxy is a class, which
    stipulates a namespace. (what is this alias thing?)

    > i
    > am not sure how to use this alias - at most i can use the 'wsdl' output of
    > the web service (reference.cs), which has it's own namespace. Any ideas on
    > this ?


    I don't know what you mean by "the 'wsdl' output". There is a tool in the
    ..NET Framework sdk called wsdl.exe, which can produce client-side proxies
    for webservices, just as does "add web ref" in VS2003. There are command
    line params to wsdl.exe that allow you to specify the output filename, as
    well as the namespace for the proxy class.

    At this point you can examine the generated .cs code or vb code to determine
    the name of the generated proxy class, its namespace, and the various
    methods the class exposes.

    you mentioned makefiles and nant - I guess you're using Nant.
    Here's a makefile showing the use of wsdl.exe.
    http://cheeso.members.winisp.net/srcview.aspx?dir=books&file=makefile

    you can make your own conversion to a nant build file.

    -D

    "Chakra" <> wrote in message
    news:unD0$...
    > Hello,
    >
    > I am using a make file to build a Windows.NET application , which
    > references
    > a
    > couple of local web services. The web services have alias names when they
    > are added in VS.NET as 'web-reference'. However, when i build externally,
    > with a make file (Nant), i
    > am not sure how to use this alias - at most i can use the 'wsdl' output of
    > the web service (reference.cs), which has it's own namespace. Any ideas on
    > this ?
    >
    > Thanks and regards,
    >
    > Chak.
    >
    >
    Dino Chiesa [Microsoft], Nov 18, 2004
    #2
    1. Advertising

  3. Chakra

    chak Guest

    Thanks for your reply.

    What i meant by 'alias' was that when you right click on 'Web Reference' in
    VS.NET, and click on 'Add web reference', it pops up a box which helps you
    select a local web service, and then there is a small box in the right side
    which says 'Web Reference Name', where you key in some suitable name for the
    reference and click on 'Add Reference' button. The name that we specify here
    , becomes the identity of the web service reference in the VS.NET project,
    and then gets used almost like a namespace in the calling programs.

    So i understand from your reply that if i were creating a proxy using wsdl,
    the namespace property of the wsdl output , would correspond to this 'Web
    Reference Name'. Am i right ?

    Thanks.


    "Dino Chiesa [Microsoft]" <> wrote in message
    news:#...
    > I am not clear on what you are asking.
    >
    > > The web services have alias names when they
    > > are added in VS.NET as 'web-reference'.

    >
    > When you add a web referenc ein VS2003, you are generating and compiling a
    > client-side proxy for the webservice. The proxy is a class, which
    > stipulates a namespace. (what is this alias thing?)
    >
    > > i
    > > am not sure how to use this alias - at most i can use the 'wsdl' output

    of
    > > the web service (reference.cs), which has it's own namespace. Any ideas

    on
    > > this ?

    >
    > I don't know what you mean by "the 'wsdl' output". There is a tool in the
    > .NET Framework sdk called wsdl.exe, which can produce client-side proxies
    > for webservices, just as does "add web ref" in VS2003. There are command
    > line params to wsdl.exe that allow you to specify the output filename, as
    > well as the namespace for the proxy class.
    >
    > At this point you can examine the generated .cs code or vb code to

    determine
    > the name of the generated proxy class, its namespace, and the various
    > methods the class exposes.
    >
    > you mentioned makefiles and nant - I guess you're using Nant.
    > Here's a makefile showing the use of wsdl.exe.
    > http://cheeso.members.winisp.net/srcview.aspx?dir=books&file=makefile
    >
    > you can make your own conversion to a nant build file.
    >
    > -D
    >
    > "Chakra" <> wrote in message
    > news:unD0$...
    > > Hello,
    > >
    > > I am using a make file to build a Windows.NET application , which
    > > references
    > > a
    > > couple of local web services. The web services have alias names when

    they
    > > are added in VS.NET as 'web-reference'. However, when i build

    externally,
    > > with a make file (Nant), i
    > > am not sure how to use this alias - at most i can use the 'wsdl' output

    of
    > > the web service (reference.cs), which has it's own namespace. Any ideas

    on
    > > this ?
    > >
    > > Thanks and regards,
    > >
    > > Chak.
    > >
    > >

    >
    >



    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.795 / Virus Database: 539 - Release Date: 11/12/2004
    chak, Nov 18, 2004
    #3
  4. Chakra

    chak Guest

    Thanks for your reply.

    What i meant by 'alias' was that when you right click on 'Web Reference' in
    VS.NET, and click on 'Add web reference', it pops up a box which helps you
    select a local web service, and then there is a small box in the right side
    which says 'Web Reference Name', where you key in some suitable name for the
    reference and click on 'Add Reference' button. The name that we specify here
    , becomes the identity of the web service reference in the VS.NET project,
    and then gets used almost like a namespace in the calling programs.

    So i understand from your reply that if i were creating a proxy using wsdl,
    the namespace property of the wsdl output , would correspond to this 'Web
    Reference Name'. Am i right ?

    Thanks.


    "Dino Chiesa [Microsoft]" <> wrote in message
    news:#...
    > I am not clear on what you are asking.
    >
    > > The web services have alias names when they
    > > are added in VS.NET as 'web-reference'.

    >
    > When you add a web referenc ein VS2003, you are generating and compiling a
    > client-side proxy for the webservice. The proxy is a class, which
    > stipulates a namespace. (what is this alias thing?)
    >
    > > i
    > > am not sure how to use this alias - at most i can use the 'wsdl' output

    of
    > > the web service (reference.cs), which has it's own namespace. Any ideas

    on
    > > this ?

    >
    > I don't know what you mean by "the 'wsdl' output". There is a tool in the
    > .NET Framework sdk called wsdl.exe, which can produce client-side proxies
    > for webservices, just as does "add web ref" in VS2003. There are command
    > line params to wsdl.exe that allow you to specify the output filename, as
    > well as the namespace for the proxy class.
    >
    > At this point you can examine the generated .cs code or vb code to

    determine
    > the name of the generated proxy class, its namespace, and the various
    > methods the class exposes.
    >
    > you mentioned makefiles and nant - I guess you're using Nant.
    > Here's a makefile showing the use of wsdl.exe.
    > http://cheeso.members.winisp.net/srcview.aspx?dir=books&file=makefile
    >
    > you can make your own conversion to a nant build file.
    >
    > -D
    >
    > "Chakra" <> wrote in message
    > news:unD0$...
    > > Hello,
    > >
    > > I am using a make file to build a Windows.NET application , which
    > > references
    > > a
    > > couple of local web services. The web services have alias names when

    they
    > > are added in VS.NET as 'web-reference'. However, when i build

    externally,
    > > with a make file (Nant), i
    > > am not sure how to use this alias - at most i can use the 'wsdl' output

    of
    > > the web service (reference.cs), which has it's own namespace. Any ideas

    on
    > > this ?
    > >
    > > Thanks and regards,
    > >
    > > Chak.
    > >
    > >

    >
    >



    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.795 / Virus Database: 539 - Release Date: 11/12/2004
    chak, Nov 18, 2004
    #4
    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. mauro
    Replies:
    0
    Views:
    413
    mauro
    Oct 10, 2007
  2. uggis
    Replies:
    2
    Views:
    187
    Ken Schaefer
    May 13, 2004
  3. Jerry
    Replies:
    2
    Views:
    111
  4. Leo Violette
    Replies:
    0
    Views:
    1,026
    Leo Violette
    Apr 17, 2009
  5. Krzysztof Poc

    outside type, outside function

    Krzysztof Poc, Feb 3, 2012, in forum: C++
    Replies:
    1
    Views:
    285
    Victor Bazarov
    Feb 7, 2012
Loading...

Share This Page