Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 13th, 2005, 06:59 AM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default using google web service?

I want to use google web service in my asp.net application ....can anybody please guide by step by step how will i do this???
It' urgent
Thanking you
Rohit Kochar


 
Old July 13th, 2005, 12:55 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Here's step 1: http://www.google.com/search?hl=en&q...le+web+service

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: If Only by Queens of the Stone Age (Track 3 from the album: Queens of the Stone Age) What's This?
 
Old July 14th, 2005, 12:59 AM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi all,
I have studied from the link http://aspnet.4guysfromrolla.com/articles/030503-1.aspx to use google web service....
i have downloaded the googleAPI's and also got a license key ....i had written the following code
private void Page_Load(object sender, System.EventArgs e)
        {
                       GoogleWS.GoogleSearchService objG= new GoogleWS.GoogleSearchService();
              GoogleWS.GoogleSearchResult objSR= new GoogleWS.GoogleSearchResult();
            objSR= objG.doGoogleSearch("6RRqhWJQFHLaBMZIsXVxWL/vE3HowiKC","ASP",0,10,true,"",true,"","","");
           DLsearch.DataSource=objSR.resultElements;
            DLsearch.DataBind();

        }
but the problem is that i am getting the error "DataBinder.Eval: 'usingwebS.GoogleWS.ResultElement' does not contain a property with the name title. "
name is a properety of array object resultElements......can anyone suggest me some solution to the problem......i have struggled the whole night but got no solutions....i have also add the ref for the web service
Kindly help....
Rohit

 
Old July 18th, 2005, 04:03 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Did you already fix this problem??

I think the easiest way to test this is to use a DataGrid or DataList with AutoGenerateColumns set to True and no custom columns defined.
Then .NET will generate the columns for you, and by their headers you can see what data is returned.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Compound by Ed Rush & Optical (Track 6 from the album: Wormhole #1) What's This?
 
Old July 1st, 2006, 02:52 AM
Authorized User
 
Join Date: Jul 2006
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi..

I have the same error and the same problem.

Did you find a solution?

 
Old July 1st, 2006, 07:08 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Did you try what I suggested earlier? That is, set AutoGenerateColumns to True and run the page again?

Imar
 
Old July 2nd, 2006, 12:22 AM
Authorized User
 
Join Date: Jul 2006
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for your respond..

I found the solution and what cause this problem:

I was using the DataItem as a DataRow(as always) but this DataItem represent an object of the ResultElement class which has properties one of them is the title property.So I have modified my code to:


<ItemTemplate>
<asp:Label id="lbTitle" runat="server">
<%#((EProjects.googleapi.ResultElement)Container.D ataItem).title%>
</asp:Label>
</ItemTemplate>

Where EProjects is my project name and googleapi is the proxy class.

This discussion was interesting..thank you very much.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Service Consuming another web service CraigWhitfield EJB 0 January 10th, 2008 08:38 AM
Web Service kumanan ASP.NET 1.0 and 1.1 Basics 0 December 7th, 2006 10:26 AM
Error to Add Web Reference from a Web service jdjbarrios ASP.NET 2.0 Professional 0 July 18th, 2006 02:58 PM
How to Crawl Web Application In Google Srch Engine hunzian78@yahoo.com ASP.NET 1.0 and 1.1 Basics 0 April 29th, 2006 05:21 AM
Service Oriented Web Service aldwinenriquez .NET Web Services 2 September 15th, 2005 03:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.