Consume Google Search Web Services in Web Application
-
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
-
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
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[^]
-
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[^]
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
-
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
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=[^]
-
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=[^]
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
-
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=[^]
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
-
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
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[^]
-
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
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[^]