Google search web service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cj

    #1

    Google search web service

    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.GoogleSe archService only to find
    GoogleSearchSer vice 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\G oogleApp\Window sApplication20\ Web References\Goog le 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.
  • Steven Cheng [MSFT]

    #2
    RE: Google search web service

    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:
    msdnmg@microsof t.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.nosp am>
    >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.GoogleSe archService only to find
    >GoogleSearchSe rvice was no longer a method. I looked on google for
    >documentatio n 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\Windo wsApplication20 \Web References\Goog le 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.
    >

    Comment

    • cj

      #3
      Re: Google search web service

      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\Windo wsApplication20 \Web
      References\Goog le\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:
      msdnmg@microsof t.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.nosp am>
      >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.GoogleSe archService only to find
      >GoogleSearchSe rvice was no longer a method. I looked on google for
      >documentatio n 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\Windo wsApplication20 \Web References\Goog le 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.
      >>
      >

      Comment

      • Steven Cheng [MSFT]

        #4
        Re: Google search web service

        Thanks for your reply Cj,

        Generally "Add ServiceReferenc e" 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:
        msdnmg@microsof t.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.nosp am>
        >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(o f 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(i n 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:
        >msdnmg@microsof t.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.nosp am>
        >>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.GoogleSe archService only to find
        >>GoogleSearchS ervice was no longer a method. I looked on google for
        >>documentati on 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\Wind owsApplication2 0\Web References\Goog le 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.
        >>>
        >>
        >

        Comment

        • cj

          #5
          Re: Google search web service

          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 ServiceReferenc e" 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:
          msdnmg@microsof t.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.nosp am>
          >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
          >>webreferenc e 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:
          >>msdnmg@microsof t.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
          >>professiona l 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.nosp am>
          >>>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.GoogleSe archService only to find
          >>>GoogleSearch Service was no longer a method. I looked on google for
          >>>documentatio n 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\Project s\GoogleApp\Win dowsApplication 20\Web References\Goog le 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.
          >>>>
          >

          Comment

          • Mike Williams

            #6
            Re: Google search web service

            "cj" <cj@nospam.nosp amwrote in message
            news:eTC6HK0pIH A.4112@TK2MSFTN GP03.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.publi c.vb.general.di scussion group for many months. If this man
            belongs to you:



            .. . . 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" <Bill@N0SPAM.co mwrote in message
            news:19A5DEEA-ED6A-4721-9DB9-9F5D8509D825@mi crosoft.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


            Comment

            Working...