Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chakra - 18 Nov 2004 10:30 GMT
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] - 18 Nov 2004 15:12 GMT
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

> Hello,
>
[quoted text clipped - 11 lines]
>
> Chak.
chak - 18 Nov 2004 16:01 GMT
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.

> I am not clear on what you are asking.
>
[quoted text clipped - 43 lines]
> >
> > Chak.
chak - 18 Nov 2004 16:01 GMT
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.

> I am not clear on what you are asking.
>
[quoted text clipped - 43 lines]
> >
> > Chak.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.