Where's add web reference?

C

cj

In VB 2003 and 2005 to use a web reference I right clicked the project
and chose "Add Web Reference". I don't see it in 2008. How do I add a
web reference?
 
C

cj

ok, I see that says "make a web reference instead of a service reference
based on .net 2.0." What's a service reference? I've been using a web
service exposed by one of our business partners in some of my apps. Can
I create a service reference for it or do they need to do something
different too? I have the .wsdl file for it on my computer.
 
S

Steven Cheng[MSFT]

Hi Cj,

As for the "Add Service Reference", it is used for creating client proxy of
WCF service(it will generate a client proxy class). Also, since WCF
include webservice communication ability, you can use it to create a client
proxy for webservice too.

If you do not want to use those .net 3.0/3.5 feature, I suggest you still
create the webservice proxy via one of the following means:

** create your project as ".NET framework 2.0" type, thus, you can get "
Add WebReference" menu

** You can leave your main project of other version, but create another
separate class library project which is of .net framework 2.0. Then, you
can use "Add WebReference" in that class library project

** the WSDL.exe commandline tool is still available, therefore, you can use
this commandlne tool to generate webservice client proxy class.

#Web Services Description Language Tool (Wsdl.exe)
http://msdn2.microsoft.com/en-us/library/7h3ystb6(VS.80).aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.




--------------------
 
C

Cor Ligthert[MVP]

Hi Cheng,
** the WSDL.exe commandline tool is still available, therefore, you can
use
this commandlne tool to generate webservice client proxy class.

Are you telling with this that Visual Studio 2008 is so bad that it should
not be used.

My first thought seeing this, and I could not resist to show it you.

(I had a long time to do with the another big company who is selling a same
product like SQL Server which was always using commandline code)

:)

Cor
 
B

Bill McCarthy

Hi Cor,

Cor Ligthert said:
Hi Cheng,

Are you telling with this that Visual Studio 2008 is so bad that it should
not be used.

Well you snipped the relevant part of Steven's response which was in the
first paragraph :
"Also, since WCF include webservice communication ability, you can use it to
create a client proxy for webservice too. "

I think it was only proper for Steven to then offer other possible ways of
working with web services.
 
C

Cor Ligthert [MVP]

Bill,
Well you snipped the relevant part of Steven's response which was in the
first paragraph :
"Also, since WCF include webservice communication ability, you can use it
to create a client proxy for webservice too. "

I think it was only proper for Steven to then offer other possible ways of
working with web services.

I seldom (or never) see mistakes or whatever in the messages from Steven,
and if I think that I see that then I inform him in an other way about that.

(This one was more meant in general, although thinking about it, we have as
well to think about VBC people, and then the line from Steven becomes again
proper, however maybe he can add that then in future to make it clear).

Or do you mean that there is something wrong with the text. Steven knows
this at least better than me at the moment.

Cor
 
C

cj

I asked what turned out to be basically the same question on the web
service forum. I asked:

"Can I access a web service with a WCF client?"

Steven responded:

"Yes, you can generate WCF client proxy to consume an XML webservice
as WCF provide http/soap based transport channel that is compatible to
xml webservice. However, I still suggest you keep using webservice
proxy as long as you do not require those particular features of WCF.
WCF provides much more features than webservice, however, most of which
are not of XML webservice standard, In case you will need to interop to
a non-.NET platform webservice, those .NET specific setting will not
quite work."

I take it that WCF is a MS standard and if (as I think I am) I'm
consuming a XML web service written in another language I might not get
good results trying to use WCF to consume it.

I'm trying to stay current on the trends but it sounds like XML web
services are here to stay even with WCF now in the picture. I asked
Steven in the other forum if he agreed.
 

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

Top