Google search web service

C

cj

Back some time ago I was playing with a little app in VB 2005 that used
a google web service to get search results. I was rebuilding this app
in 2008 today. I added the web service
http://api.google.com/googlesearch.wsdl and then down in the code I was
typing Dim myGoogle As New Google.GoogleSearchService only to find
GoogleSearchService was no longer a method. I looked on google for
documentation and it appears they no longer offer that method but
continue to support it for existing users. I confirmed it still works
in my VB 2005 program. So, how can I move this Web Reference from my
2005 program to my 2008 program? I see in Visual Studio
2005\Projects\GoogleApp\WindowsApplication20\Web References\Google what
appears to be the files but where would I put them in the 2008 program?
I don't see any there for Google to overwrite.
 
S

Steven Cheng [MSFT]

Hi Cj,

Regarding on the problem you mentioned, you need to move an existing
webreference(of google webservice) from VS 2005 project to new VS 2008
project due to the new webservice document has been changed (one method
removed though still supported).

I think you can consider the following means to reuse the existing
webservice proxy(from that VS 205 program):

1. I hope the original VS 2005 project is not a web project. If so, it
should contain the webreference's auto-generated code file. You can see it
by click "show all files" option on Solution explorer and expand the
webreference node(of your google webservice proxy). Then, you can copy this
code file to your new VS 2008 project and reuse it.

2. Web Reference(proxy) is generated from WSDL document, so if you can
still find the original version of the google service wsdl, you can
generate the old webreference through the old WSDL. As the same in #1, the
VS IDE should have keeped a local copy of the wsdl document together with
the auto-generated proxy code. You can expand the webreference node to see
whether you can find it. After you have the wsdl, just add
webreference(in vs 2008 project) against that wsdl document.

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
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

cj

Sorry it's taken so long to get back to you. I got it to add a web
reference in 2008 with all the old methods by pointing it to the google
wsdl stored in my 2005 app directory
(2005\Projects\GoogleApp\WindowsApplication20\Web
References\Google\googlesearch.wsdl but I had to add it to the 2008 app
as a "Web Reference" instead of a "Service Reference".

If I try to add my copy of the google wsdl as a service reference it
apparently asks google what methods are available as it comes up with
only the methods google now offeres in their wsdl file.

Is this normal? What is the difference between a service reference and
a web reference?

Thanks,
cj
 
S

Steven Cheng [MSFT]

Thanks for your reply Cj,

Generally "Add ServiceReference" will use svcutil.exe to generate the WCF
client proxy code. I haven't inspected into its internal code logic, based
on your description, it will still requesting the google online webservice
description even if you specify the local WSDL document, correct?

If so, I think it is possible that the Service Reference generation tool
will parse any location info in the WSDL document and visit the online
version to get the latest contract.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

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

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

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

cj

Sounds like that is what it's doing. That's ok, I will just add it as a
web service in the 2008 app as it works that way.

Thanks for your help.

cj
 
M

Mike Williams

Sounds like that is what it's doing. That's ok, I will just add it as a
web service in the 2008 app as it works that way.

I don't know whether anyone from Microsoft regularly reads the Visual Basic
groups but if they do then I am very surprised that they permit one of their
own MVPs to engage in such outrageous long term trolling activities in one
of their own public newsgroups, such as the activity that the person who
purports to be Bill McCarthy has engaged in on the
microsoft.public.vb.general.discussion group for many months. If this man
belongs to you:

https://mvp.support.microsoft.com/profile=B2D0BB02-3E35-4293-B4B9-25680609CCB8

.. . . then perhaps you might like to look at his activity in that group.
Here for example is one of his very latest offerings:
 

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