Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Consume Google Search Web Services in Web Application

Consume Google Search Web Services in Web Application

Scheduled Pinned Locked Moved ASP.NET
wcfhelptutorialquestion
8 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahjiefreak
    wrote on last edited by
    #1

    Hey.. I have a problem in finding way to implement Google Search in a Web Application.For example I am doing a web based system and would like to consume the Google Search for user to find relevant information.At the same time I would like to have the information to be displayed on List View(which I can only find available in Windows Form).Can anyone provide any solution or hint to me in solving this problem? I have tried to find most of the examples are in Windows Form consuming the Search. Thanks in advance, Lee

    M 1 Reply Last reply
    0
    • A ahjiefreak

      Hey.. I have a problem in finding way to implement Google Search in a Web Application.For example I am doing a web based system and would like to consume the Google Search for user to find relevant information.At the same time I would like to have the information to be displayed on List View(which I can only find available in Windows Form).Can anyone provide any solution or hint to me in solving this problem? I have tried to find most of the examples are in Windows Form consuming the Search. Thanks in advance, Lee

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, There are a number of examples out there which you can read to see how to use Google Search Web Services in your ASP.NET application. To dislay the search result, you can use a web databound control available in the .net framework such as DataList .... http://www.codeproject.com/aspnet/googlewebclient.asp[^] http://aspnet.4guysfromrolla.com/articles/030503-1.aspx[^]

      A 1 Reply Last reply
      0
      • M minhpc_bk

        Hi there, There are a number of examples out there which you can read to see how to use Google Search Web Services in your ASP.NET application. To dislay the search result, you can use a web databound control available in the .net framework such as DataList .... http://www.codeproject.com/aspnet/googlewebclient.asp[^] http://aspnet.4guysfromrolla.com/articles/030503-1.aspx[^]

        A Offline
        A Offline
        ahjiefreak
        wrote on last edited by
        #3

        Hi there..thanks for the fast reply.. Anyway I have previously browse through the example from the 4guysfromrolla before asking. From the example, I have tried to follow the steps but somehow I face problem in converting the VB script to C#(which I am using).I have also tried to find some other examples but mostly are in VB.I tried very hard to understand the code..moreover I am still new to VB.So it is hard for me to comprehend what is happening btw the lines in VB.Any suggestion that perhaps have C# code running in the Google Search?Or is that the code is the same as VB but the differences is only on the declaration part? Please clarify my doubt..sorry for the trouble.. Thanks, Lee

        M 1 Reply Last reply
        0
        • A ahjiefreak

          Hi there..thanks for the fast reply.. Anyway I have previously browse through the example from the 4guysfromrolla before asking. From the example, I have tried to follow the steps but somehow I face problem in converting the VB script to C#(which I am using).I have also tried to find some other examples but mostly are in VB.I tried very hard to understand the code..moreover I am still new to VB.So it is hard for me to comprehend what is happening btw the lines in VB.Any suggestion that perhaps have C# code running in the Google Search?Or is that the code is the same as VB but the differences is only on the declaration part? Please clarify my doubt..sorry for the trouble.. Thanks, Lee

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          Hi there, I think this is a good chance of becoming a VB.NET epxert for you :) The code in the CP article is C#. Btw, if you're not familiar with VB.NET you can use a tool available out there to convert VB.NET code to C#: http://www.google.com/search?hl=vi&q=convert+vb.net+to+c%23&btnG=T%C3%ACm+ki%E1%BA%BFm+v%E1%BB%9Bi+Google&meta=[^]

          A 2 Replies Last reply
          0
          • M minhpc_bk

            Hi there, I think this is a good chance of becoming a VB.NET epxert for you :) The code in the CP article is C#. Btw, if you're not familiar with VB.NET you can use a tool available out there to convert VB.NET code to C#: http://www.google.com/search?hl=vi&q=convert+vb.net+to+c%23&btnG=T%C3%ACm+ki%E1%BA%BFm+v%E1%BB%9Bi+Google&meta=[^]

            A Offline
            A Offline
            ahjiefreak
            wrote on last edited by
            #5

            Hey there... I have used the code project reference as an example for my google search..however the below error comes out when i press Search button. Exception while handling service request: com.google.soap.search.GoogleSearchService.doGoogleSearch(java.lang.String,int,int,boolean,java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String) -- no signature match Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.Services.Protocols.SoapException: Exception while handling service request: com.google.soap.search.GoogleSearchService.doGoogleSearch(java.lang.String,int,int,boolean,java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String) -- no signature match Source Error: Line 84: public GoogleSearchResult doGoogleSearch(string key, string q, int start, int maxResults, bool filter, string restrict, bool safeSearch, string lr, string ie, string oe) { Line 85: Line 86: object[] results = this.Invoke("doGoogleSearch", new object[] { Line 87: key, Line 88: q, The error is it to be said originated from the Reference.cs which is already built in when we install Google API. I am stuck here several times and try to figure out the reason..but of no avail.Please clarify my doubts and i need help! Thanks in advance, Lee

            M 1 Reply Last reply
            0
            • M minhpc_bk

              Hi there, I think this is a good chance of becoming a VB.NET epxert for you :) The code in the CP article is C#. Btw, if you're not familiar with VB.NET you can use a tool available out there to convert VB.NET code to C#: http://www.google.com/search?hl=vi&q=convert+vb.net+to+c%23&btnG=T%C3%ACm+ki%E1%BA%BFm+v%E1%BB%9Bi+Google&meta=[^]

              A Offline
              A Offline
              ahjiefreak
              wrote on last edited by
              #6

              Hey.. Apart from the problem above,I also faced the problem of transferring all the google results into a table.I tried to create a table with one row which consist of 3 columns(Title,URL and Summary)for the results but I faced difficulty in accessing and retrieving these values to be put in the table columns separately. Any suggestion or any samples that uses this features? Please help! Thanks, Lee

              M 1 Reply Last reply
              0
              • A ahjiefreak

                Hey there... I have used the code project reference as an example for my google search..however the below error comes out when i press Search button. Exception while handling service request: com.google.soap.search.GoogleSearchService.doGoogleSearch(java.lang.String,int,int,boolean,java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String) -- no signature match Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.Services.Protocols.SoapException: Exception while handling service request: com.google.soap.search.GoogleSearchService.doGoogleSearch(java.lang.String,int,int,boolean,java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String) -- no signature match Source Error: Line 84: public GoogleSearchResult doGoogleSearch(string key, string q, int start, int maxResults, bool filter, string restrict, bool safeSearch, string lr, string ie, string oe) { Line 85: Line 86: object[] results = this.Invoke("doGoogleSearch", new object[] { Line 87: key, Line 88: q, The error is it to be said originated from the Reference.cs which is already built in when we install Google API. I am stuck here several times and try to figure out the reason..but of no avail.Please clarify my doubts and i need help! Thanks in advance, Lee

                M Offline
                M Offline
                minhpc_bk
                wrote on last edited by
                #7

                Hi there, The error happens due to the method signature mismatch, try to read the readme.txt in the download, especially for the .net example. For more information, you can see http://www.google.com/apis/api_faq.html[^] http://groups-beta.google.com/group/google.public.web-apis[^]

                1 Reply Last reply
                0
                • A ahjiefreak

                  Hey.. Apart from the problem above,I also faced the problem of transferring all the google results into a table.I tried to create a table with one row which consist of 3 columns(Title,URL and Summary)for the results but I faced difficulty in accessing and retrieving these values to be put in the table columns separately. Any suggestion or any samples that uses this features? Please help! Thanks, Lee

                  M Offline
                  M Offline
                  minhpc_bk
                  wrote on last edited by
                  #8

                  You can take a quick look at this example to see how to transfer the search results into a table before binding it to a data-bound control to display. http://www.eggheadcafe.com/articles/20020802.asp[^] Also, there are a number of examples out there. http://www.communitymx.com/content/article.cfm?cid=AB073[^] http://hacks.oreilly.com/pub/h/178[^]

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups