all groups > dotnet web services > december 2007 >
You're in the

dotnet web services

group:

VS2008 - Calling web service from Windows service


VS2008 - Calling web service from Windows service CSharpner
12/31/2007 10:37:52 AM
dotnet web services:
What happened to the "Add Web Reference" option in Visual Studio 2008
when right-clicking a Windows Service project? It's in VS2K5, but not
in VS2K8. Anyone know the right way to do this? I need a Windows
Re: VS2008 - Calling web service from Windows service CSharpner
12/31/2007 2:22:18 PM
Thanks! Hopefully MS will fix this in a future update.

On Dec 31, 4:12=A0pm, "Jurjen de Groot" <Jurjen.de.Gr...@xs4all.nl>
[quoted text, click to view]
Re: VS2008 - Calling web service from Windows service Jurjen de Groot
12/31/2007 10:12:41 PM
Maybe as a work-around:

I always use the utility WSDL.exe to generate a class wich can then be used
to call the webservice, no need for a web-reference.

Start a command prompt

call vsvars32.bat in \program files\<Your visual Studio
version>\Common7\Tools\

call WSDL.exe /l:cs http://localhost/myWebService/Service1.asmx?wsdl (or
use /l:vb for vb.net)


Remember to regenerate this class when the webservice changes.


Hope this helps.
Jurjen.



[quoted text, click to view]
Re: VS2008 - Calling web service from Windows service Spam Catcher
1/1/2008 1:21:51 AM
CSharpner <csharpner@gmail.com> wrote in news:ad1ffb03-3f0e-4f1b-b527-
e198741af9c6@j20g2000hsi.googlegroups.com:

[quoted text, click to view]

Right click and choose "Add Service Reference".

VS.NET 2008 supports WCF which in turns supports web services.

--
Re: VS2008 - Calling web service from Windows service CSharpner
1/1/2008 4:40:47 PM
[quoted text, click to view]

Dho! I saw that and for some reason I incorrectly thought it was
adding a *Windows* service reference rather than a *Web* reference.
That is what I needed all along... and even better. Looks like we can
now have our lists as generic lists rather than less capable arrays...
and possibly even reuse types between web services (I think... I'll
have to look into that... if so, that'll solve a LOT of problems).

RE: VS2008 - Calling web service from Windows service P_Prdn
1/14/2008 9:53:02 AM
Did you try as follows:

Right click project name in Solution Explorer, then click Add Service
Reference. Click the Advanced... button at the lower left corner of the Add
Service Reference dialog box. This will bring up the Service Reference
Settings dialog box. Click the Add Web Reference... button to add web
reference.

-Prdn-

[quoted text, click to view]
AddThis Social Bookmark Button