By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,282 Members | 1,569 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,282 IT Pros & Developers. It's quick & easy.

Google search web service

P: n/a
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.
Jun 27 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Date: Mon, 21 Apr 2008 12:08:11 -0400
From: cj <cj@nospam.nospam>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
>
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\We b 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.
Jun 27 '08 #2

P: n/a
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

Steven Cheng [MSFT] wrote:
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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>Date: Mon, 21 Apr 2008 12:08:11 -0400
From: cj <cj@nospam.nospam>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)

>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\We b 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.
Jun 27 '08 #3

P: n/a
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:
ms****@microsoft.com.

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

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

--------------------
>Date: Wed, 23 Apr 2008 17:03:05 -0400
From: cj <cj@nospam.nospam>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Subject: Re: Google search web service
>
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

Steven Cheng [MSFT] wrote:
>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:
ms****@microsoft.com.

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
================================================= =
This posting is provided "AS IS" with no warranties, and confers no
rights.
>>

--------------------
>>Date: Mon, 21 Apr 2008 12:08:11 -0400
From: cj <cj@nospam.nospam>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)

>>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\W eb 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.
Jun 27 '08 #4

P: n/a
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
Steven Cheng [MSFT] wrote:
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:
ms****@microsoft.com.

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

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

--------------------
>Date: Wed, 23 Apr 2008 17:03:05 -0400
From: cj <cj@nospam.nospam>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Subject: Re: Google search web service
>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

Steven Cheng [MSFT] wrote:
>>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:
ms****@microsoft.com.

================================================ ==
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
================================================ ==
This posting is provided "AS IS" with no warranties, and confers no
rights.
>>>
--------------------
Date: Mon, 21 Apr 2008 12:08:11 -0400
From: cj <cj@nospam.nospam>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)

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\We b 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.
Jun 27 '08 #5

P: n/a
"cj" <cj@nospam.nospamwrote in message
news:eT**************@TK2MSFTNGP03.phx.gbl...
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/pr...9-25680609CCB8

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

"Bill McCarthy" <Bi**@N0SPAM.comwrote in message
news:19**********************************@microsof t.com...
Yeh, still a way to go. I think given the warm reaction today,
and given some folks have learning difficulties around here
(obviously why they are still *stuck* in VB6 *only*), might
just have to ramp things up a notch or two, and make it more
toasty :D


Jun 27 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.