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

C

Chakra

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

Dino Chiesa [Microsoft]

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
 
C

chak

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

chak

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.
 

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,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top